Class BulkRequest

java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.monitoring.BulkRequest
All Implemented Interfaces:
JsonpSerializable, NdJsonpSerializable

public class BulkRequest
extends RequestBase
implements NdJsonpSerializable, JsonpSerializable
Used by the monitoring features to send monitoring data.
See Also:
API specification
  • Field Details

  • Method Details

    • of

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

      public java.util.Iterator<?> _serializables()
      Specified by:
      _serializables in interface NdJsonpSerializable
    • interval

      public final java.lang.String interval()
      Required - Collection interval (e.g., '10s' or '10000ms') of the payload

      API name: interval

    • systemApiVersion

      public final java.lang.String systemApiVersion()
      Required -

      API name: system_api_version

    • systemId

      public final java.lang.String systemId()
      Required - Identifier of the monitored system

      API name: system_id

    • type

      @Deprecated @Nullable public final java.lang.String type()
      Deprecated.
      7.0.0
      Default document type for items which don't provide one

      API name: type

    • operations

      public final java.util.List<BulkOperation> operations()
      Required - Request body.
    • serialize

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