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) Deletes an async EQL search or a stored synchronous EQL search.final EqlDeleteResponseDeletes an async EQL search or a stored synchronous EQL search.<TEvent> EqlGetResponse<TEvent>get(EqlGetRequest request, Class<TEvent> tEventClass) Returns the current status and available results for an async EQL search or a stored synchronous EQL search.<TEvent> EqlGetResponse<TEvent>get(EqlGetRequest request, Type tEventType) Returns the current status and available results for an async EQL search or a stored synchronous EQL search.final <TEvent> EqlGetResponse<TEvent>get(Function<EqlGetRequest.Builder, ObjectBuilder<EqlGetRequest>> fn, Class<TEvent> tEventClass) Returns the current status and available results for an async EQL search or a stored synchronous EQL search.final <TEvent> EqlGetResponse<TEvent>get(Function<EqlGetRequest.Builder, ObjectBuilder<EqlGetRequest>> fn, Type tEventType) Returns the current status and available results for an async EQL search or a stored synchronous EQL search.getStatus(GetEqlStatusRequest request) Returns the current status for an async EQL search or a stored synchronous EQL search without returning results.final GetEqlStatusResponseReturns the current status for an async EQL search or a stored synchronous EQL search without returning results.<TEvent> EqlSearchResponse<TEvent>search(EqlSearchRequest request, Class<TEvent> tEventClass) Returns results matching a query expressed in Event Query Language (EQL)<TEvent> EqlSearchResponse<TEvent>search(EqlSearchRequest request, Type tEventType) Returns results matching a query expressed in Event Query Language (EQL)final <TEvent> EqlSearchResponse<TEvent>search(Function<EqlSearchRequest.Builder, ObjectBuilder<EqlSearchRequest>> fn, Class<TEvent> tEventClass) Returns results matching a query expressed in Event Query Language (EQL)final <TEvent> EqlSearchResponse<TEvent>search(Function<EqlSearchRequest.Builder, ObjectBuilder<EqlSearchRequest>> fn, Type tEventType) Returns results matching a query expressed in Event Query Language (EQL)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:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchEqlClient>
-
delete
public EqlDeleteResponse delete(EqlDeleteRequest request) throws IOException, ElasticsearchException Deletes an async EQL search or a stored synchronous EQL search. The API also deletes results for the search.- Throws:
IOExceptionElasticsearchException- See Also:
-
delete
public final EqlDeleteResponse delete(Function<EqlDeleteRequest.Builder, ObjectBuilder<EqlDeleteRequest>> fn) throws IOException, ElasticsearchExceptionDeletes 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:
IOExceptionElasticsearchException- See Also:
-
get
public <TEvent> EqlGetResponse<TEvent> get(EqlGetRequest request, Class<TEvent> tEventClass) throws IOException, ElasticsearchException Returns the current status and available results for an async EQL search or a stored synchronous EQL search.- Throws:
IOExceptionElasticsearchException- See Also:
-
get
public final <TEvent> EqlGetResponse<TEvent> get(Function<EqlGetRequest.Builder, ObjectBuilder<EqlGetRequest>> fn, Class<TEvent> tEventClass) throws IOException, ElasticsearchExceptionReturns 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:
IOExceptionElasticsearchException- See Also:
-
get
public <TEvent> EqlGetResponse<TEvent> get(EqlGetRequest request, Type tEventType) throws IOException, ElasticsearchException Returns the current status and available results for an async EQL search or a stored synchronous EQL search.- Throws:
IOExceptionElasticsearchException- See Also:
-
get
public final <TEvent> EqlGetResponse<TEvent> get(Function<EqlGetRequest.Builder, ObjectBuilder<EqlGetRequest>> fn, Type tEventType) throws IOException, ElasticsearchExceptionReturns 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:
IOExceptionElasticsearchException- See Also:
-
getStatus
public GetEqlStatusResponse getStatus(GetEqlStatusRequest request) throws IOException, ElasticsearchException Returns the current status for an async EQL search or a stored synchronous EQL search without returning results.- Throws:
IOExceptionElasticsearchException- See Also:
-
getStatus
public final GetEqlStatusResponse getStatus(Function<GetEqlStatusRequest.Builder, ObjectBuilder<GetEqlStatusRequest>> fn) throws IOException, ElasticsearchExceptionReturns 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:
IOExceptionElasticsearchException- See Also:
-
search
public <TEvent> EqlSearchResponse<TEvent> search(EqlSearchRequest request, Class<TEvent> tEventClass) throws IOException, ElasticsearchException Returns results matching a query expressed in Event Query Language (EQL)- Throws:
IOExceptionElasticsearchException- See Also:
-
search
public final <TEvent> EqlSearchResponse<TEvent> search(Function<EqlSearchRequest.Builder, ObjectBuilder<EqlSearchRequest>> fn, Class<TEvent> tEventClass) throws IOException, ElasticsearchExceptionReturns results matching a query expressed in Event Query Language (EQL)- Parameters:
fn- a function that initializes a builder to create theEqlSearchRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
search
public <TEvent> EqlSearchResponse<TEvent> search(EqlSearchRequest request, Type tEventType) throws IOException, ElasticsearchException Returns results matching a query expressed in Event Query Language (EQL)- Throws:
IOExceptionElasticsearchException- See Also:
-
search
public final <TEvent> EqlSearchResponse<TEvent> search(Function<EqlSearchRequest.Builder, ObjectBuilder<EqlSearchRequest>> fn, Type tEventType) throws IOException, ElasticsearchExceptionReturns results matching a query expressed in Event Query Language (EQL)- Parameters:
fn- a function that initializes a builder to create theEqlSearchRequest- Throws:
IOExceptionElasticsearchException- See Also:
-