Class ElasticsearchEqlAsyncClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchEqlAsyncClient>
co.elastic.clients.elasticsearch.eql.ElasticsearchEqlAsyncClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class ElasticsearchEqlAsyncClient
extends ApiClient<ElasticsearchTransport,ElasticsearchEqlAsyncClient>
Client for the eql namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchEqlAsyncClient
(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptiondelete
(EqlDeleteRequest request) Delete an async EQL search.Delete an async EQL search.<TEvent> CompletableFuture<EqlGetResponse<TEvent>>
get
(EqlGetRequest request, Class<TEvent> tEventClass) Get async EQL search results.<TEvent> CompletableFuture<EqlGetResponse<TEvent>>
get
(EqlGetRequest request, Type tEventType) Get async EQL search results.final <TEvent> CompletableFuture<EqlGetResponse<TEvent>>
get
(Function<EqlGetRequest.Builder, ObjectBuilder<EqlGetRequest>> fn, Class<TEvent> tEventClass) Get async EQL search results.final <TEvent> CompletableFuture<EqlGetResponse<TEvent>>
get
(Function<EqlGetRequest.Builder, ObjectBuilder<EqlGetRequest>> fn, Type tEventType) Get async EQL search results.getStatus
(GetEqlStatusRequest request) Get the async EQL status.Get the async EQL status.<TEvent> CompletableFuture<EqlSearchResponse<TEvent>>
search
(EqlSearchRequest request, Class<TEvent> tEventClass) Get EQL search results.<TEvent> CompletableFuture<EqlSearchResponse<TEvent>>
search
(EqlSearchRequest request, Type tEventType) Get EQL search results.final <TEvent> CompletableFuture<EqlSearchResponse<TEvent>>
search
(Function<EqlSearchRequest.Builder, ObjectBuilder<EqlSearchRequest>> fn, Class<TEvent> tEventClass) Get EQL search results.final <TEvent> CompletableFuture<EqlSearchResponse<TEvent>>
search
(Function<EqlSearchRequest.Builder, ObjectBuilder<EqlSearchRequest>> fn, Type tEventType) Get EQL search results.withTransportOptions
(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, close, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchEqlAsyncClient
-
ElasticsearchEqlAsyncClient
public ElasticsearchEqlAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchEqlAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,
ElasticsearchEqlAsyncClient>
-
delete
Delete an async EQL search. Delete an async EQL search or a stored synchronous EQL search. The API also deletes results for the search.- See Also:
-
delete
public final CompletableFuture<EqlDeleteResponse> delete(Function<EqlDeleteRequest.Builder, ObjectBuilder<EqlDeleteRequest>> fn) Delete an async EQL search. Delete an async EQL search or a stored synchronous EQL search. The API also deletes results for the search.- Parameters:
fn
- a function that initializes a builder to create theEqlDeleteRequest
- See Also:
-
get
public <TEvent> CompletableFuture<EqlGetResponse<TEvent>> get(EqlGetRequest request, Class<TEvent> tEventClass) Get async EQL search results. Get the current status and available results for an async EQL search or a stored synchronous EQL search.- See Also:
-
get
public final <TEvent> CompletableFuture<EqlGetResponse<TEvent>> get(Function<EqlGetRequest.Builder, ObjectBuilder<EqlGetRequest>> fn, Class<TEvent> tEventClass) Get async EQL search results. Get the current status and available results for an async EQL search or a stored synchronous EQL search.- Parameters:
fn
- a function that initializes a builder to create theEqlGetRequest
- See Also:
-
get
public <TEvent> CompletableFuture<EqlGetResponse<TEvent>> get(EqlGetRequest request, Type tEventType) Get async EQL search results. Get the current status and available results for an async EQL search or a stored synchronous EQL search.- See Also:
-
get
public final <TEvent> CompletableFuture<EqlGetResponse<TEvent>> get(Function<EqlGetRequest.Builder, ObjectBuilder<EqlGetRequest>> fn, Type tEventType) Get async EQL search results. Get the current status and available results for an async EQL search or a stored synchronous EQL search.- Parameters:
fn
- a function that initializes a builder to create theEqlGetRequest
- See Also:
-
getStatus
Get the async EQL status. Get the current status for an async EQL search or a stored synchronous EQL search without returning results.- See Also:
-
getStatus
public final CompletableFuture<GetEqlStatusResponse> getStatus(Function<GetEqlStatusRequest.Builder, ObjectBuilder<GetEqlStatusRequest>> fn) Get the async EQL status. Get the current status for an async EQL search or a stored synchronous EQL search without returning results.- Parameters:
fn
- a function that initializes a builder to create theGetEqlStatusRequest
- See Also:
-
search
public <TEvent> CompletableFuture<EqlSearchResponse<TEvent>> search(EqlSearchRequest request, Class<TEvent> tEventClass) Get EQL search results. Returns search results for an Event Query Language (EQL) query. EQL assumes each document in a data stream or index corresponds to an event.- See Also:
-
search
public final <TEvent> CompletableFuture<EqlSearchResponse<TEvent>> search(Function<EqlSearchRequest.Builder, ObjectBuilder<EqlSearchRequest>> fn, Class<TEvent> tEventClass) Get EQL search results. Returns search results for an Event Query Language (EQL) query. EQL assumes each document in a data stream or index corresponds to an event.- Parameters:
fn
- a function that initializes a builder to create theEqlSearchRequest
- See Also:
-
search
public <TEvent> CompletableFuture<EqlSearchResponse<TEvent>> search(EqlSearchRequest request, Type tEventType) Get EQL search results. Returns search results for an Event Query Language (EQL) query. EQL assumes each document in a data stream or index corresponds to an event.- See Also:
-
search
public final <TEvent> CompletableFuture<EqlSearchResponse<TEvent>> search(Function<EqlSearchRequest.Builder, ObjectBuilder<EqlSearchRequest>> fn, Type tEventType) Get EQL search results. Returns search results for an Event Query Language (EQL) query. EQL assumes each document in a data stream or index corresponds to an event.- Parameters:
fn
- a function that initializes a builder to create theEqlSearchRequest
- See Also:
-