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 class
BulkRequest.Builder
Builder 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>
_ENDPOINT
Endpoint "monitoring.bulk
". -
Method Summary
Modifier and Type Method Description java.util.Iterator<?>
_serializables()
java.lang.String
interval()
Required - Collection interval (e.g., '10s' or '10000ms') of the payloadstatic BulkRequest
of(java.util.function.Function<BulkRequest.Builder,ObjectBuilder<BulkRequest>> fn)
java.util.List<BulkOperation>
operations()
Required - Request body.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this value to JSON.java.lang.String
systemApiVersion()
Required -java.lang.String
systemId()
Required - Identifier of the monitored systemjava.lang.String
type()
Deprecated.7.0.0Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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:
_serializables
in 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.API name:
_value_body
-
serialize
Serialize this value to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-