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 SummaryNested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBaseRequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Endpoint<DeleteWatchRequest,DeleteWatchResponse, ErrorResponse> Endpoint "watcher.delete_watch".
- 
Method SummaryModifier and TypeMethodDescriptionfinal Stringid()Required - The watch identifier.static DeleteWatchRequestMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBasetoString
- 
Field Details- 
_ENDPOINTEndpoint "watcher.delete_watch".
 
- 
- 
Method Details- 
ofpublic static DeleteWatchRequest of(Function<DeleteWatchRequest.Builder, ObjectBuilder<DeleteWatchRequest>> fn) 
- 
idRequired - The watch identifier.API name: id
 
-