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
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBulkRequest.Builder<TSource>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,ElasticsearchError>ENDPOINTEndpoint "monitoring.bulk". -
Constructor Summary
Constructors Constructor Description BulkRequest(BulkRequest.Builder<TSource> builder)BulkRequest(java.util.function.Function<BulkRequest.Builder<TSource>,BulkRequest.Builder<TSource>> fn) -
Method Summary
Modifier and Type Method Description java.lang.Stringinterval()Required - Collection interval (e.g., '10s' or '10000ms') of the payloadjava.util.Iterator<java.lang.Object>iterator()java.util.List<java.lang.Object>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()Default document type for items which don't provide oneMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
ENDPOINT
Endpoint "monitoring.bulk".
-
-
Constructor Details
-
BulkRequest
-
BulkRequest
public BulkRequest(java.util.function.Function<BulkRequest.Builder<TSource>,BulkRequest.Builder<TSource>> fn)
-
-
Method Details
-
type
@Nullable public java.lang.String type()Default document type for items which don't provide oneAPI name:
type -
systemId
public java.lang.String systemId()Required - Identifier of the monitored systemAPI 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 payloadAPI 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:
iteratorin interfacejava.lang.Iterable<TSource>
-
serialize
Serialize this value to JSON.- Specified by:
serializein interfaceJsonpSerializable
-