Class DeleteWatchRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.watcher.DeleteWatchRequest
Delete a watch. When the watch is removed, the document representing the
watch in the
.watches
index is gone and it will never be run
again.
Deleting a watch does not delete any watch execution records related to this watch from the watch history.
IMPORTANT: Deleting a watch must be done by using only this API. Do not
delete the watch directly from the .watches
index using the
Elasticsearch delete document API When Elasticsearch security features are
enabled, make sure no write privileges are granted to anyone for the
.watches
index.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Endpoint<DeleteWatchRequest,
DeleteWatchResponse, ErrorResponse> Endpoint "watcher.delete_watch
". -
Method Summary
Modifier and TypeMethodDescriptionfinal String
id()
Required - The watch identifier.static DeleteWatchRequest
Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_ENDPOINT
Endpoint "watcher.delete_watch
".
-
-
Method Details
-
of
public static DeleteWatchRequest of(Function<DeleteWatchRequest.Builder, ObjectBuilder<DeleteWatchRequest>> fn) -
id
Required - The watch identifier.API name:
id
-