Class PostDataRequest<TData>
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ml.PostDataRequest<TData>
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class PostDataRequest<TData>
extends RequestBase
implements JsonpSerializable
Sends data to an anomaly detection job for analysis.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<PostDataRequest<Object>>Json deserializer forPostDataRequestbased on named deserializers provided by the callingJsonMapper.static final Endpoint<PostDataRequest<?>,PostDataResponse, ErrorResponse> Endpoint "ml.post_data". -
Method Summary
Modifier and TypeMethodDescriptionstatic <TData> JsonpDeserializer<PostDataRequest<TData>>createPostDataRequestDeserializer(JsonpDeserializer<TData> tDataDeserializer) data()Required - Request body.final StringjobId()Required - The name of the job receiving the datastatic <TData> PostDataRequest<TData>of(Function<PostDataRequest.Builder<TData>, ObjectBuilder<PostDataRequest<TData>>> fn) final StringresetEnd()Optional parameter to specify the end of the bucket resetting rangefinal StringOptional parameter to specify the start of the bucket resetting rangevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this value to JSON.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forPostDataRequestbased on named deserializers provided by the callingJsonMapper. -
_ENDPOINT
Endpoint "ml.post_data".
-
-
Method Details
-
of
public static <TData> PostDataRequest<TData> of(Function<PostDataRequest.Builder<TData>, ObjectBuilder<PostDataRequest<TData>>> fn) -
jobId
Required - The name of the job receiving the dataAPI name:
job_id -
resetEnd
Optional parameter to specify the end of the bucket resetting rangeAPI name:
reset_end -
resetStart
Optional parameter to specify the start of the bucket resetting rangeAPI name:
reset_start -
data
Required - Request body. -
serialize
Serialize this value to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
createPostDataRequestDeserializer
public static <TData> JsonpDeserializer<PostDataRequest<TData>> createPostDataRequestDeserializer(JsonpDeserializer<TData> tDataDeserializer)
-