Class ElasticsearchWatcherClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchWatcherClient>
co.elastic.clients.elasticsearch.watcher.ElasticsearchWatcherClient
public class ElasticsearchWatcherClient extends ApiClient<ElasticsearchTransport,ElasticsearchWatcherClient>
Client for the watcher namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions -
Constructor Summary
Constructors Constructor Description ElasticsearchWatcherClient(ElasticsearchTransport transport)ElasticsearchWatcherClient(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and Type Method Description AckWatchResponseackWatch(AckWatchRequest request)Acknowledges a watch, manually throttling the execution of the watch's actions.AckWatchResponseackWatch(java.util.function.Function<AckWatchRequest.Builder,ObjectBuilder<AckWatchRequest>> fn)Acknowledges a watch, manually throttling the execution of the watch's actions.ActivateWatchResponseactivateWatch(ActivateWatchRequest request)Activates a currently inactive watch.ActivateWatchResponseactivateWatch(java.util.function.Function<ActivateWatchRequest.Builder,ObjectBuilder<ActivateWatchRequest>> fn)Activates a currently inactive watch.DeactivateWatchResponsedeactivateWatch(DeactivateWatchRequest request)Deactivates a currently active watch.DeactivateWatchResponsedeactivateWatch(java.util.function.Function<DeactivateWatchRequest.Builder,ObjectBuilder<DeactivateWatchRequest>> fn)Deactivates a currently active watch.DeleteWatchResponsedeleteWatch(DeleteWatchRequest request)Removes a watch from Watcher.DeleteWatchResponsedeleteWatch(java.util.function.Function<DeleteWatchRequest.Builder,ObjectBuilder<DeleteWatchRequest>> fn)Removes a watch from Watcher.ExecuteWatchResponseexecuteWatch()Forces the execution of a stored watch.ExecuteWatchResponseexecuteWatch(ExecuteWatchRequest request)Forces the execution of a stored watch.ExecuteWatchResponseexecuteWatch(java.util.function.Function<ExecuteWatchRequest.Builder,ObjectBuilder<ExecuteWatchRequest>> fn)Forces the execution of a stored watch.GetWatchResponsegetWatch(GetWatchRequest request)Retrieves a watch by its ID.GetWatchResponsegetWatch(java.util.function.Function<GetWatchRequest.Builder,ObjectBuilder<GetWatchRequest>> fn)Retrieves a watch by its ID.PutWatchResponseputWatch(PutWatchRequest request)Creates a new watch, or updates an existing one.PutWatchResponseputWatch(java.util.function.Function<PutWatchRequest.Builder,ObjectBuilder<PutWatchRequest>> fn)Creates a new watch, or updates an existing one.QueryWatchesResponsequeryWatches()Retrieves stored watches.QueryWatchesResponsequeryWatches(QueryWatchesRequest request)Retrieves stored watches.QueryWatchesResponsequeryWatches(java.util.function.Function<QueryWatchesRequest.Builder,ObjectBuilder<QueryWatchesRequest>> fn)Retrieves stored watches.StartWatcherResponsestart()Starts Watcher if it is not already running.WatcherStatsResponsestats()Retrieves the current Watcher metrics.WatcherStatsResponsestats(WatcherStatsRequest request)Retrieves the current Watcher metrics.WatcherStatsResponsestats(java.util.function.Function<WatcherStatsRequest.Builder,ObjectBuilder<WatcherStatsRequest>> fn)Retrieves the current Watcher metrics.StopWatcherResponsestop()Stops Watcher if it is running.ElasticsearchWatcherClientwithTransportOptions(TransportOptions transportOptions)Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchWatcherClient
-
ElasticsearchWatcherClient
public ElasticsearchWatcherClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchWatcherClient withTransportOptions(@Nullable TransportOptions transportOptions)Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchWatcherClient>
-
ackWatch
public AckWatchResponse ackWatch(AckWatchRequest request) throws java.io.IOException, ElasticsearchExceptionAcknowledges a watch, manually throttling the execution of the watch's actions.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
ackWatch
public final AckWatchResponse ackWatch(java.util.function.Function<AckWatchRequest.Builder,ObjectBuilder<AckWatchRequest>> fn) throws java.io.IOException, ElasticsearchExceptionAcknowledges a watch, manually throttling the execution of the watch's actions.- Parameters:
fn- a function that initializes a builder to create theAckWatchRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
activateWatch
public ActivateWatchResponse activateWatch(ActivateWatchRequest request) throws java.io.IOException, ElasticsearchExceptionActivates a currently inactive watch.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
activateWatch
public final ActivateWatchResponse activateWatch(java.util.function.Function<ActivateWatchRequest.Builder,ObjectBuilder<ActivateWatchRequest>> fn) throws java.io.IOException, ElasticsearchExceptionActivates a currently inactive watch.- Parameters:
fn- a function that initializes a builder to create theActivateWatchRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
deactivateWatch
public DeactivateWatchResponse deactivateWatch(DeactivateWatchRequest request) throws java.io.IOException, ElasticsearchExceptionDeactivates a currently active watch.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
deactivateWatch
public final DeactivateWatchResponse deactivateWatch(java.util.function.Function<DeactivateWatchRequest.Builder,ObjectBuilder<DeactivateWatchRequest>> fn) throws java.io.IOException, ElasticsearchExceptionDeactivates a currently active watch.- Parameters:
fn- a function that initializes a builder to create theDeactivateWatchRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
deleteWatch
public DeleteWatchResponse deleteWatch(DeleteWatchRequest request) throws java.io.IOException, ElasticsearchExceptionRemoves a watch from Watcher.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
deleteWatch
public final DeleteWatchResponse deleteWatch(java.util.function.Function<DeleteWatchRequest.Builder,ObjectBuilder<DeleteWatchRequest>> fn) throws java.io.IOException, ElasticsearchExceptionRemoves a watch from Watcher.- Parameters:
fn- a function that initializes a builder to create theDeleteWatchRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
executeWatch
public ExecuteWatchResponse executeWatch(ExecuteWatchRequest request) throws java.io.IOException, ElasticsearchExceptionForces the execution of a stored watch.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
executeWatch
public final ExecuteWatchResponse executeWatch(java.util.function.Function<ExecuteWatchRequest.Builder,ObjectBuilder<ExecuteWatchRequest>> fn) throws java.io.IOException, ElasticsearchExceptionForces the execution of a stored watch.- Parameters:
fn- a function that initializes a builder to create theExecuteWatchRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
executeWatch
Forces the execution of a stored watch.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getWatch
public GetWatchResponse getWatch(GetWatchRequest request) throws java.io.IOException, ElasticsearchExceptionRetrieves a watch by its ID.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getWatch
public final GetWatchResponse getWatch(java.util.function.Function<GetWatchRequest.Builder,ObjectBuilder<GetWatchRequest>> fn) throws java.io.IOException, ElasticsearchExceptionRetrieves a watch by its ID.- Parameters:
fn- a function that initializes a builder to create theGetWatchRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
putWatch
public PutWatchResponse putWatch(PutWatchRequest request) throws java.io.IOException, ElasticsearchExceptionCreates a new watch, or updates an existing one.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
putWatch
public final PutWatchResponse putWatch(java.util.function.Function<PutWatchRequest.Builder,ObjectBuilder<PutWatchRequest>> fn) throws java.io.IOException, ElasticsearchExceptionCreates a new watch, or updates an existing one.- Parameters:
fn- a function that initializes a builder to create thePutWatchRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
queryWatches
public QueryWatchesResponse queryWatches(QueryWatchesRequest request) throws java.io.IOException, ElasticsearchExceptionRetrieves stored watches.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
queryWatches
public final QueryWatchesResponse queryWatches(java.util.function.Function<QueryWatchesRequest.Builder,ObjectBuilder<QueryWatchesRequest>> fn) throws java.io.IOException, ElasticsearchExceptionRetrieves stored watches.- Parameters:
fn- a function that initializes a builder to create theQueryWatchesRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
queryWatches
Retrieves stored watches.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
start
Starts Watcher if it is not already running.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
stats
public WatcherStatsResponse stats(WatcherStatsRequest request) throws java.io.IOException, ElasticsearchExceptionRetrieves the current Watcher metrics.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
stats
public final WatcherStatsResponse stats(java.util.function.Function<WatcherStatsRequest.Builder,ObjectBuilder<WatcherStatsRequest>> fn) throws java.io.IOException, ElasticsearchExceptionRetrieves the current Watcher metrics.- Parameters:
fn- a function that initializes a builder to create theWatcherStatsRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
stats
Retrieves the current Watcher metrics.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
stop
Stops Watcher if it is running.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-