Class FlushJobRequest

java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ml.FlushJobRequest
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable
public class FlushJobRequest
extends RequestBase
implements JsonpSerializable
Forces any buffered data to be processed by the job. The flush jobs API is only applicable when sending data for analysis using the post data API. Depending on the content of the buffer, then it might additionally calculate new results. Both flush and close operations are similar, however the flush is more efficient if you are expecting to send more data for analysis. When flushing, the job remains open and is available to continue analyzing data. A close operation additionally prunes and persists the model state to disk and the job must be opened again before analyzing further data.
See Also:
API specification
  • Field Details

  • Method Details

    • of

      public static FlushJobRequest of​(java.util.function.Function<FlushJobRequest.Builder,​ObjectBuilder<FlushJobRequest>> fn)
    • advanceTime

      @Nullable public final DateTime advanceTime()
      Refer to the description for the advance_time query parameter.

      API name: advance_time

    • calcInterim

      @Nullable public final java.lang.Boolean calcInterim()
      Refer to the description for the calc_interim query parameter.

      API name: calc_interim

    • end

      @Nullable public final DateTime end()
      Refer to the description for the end query parameter.

      API name: end

    • jobId

      public final java.lang.String jobId()
      Required - Identifier for the anomaly detection job.

      API name: job_id

    • skipTime

      @Nullable public final DateTime skipTime()
      Refer to the description for the skip_time query parameter.

      API name: skip_time

    • start

      @Nullable public final DateTime start()
      Refer to the description for the start query parameter.

      API name: start

    • serialize

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

      protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • setupFlushJobRequestDeserializer

      protected static void setupFlushJobRequestDeserializer​(ObjectDeserializer<FlushJobRequest.Builder> op)