Class ElasticsearchEqlClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchEqlClient>
co.elastic.clients.elasticsearch.eql.ElasticsearchEqlClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class ElasticsearchEqlClient
extends ApiClient<ElasticsearchTransport,ElasticsearchEqlClient>
Client for the eql namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchEqlClient
(ElasticsearchTransport transport) ElasticsearchEqlClient
(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptiondelete
(EqlDeleteRequest request) Delete an async EQL search.final EqlDeleteResponse
Delete an async EQL search.get
(EqlGetRequest request) Overload ofget(EqlGetRequest, Class)
, where Class is defined as Void, meaning the documents will not be deserialized.<TEvent> EqlGetResponse<TEvent>
get
(EqlGetRequest request, Class<TEvent> tEventClass) Get async EQL search results.<TEvent> EqlGetResponse<TEvent>
get
(EqlGetRequest request, Type tEventType) Get async EQL search results.final EqlGetResponse<Void>
Overload ofget(Function, Class)
, where Class is defined as Void, meaning the documents will not be deserialized.final <TEvent> EqlGetResponse<TEvent>
get
(Function<EqlGetRequest.Builder, ObjectBuilder<EqlGetRequest>> fn, Class<TEvent> tEventClass) Get async EQL search results.final <TEvent> EqlGetResponse<TEvent>
get
(Function<EqlGetRequest.Builder, ObjectBuilder<EqlGetRequest>> fn, Type tEventType) Get async EQL search results.getStatus
(GetEqlStatusRequest request) Get the async EQL status.final GetEqlStatusResponse
Get the async EQL status.search
(EqlSearchRequest request) Overload ofsearch(EqlSearchRequest, Class)
, where Class is defined as Void, meaning the documents will not be deserialized.<TEvent> EqlSearchResponse<TEvent>
search
(EqlSearchRequest request, Class<TEvent> tEventClass) Get EQL search results.<TEvent> EqlSearchResponse<TEvent>
search
(EqlSearchRequest request, Type tEventType) Get EQL search results.final EqlSearchResponse<Void>
Overload ofsearch(Function, Class)
, where Class is defined as Void, meaning the documents will not be deserialized.final <TEvent> EqlSearchResponse<TEvent>
search
(Function<EqlSearchRequest.Builder, ObjectBuilder<EqlSearchRequest>> fn, Class<TEvent> tEventClass) Get EQL search results.final <TEvent> 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
-
ElasticsearchEqlClient
-
ElasticsearchEqlClient
public ElasticsearchEqlClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,
ElasticsearchEqlClient>
-
delete
public EqlDeleteResponse delete(EqlDeleteRequest request) throws IOException, ElasticsearchException Delete an async EQL search. Delete an async EQL search or a stored synchronous EQL search. The API also deletes results for the search.- Throws:
IOException
ElasticsearchException
- See Also:
-
delete
public final EqlDeleteResponse delete(Function<EqlDeleteRequest.Builder, ObjectBuilder<EqlDeleteRequest>> fn) throws IOException, ElasticsearchExceptionDelete 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
- Throws:
IOException
ElasticsearchException
- See Also:
-
get
public <TEvent> EqlGetResponse<TEvent> get(EqlGetRequest request, Class<TEvent> tEventClass) throws IOException, ElasticsearchException Get async EQL search results. Get the current status and available results for an async EQL search or a stored synchronous EQL search.- Throws:
IOException
ElasticsearchException
- See Also:
-
get
public final <TEvent> EqlGetResponse<TEvent> get(Function<EqlGetRequest.Builder, ObjectBuilder<EqlGetRequest>> fn, Class<TEvent> tEventClass) throws IOException, ElasticsearchExceptionGet 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
- Throws:
IOException
ElasticsearchException
- See Also:
-
get
Overload ofget(EqlGetRequest, Class)
, where Class is defined as Void, meaning the documents will not be deserialized.- Throws:
IOException
ElasticsearchException
-
get
public final EqlGetResponse<Void> get(Function<EqlGetRequest.Builder, ObjectBuilder<EqlGetRequest>> fn) throws IOException, ElasticsearchExceptionOverload ofget(Function, Class)
, where Class is defined as Void, meaning the documents will not be deserialized.- Throws:
IOException
ElasticsearchException
-
get
public <TEvent> EqlGetResponse<TEvent> get(EqlGetRequest request, Type tEventType) throws IOException, ElasticsearchException Get async EQL search results. Get the current status and available results for an async EQL search or a stored synchronous EQL search.- Throws:
IOException
ElasticsearchException
- See Also:
-
get
public final <TEvent> EqlGetResponse<TEvent> get(Function<EqlGetRequest.Builder, ObjectBuilder<EqlGetRequest>> fn, Type tEventType) throws IOException, ElasticsearchExceptionGet 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
- Throws:
IOException
ElasticsearchException
- See Also:
-
getStatus
public GetEqlStatusResponse getStatus(GetEqlStatusRequest request) throws IOException, ElasticsearchException Get the async EQL status. Get the current status for an async EQL search or a stored synchronous EQL search without returning results.- Throws:
IOException
ElasticsearchException
- See Also:
-
getStatus
public final GetEqlStatusResponse getStatus(Function<GetEqlStatusRequest.Builder, ObjectBuilder<GetEqlStatusRequest>> fn) throws IOException, ElasticsearchExceptionGet 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
- Throws:
IOException
ElasticsearchException
- See Also:
-
search
public <TEvent> EqlSearchResponse<TEvent> search(EqlSearchRequest request, Class<TEvent> tEventClass) throws IOException, ElasticsearchException 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.- Throws:
IOException
ElasticsearchException
- See Also:
-
search
public final <TEvent> EqlSearchResponse<TEvent> search(Function<EqlSearchRequest.Builder, ObjectBuilder<EqlSearchRequest>> fn, Class<TEvent> tEventClass) throws IOException, ElasticsearchExceptionGet 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
- Throws:
IOException
ElasticsearchException
- See Also:
-
search
public EqlSearchResponse<Void> search(EqlSearchRequest request) throws IOException, ElasticsearchException Overload ofsearch(EqlSearchRequest, Class)
, where Class is defined as Void, meaning the documents will not be deserialized.- Throws:
IOException
ElasticsearchException
-
search
public final EqlSearchResponse<Void> search(Function<EqlSearchRequest.Builder, ObjectBuilder<EqlSearchRequest>> fn) throws IOException, ElasticsearchExceptionOverload ofsearch(Function, Class)
, where Class is defined as Void, meaning the documents will not be deserialized.- Throws:
IOException
ElasticsearchException
-
search
public <TEvent> EqlSearchResponse<TEvent> search(EqlSearchRequest request, Type tEventType) throws IOException, ElasticsearchException 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.- Throws:
IOException
ElasticsearchException
- See Also:
-
search
public final <TEvent> EqlSearchResponse<TEvent> search(Function<EqlSearchRequest.Builder, ObjectBuilder<EqlSearchRequest>> fn, Type tEventType) throws IOException, ElasticsearchExceptionGet 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
- Throws:
IOException
ElasticsearchException
- See Also:
-