Class ElasticsearchMonitoringAsyncClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchMonitoringAsyncClient>
co.elastic.clients.elasticsearch.monitoring.ElasticsearchMonitoringAsyncClient
public class ElasticsearchMonitoringAsyncClient extends ApiClient<ElasticsearchTransport,ElasticsearchMonitoringAsyncClient>
Client for the monitoring namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
Constructors Constructor Description ElasticsearchMonitoringAsyncClient(ElasticsearchTransport transport)
ElasticsearchMonitoringAsyncClient(ElasticsearchTransport transport, TransportOptions transportOptions)
-
Method Summary
Modifier and Type Method Description java.util.concurrent.CompletableFuture<BulkResponse>
bulk(BulkRequest request)
Used by the monitoring features to send monitoring data.java.util.concurrent.CompletableFuture<BulkResponse>
bulk(java.util.function.Function<BulkRequest.Builder,ObjectBuilder<BulkRequest>> fn)
Used by the monitoring features to send monitoring data.ElasticsearchMonitoringAsyncClient
withTransportOptions(TransportOptions transportOptions)
Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchMonitoringAsyncClient
-
ElasticsearchMonitoringAsyncClient
public ElasticsearchMonitoringAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchMonitoringAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions)Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,ElasticsearchMonitoringAsyncClient>
-
bulk
Used by the monitoring features to send monitoring data.- See Also:
- Documentation on elastic.co
-
bulk
public final java.util.concurrent.CompletableFuture<BulkResponse> bulk(java.util.function.Function<BulkRequest.Builder,ObjectBuilder<BulkRequest>> fn)Used by the monitoring features to send monitoring data.- Parameters:
fn
- a function that initializes a builder to create theBulkRequest
- See Also:
- Documentation on elastic.co
-