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
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBulkRequest.BuilderBuilder forBulkRequest.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 Endpoint<BulkRequest,BulkResponse,ErrorResponse>_ENDPOINTEndpoint "monitoring.bulk". -
Method Summary
Modifier and Type Method Description java.util.Iterator<?>_serializables()java.lang.Stringinterval()Required - Collection interval (e.g., '10s' or '10000ms') of the payloadstatic BulkRequestof(java.util.function.Function<BulkRequest.Builder,ObjectBuilder<BulkRequest>> fn)java.util.List<BulkOperation>operations()Required - Request body.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this value to JSON.java.lang.StringsystemApiVersion()Required -java.lang.StringsystemId()Required - Identifier of the monitored systemjava.lang.Stringtype()Deprecated.7.0.0Methods 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
-
_ENDPOINT
Endpoint "monitoring.bulk".
-
-
Method Details
-
of
public static BulkRequest of(java.util.function.Function<BulkRequest.Builder,ObjectBuilder<BulkRequest>> fn) -
_serializables
public java.util.Iterator<?> _serializables()- Specified by:
_serializablesin interfaceNdJsonpSerializable
-
interval
public final java.lang.String interval()Required - Collection interval (e.g., '10s' or '10000ms') of the payloadAPI 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 systemAPI name:
system_id -
type
@Deprecated @Nullable public final java.lang.String type()Deprecated.7.0.0Default document type for items which don't provide oneAPI name:
type -
operations
Required - Request body. -
serialize
Serialize this value to JSON.- Specified by:
serializein interfaceJsonpSerializable
-