Class ElasticsearchWatcherClient
java.lang.Object
co.elastic.clients.base.ApiClient
co.elastic.clients.elasticsearch.watcher.ElasticsearchWatcherClient
public class ElasticsearchWatcherClient extends ApiClient
Client for the watcher namespace.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ElasticsearchWatcherClient(Transport transport)
-
Method Summary
Modifier and Type Method Description AckWatchResponse
ackWatch(AckWatchRequest request)
Acknowledges a watch, manually throttling the execution of the watch's actions.AckWatchResponse
ackWatch(java.util.function.Function<AckWatchRequest.Builder,ObjectBuilder<AckWatchRequest>> fn)
Acknowledges a watch, manually throttling the execution of the watch's actions.ActivateWatchResponse
activateWatch(ActivateWatchRequest request)
Activates a currently inactive watch.ActivateWatchResponse
activateWatch(java.util.function.Function<ActivateWatchRequest.Builder,ObjectBuilder<ActivateWatchRequest>> fn)
Activates a currently inactive watch.DeactivateWatchResponse
deactivateWatch(DeactivateWatchRequest request)
Deactivates a currently active watch.DeactivateWatchResponse
deactivateWatch(java.util.function.Function<DeactivateWatchRequest.Builder,ObjectBuilder<DeactivateWatchRequest>> fn)
Deactivates a currently active watch.DeleteWatchResponse
deleteWatch(DeleteWatchRequest request)
Removes a watch from Watcher.DeleteWatchResponse
deleteWatch(java.util.function.Function<DeleteWatchRequest.Builder,ObjectBuilder<DeleteWatchRequest>> fn)
Removes a watch from Watcher.ExecuteWatchResponse
executeWatch(ExecuteWatchRequest request)
Forces the execution of a stored watch.ExecuteWatchResponse
executeWatch(java.util.function.Function<ExecuteWatchRequest.Builder,ObjectBuilder<ExecuteWatchRequest>> fn)
Forces the execution of a stored watch.GetWatchResponse
getWatch(GetWatchRequest request)
Retrieves a watch by its ID.GetWatchResponse
getWatch(java.util.function.Function<GetWatchRequest.Builder,ObjectBuilder<GetWatchRequest>> fn)
Retrieves a watch by its ID.PutWatchResponse
putWatch(PutWatchRequest request)
Creates a new watch, or updates an existing one.PutWatchResponse
putWatch(java.util.function.Function<PutWatchRequest.Builder,ObjectBuilder<PutWatchRequest>> fn)
Creates a new watch, or updates an existing one.QueryWatchesResponse
queryWatches(QueryWatchesRequest request)
Retrieves stored watches.QueryWatchesResponse
queryWatches(java.util.function.Function<QueryWatchesRequest.Builder,ObjectBuilder<QueryWatchesRequest>> fn)
Retrieves stored watches.StartResponse
start()
Starts Watcher if it is not already running.StatsResponse
stats(StatsRequest request)
Retrieves the current Watcher metrics.StatsResponse
stats(java.util.function.Function<StatsRequest.Builder,ObjectBuilder<StatsRequest>> fn)
Retrieves the current Watcher metrics.StopResponse
stop()
Stops Watcher if it is running.Methods inherited from class co.elastic.clients.base.ApiClient
_transport, getDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchWatcherClient
-
-
Method Details
-
ackWatch
Acknowledges a watch, manually throttling the execution of the watch's actions.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
ackWatch
public final AckWatchResponse ackWatch(java.util.function.Function<AckWatchRequest.Builder,ObjectBuilder<AckWatchRequest>> fn) throws java.io.IOExceptionAcknowledges a watch, manually throttling the execution of the watch's actions.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
activateWatch
public ActivateWatchResponse activateWatch(ActivateWatchRequest request) throws java.io.IOExceptionActivates a currently inactive watch.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
activateWatch
public final ActivateWatchResponse activateWatch(java.util.function.Function<ActivateWatchRequest.Builder,ObjectBuilder<ActivateWatchRequest>> fn) throws java.io.IOExceptionActivates a currently inactive watch.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deactivateWatch
public DeactivateWatchResponse deactivateWatch(DeactivateWatchRequest request) throws java.io.IOExceptionDeactivates a currently active watch.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deactivateWatch
public final DeactivateWatchResponse deactivateWatch(java.util.function.Function<DeactivateWatchRequest.Builder,ObjectBuilder<DeactivateWatchRequest>> fn) throws java.io.IOExceptionDeactivates a currently active watch.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deleteWatch
Removes a watch from Watcher.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deleteWatch
public final DeleteWatchResponse deleteWatch(java.util.function.Function<DeleteWatchRequest.Builder,ObjectBuilder<DeleteWatchRequest>> fn) throws java.io.IOExceptionRemoves a watch from Watcher.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
executeWatch
Forces the execution of a stored watch.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
executeWatch
public final ExecuteWatchResponse executeWatch(java.util.function.Function<ExecuteWatchRequest.Builder,ObjectBuilder<ExecuteWatchRequest>> fn) throws java.io.IOExceptionForces the execution of a stored watch.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getWatch
Retrieves a watch by its ID.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getWatch
public final GetWatchResponse getWatch(java.util.function.Function<GetWatchRequest.Builder,ObjectBuilder<GetWatchRequest>> fn) throws java.io.IOExceptionRetrieves a watch by its ID.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
putWatch
Creates a new watch, or updates an existing one.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
putWatch
public final PutWatchResponse putWatch(java.util.function.Function<PutWatchRequest.Builder,ObjectBuilder<PutWatchRequest>> fn) throws java.io.IOExceptionCreates a new watch, or updates an existing one.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
queryWatches
Retrieves stored watches.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
queryWatches
public final QueryWatchesResponse queryWatches(java.util.function.Function<QueryWatchesRequest.Builder,ObjectBuilder<QueryWatchesRequest>> fn) throws java.io.IOExceptionRetrieves stored watches.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
start
Starts Watcher if it is not already running.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
stats
Retrieves the current Watcher metrics.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
stats
public final StatsResponse stats(java.util.function.Function<StatsRequest.Builder,ObjectBuilder<StatsRequest>> fn) throws java.io.IOExceptionRetrieves the current Watcher metrics.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
stop
Stops Watcher if it is running.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-