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
  • Field Details

  • 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

      @Nullable public final DateTime resetEnd()
      Deprecated.
      Specifies the end of the bucket resetting range.

      API name: reset_end

    • resetStart

      @Nullable public final DateTime resetStart()
      Deprecated.
      Specifies the start of the bucket resetting range.

      API name: reset_start

    • data

      public final java.util.List<TData> data()
      Deprecated.
      Required - Request body.
    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Deprecated.
      Serialize this value to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • createPostDataRequestDeserializer

      public static <TData> JsonpDeserializer<PostDataRequest<TData>> createPostDataRequestDeserializer​(JsonpDeserializer<TData> tDataDeserializer)
      Deprecated.