Package org.elasticsearch.client.ml
Class GetRecordsResponse
- java.lang.Object
-
- org.elasticsearch.client.ml.AbstractResultResponse<AnomalyRecord>
-
- org.elasticsearch.client.ml.GetRecordsResponse
-
- All Implemented Interfaces:
ToXContent,ToXContentObject
public class GetRecordsResponse extends AbstractResultResponse<AnomalyRecord>
A response containing the requested records
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
Fields Modifier and Type Field Description static ConstructingObjectParser<GetRecordsResponse,Void>PARSERstatic ParseFieldRECORDS-
Fields inherited from class org.elasticsearch.client.ml.AbstractResultResponse
count, COUNT, results
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static GetRecordsResponsefromXContent(XContentParser parser)inthashCode()List<AnomalyRecord>records()The retrieved records-
Methods inherited from class org.elasticsearch.client.ml.AbstractResultResponse
count, toXContent
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Field Detail
-
RECORDS
public static final ParseField RECORDS
-
PARSER
public static final ConstructingObjectParser<GetRecordsResponse,Void> PARSER
-
-
Method Detail
-
fromXContent
public static GetRecordsResponse fromXContent(XContentParser parser) throws IOException
- Throws:
IOException
-
records
public List<AnomalyRecord> records()
The retrieved records- Returns:
- the retrieved records
-
-