Class GetRecordsRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ml.GetRecordsRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class GetRecordsRequest
extends RequestBase
implements JsonpSerializable
Retrieves anomaly records for an anomaly detection job. Records contain the
detailed analytical results. They describe the anomalous activity that has
been identified in the input data based on the detector configuration. There
can be many anomaly records depending on the characteristics and size of the
input data. In practice, there are often too many to be able to manually
process them. The machine learning features therefore perform a sophisticated
aggregation of the anomaly records into buckets. The number of record results
depends on the number of anomalies found in each bucket, which relates to the
number of time series being modeled and the number of detectors.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<GetRecordsRequest>
Json deserializer forGetRecordsRequest
static final Endpoint<GetRecordsRequest,
GetRecordsResponse, ErrorResponse> Endpoint "ml.get_records
". -
Method Summary
Modifier and TypeMethodDescriptionfinal Boolean
desc()
Refer to the description for thedesc
query parameter.final DateTime
end()
Refer to the description for theend
query parameter.final Boolean
Refer to the description for theexclude_interim
query parameter.final Integer
from()
Skips the specified number of records.final String
jobId()
Required - Identifier for the anomaly detection job.static GetRecordsRequest
final Page
page()
API name:page
final Double
Refer to the description for therecord_score
query parameter.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final Integer
size()
Specifies the maximum number of records to obtain.final String
sort()
Refer to the description for thesort
query parameter.final DateTime
start()
Refer to the description for thestart
query parameter.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forGetRecordsRequest
-
_ENDPOINT
Endpoint "ml.get_records
".
-
-
Method Details
-
of
public static GetRecordsRequest of(Function<GetRecordsRequest.Builder, ObjectBuilder<GetRecordsRequest>> fn) -
desc
Refer to the description for thedesc
query parameter.API name:
desc
-
end
Refer to the description for theend
query parameter.API name:
end
-
excludeInterim
Refer to the description for theexclude_interim
query parameter.API name:
exclude_interim
-
from
Skips the specified number of records.API name:
from
-
jobId
Required - Identifier for the anomaly detection job.API name:
job_id
-
page
API name:page
-
recordScore
Refer to the description for therecord_score
query parameter.API name:
record_score
-
size
Specifies the maximum number of records to obtain.API name:
size
-
sort
Refer to the description for thesort
query parameter.API name:
sort
-
start
Refer to the description for thestart
query parameter.API name:
start
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupGetRecordsRequestDeserializer
protected static void setupGetRecordsRequestDeserializer(ObjectDeserializer<GetRecordsRequest.Builder> op)
-