Class BulkRequest<TSource>

java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.monitoring.BulkRequest<TSource>
All Implemented Interfaces:
ElasticsearchCommonRequest, JsonpSerializable, NdJsonpSerializable<java.lang.Object>, java.lang.Iterable<java.lang.Object>

public final class BulkRequest<TSource>
extends RequestBase
implements NdJsonpSerializable<java.lang.Object>, JsonpSerializable
  • Field Details

  • Constructor Details

  • Method Details

    • type

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

      API name: type

    • systemId

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

      API name: system_id

    • systemApiVersion

      public java.lang.String systemApiVersion()
      Required -

      API name: system_api_version

    • interval

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

      API name: interval

    • operations

      public java.util.List<java.lang.Object> operations()
      Required - Request body.

      API name: _value_body

    • iterator

      public java.util.Iterator<java.lang.Object> iterator()
      Specified by:
      iterator in interface java.lang.Iterable<TSource>
    • serialize

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