Class PostDataRequest<TData>
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ml.PostDataRequest<TData>
- All Implemented Interfaces:
JsonpSerializable
@Deprecated @JsonpDeserializable public class PostDataRequest<TData> extends RequestBase implements JsonpSerializable
Deprecated.
7.11.0 Posting data directly to anomaly detection jobs is
deprecated, in a future major version a datafeed will be
required.
Sends data to an anomaly detection job for analysis.
IMPORTANT: For each job, data can be accepted from only a single connection at a time. It is not currently possible to post data to multiple jobs using wildcards or a comma-separated list.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPostDataRequest.Builder<TData>Deprecated.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<PostDataRequest<java.lang.Object>>_DESERIALIZERDeprecated.Json deserializer forPostDataRequestbased on named deserializers provided by the callingJsonMapper.static Endpoint<PostDataRequest<?>,PostDataResponse,ErrorResponse>_ENDPOINTDeprecated.Endpoint "ml.post_data". -
Method Summary
Modifier and Type Method Description static <TData> JsonpDeserializer<PostDataRequest<TData>>createPostDataRequestDeserializer(JsonpDeserializer<TData> tDataDeserializer)Deprecated.java.util.List<TData>data()Deprecated.Required - Request body.java.lang.StringjobId()Deprecated.Required - Identifier for the anomaly detection job.static <TData> PostDataRequest<TData>of(java.util.function.Function<PostDataRequest.Builder<TData>,ObjectBuilder<PostDataRequest<TData>>> fn)Deprecated.DateTimeresetEnd()Deprecated.Specifies the end of the bucket resetting range.DateTimeresetStart()Deprecated.Specifies the start of the bucket resetting range.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Deprecated.Serialize this value to JSON.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Deprecated.Json deserializer forPostDataRequestbased on named deserializers provided by the callingJsonMapper. -
_ENDPOINT
Deprecated.Endpoint "ml.post_data".
-
-
Method Details
-
of
public static <TData> PostDataRequest<TData> of(java.util.function.Function<PostDataRequest.Builder<TData>,ObjectBuilder<PostDataRequest<TData>>> fn)Deprecated. -
jobId
public final java.lang.String jobId()Deprecated.Required - Identifier for the anomaly detection job. The job must have a state of open to receive and process the data.API name:
job_id -
resetEnd
Deprecated.Specifies the end of the bucket resetting range.API name:
reset_end -
resetStart
Deprecated.Specifies the start of the bucket resetting range.API name:
reset_start -
data
Deprecated.Required - Request body. -
serialize
Deprecated.Serialize this value to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
createPostDataRequestDeserializer
public static <TData> JsonpDeserializer<PostDataRequest<TData>> createPostDataRequestDeserializer(JsonpDeserializer<TData> tDataDeserializer)Deprecated.
-