Skip to content

Commit 9c915f4

Browse files
committed
[DOCS] Edit Watcher summaries
1 parent fd5d7cf commit 9c915f4

File tree

13 files changed

+81
-17
lines changed

13 files changed

+81
-17
lines changed

docs/overlays/elasticsearch-shared-overlays.yaml

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,19 @@ actions:
4343
This API provides an alternative to relying solely on Kibana UI for connector and sync job management. The API comes with a set of validations and assertions to ensure that the state representation in the internal index remains valid.
4444
externalDocs:
4545
url: https://www.elastic.co/guide/en/elasticsearch/reference/master/es-connectors-tutorial-api.html
46-
description: Connector API tutorial
46+
description: Check out the connector API tutorial
4747
- name: ccr
4848
x-displayName: Cross-cluster replication
4949
# D
5050
- name: data stream
5151
x-displayName: Data stream
5252
externalDocs:
53-
description: Data stream overview
53+
description: Learn more about data streams.
5454
url: https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html
5555
- name: document
5656
x-displayName: Document
5757
externalDocs:
58-
description: Reading and writing documents
58+
description: Learn more about reading and writing documents.
5959
url: https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-replication.html
6060
# E
6161
- name: enrich
@@ -66,14 +66,14 @@ actions:
6666
Event Query Language (EQL) is a query language for event-based time series data, such as logs, metrics, and traces.
6767
externalDocs:
6868
url: https://www.elastic.co/guide/en/elasticsearch/reference/master/eql.html
69-
description: EQL search
69+
description: Learn more about EQL search.
7070
- name: esql
7171
x-displayName: ES|QL
7272
description: >
7373
The Elasticsearch Query Language (ES|QL) provides a powerful way to filter, transform, and analyze data stored in Elasticsearch, and in the future in other runtimes.
7474
externalDocs:
7575
url: https://www.elastic.co/guide/en/elasticsearch/reference/master/esql.html
76-
description: ES|QL overview and tutorials
76+
description: Learn more about ES|QL.
7777
# F
7878
- name: features
7979
description: The feature APIs enable you to introspect and manage features provided by Elasticsearch and Elasticsearch plugins.
@@ -87,7 +87,7 @@ actions:
8787
The graph explore API enables you to extract and summarize information about the documents and terms in an Elasticsearch data stream or index.
8888
externalDocs:
8989
url: https://www.elastic.co/guide/en/kibana/master/xpack-graph.html
90-
description: Getting started with Graph
90+
description: Get started with Graph.
9191
# I
9292
- name: indices
9393
x-displayName: Index
@@ -97,7 +97,7 @@ actions:
9797
x-displayName: Index lifecycle management
9898
externalDocs:
9999
url: https://www.elastic.co/guide/en/elasticsearch/reference/master/index-lifecycle-management.html
100-
description: Manage the index lifecycle
100+
description: Learn more about managing the index lifecycle.
101101
- name: inference
102102
x-displayName: Inference
103103
description: >
@@ -115,14 +115,14 @@ actions:
115115
description: Licensing APIs enable you to manage your licenses.
116116
externalDocs:
117117
url: https://www.elastic.co/subscriptions
118-
description: For more information about the different types of licenses, refer to Elastic subscriptions
118+
description: For more information about the different types of licenses, refer to Elastic subscriptions.
119119
- name: logstash
120120
x-displayName: Logstash
121121
description: >
122122
Logstash APIs enable you to manage pipelines that are used by Logstash Central Management.
123123
externalDocs:
124124
url: https://www.elastic.co/guide/en/logstash/master/logstash-centralized-pipeline-management.html
125-
description: Centralized pipeline management
125+
description: Learn more about centralized pipeline management.
126126
# M
127127
- name: ml
128128
x-displayName: Machine learning
@@ -131,19 +131,19 @@ actions:
131131
# description:
132132
externalDocs:
133133
url: https://www.elastic.co/guide/en/machine-learning/master/ml-ad-finding-anomalies.html
134-
description: Finding anomalies
134+
description: Learn more about finding anomalies.
135135
- name: ml data frame
136136
x-displayName: Machine learning data frame analytics
137137
# description:
138138
externalDocs:
139139
url: https://www.elastic.co/guide/en/machine-learning/master/ml-dfa-overview.html
140-
description: Data frame analytics overview
140+
description: Learn more about data frame analytics.
141141
- name: ml trained model
142142
x-displayName: Machine learning trained model
143143
# description:
144144
externalDocs:
145145
url: https://www.elastic.co/guide/en/machine-learning/master/ml-nlp-overview.html
146-
description: Natural language processing overview
146+
description: Learn more about natural language processing.
147147
- name: migration
148148
x-displayName: Migration
149149
- name: monitoring
@@ -163,7 +163,7 @@ actions:
163163
This allows pinning documents for only queries that match a specific term.
164164
externalDocs:
165165
url: https://www.elastic.co/guide/en/elasticsearch/reference/master/query-dsl-rule-query.html
166-
description: Rule query
166+
description: Learn more about the rule query.
167167
# R
168168
- name: rollup
169169
x-displayName: Rollup
@@ -184,21 +184,21 @@ actions:
184184
Snapshot and restore APIs enable you to set up snapshot repositories, manage snapshot backups, and restore snapshots to a running cluster.
185185
externalDocs:
186186
url: https://www.elastic.co/guide/en/elasticsearch/reference/master/snapshot-restore.html
187-
description: Snapshot and restore
187+
description: Learn more about snapshot and restore operations.
188188
- name: slm
189189
x-displayName: Snapshot lifecycle management
190190
description: >
191191
Snapshot lifecycle management (SLM) APIs enable you to set up policies to automatically take snapshots and control how long they are retained.
192192
externalDocs:
193193
url: https://www.elastic.co/guide/en/elasticsearch/reference/master/snapshots-take-snapshot.html
194-
description: Create a snapshot
194+
description: Learn more about creating a snapshot.
195195
- name: sql
196196
x-displayName: SQL
197197
description: >
198198
Elasticsearch's SQL APIs enable you to run SQL queries on Elasticsearch indices and data streams.
199199
externalDocs:
200200
url: https://www.elastic.co/guide/en/elasticsearch/reference/master/xpack-sql.html
201-
description: An overview and tutorials for the Elasticsearch SQL features
201+
description: Check out the overview and tutorials for the Elasticsearch SQL features.
202202
- name: synonyms
203203
x-displayName: Synonyms
204204
description: >
@@ -218,6 +218,11 @@ actions:
218218
# W
219219
- name: watcher
220220
x-displayName: Watcher
221+
description: >
222+
You can use Watcher to watch for changes or anomalies in your data and perform the necessary actions in response.
223+
externalDocs:
224+
url: https://www.elastic.co/guide/en/elasticsearch/reference/master/xpack-alerting.html
225+
description: Learn more about Watcher.
221226
# Add x-model and/or abbreviate schemas that should point to other references
222227
- target: "$.components['schemas']['_types.query_dsl:QueryContainer']"
223228
description: Add x-model for the QueryContainer object

specification/_doc_ids/table.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,7 @@ user-agent-processor,https://www.elastic.co/guide/en/elasticsearch/reference/{br
646646
user-profile,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/user-profile.html
647647
verify-repository,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/snapshots-register-repository.html#snapshots-repository-verification
648648
voting-config-exclusions,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/voting-config-exclusions.html
649+
watcher-works,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/how-watcher-works.html
649650
watcher-api-ack-watch,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/watcher-api-ack-watch.html
650651
watcher-api-activate-watch,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/watcher-api-activate-watch.html
651652
watcher-api-deactivate-watch,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/watcher-api-deactivate-watch.html

specification/watcher/ack_watch/WatcherAckWatchRequest.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,16 @@ import { RequestBase } from '@_types/Base'
2121
import { Name, Names } from '@_types/common'
2222

2323
/**
24+
* Acknowledge a watch.
25+
* Acknowledging a watch enables you to manually throttle the execution of the watch's actions.
26+
*
27+
* The acknowledgement state of an action is stored in the `status.actions.<id>.ack.state` structure.
28+
*
29+
* IMPORTANT: If the specified watch is currently being executed, this API will return an error
30+
* The reason for this behavior is to prevent overwriting the watch status from a watch execution.
2431
* @rest_spec_name watcher.ack_watch
2532
* @availability stack stability=stable
33+
* @cluster_privileges manage_watcher
2634
*/
2735
export interface Request extends RequestBase {
2836
path_parts: {

specification/watcher/activate_watch/WatcherActivateWatchRequest.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ import { RequestBase } from '@_types/Base'
2121
import { Name } from '@_types/common'
2222

2323
/**
24+
* Activate a watch.
25+
* A watch can be either active or inactive.
2426
* @rest_spec_name watcher.activate_watch
2527
* @availability stack stability=stable
28+
* @cluster_privileges manage_watcher
29+
* @ext_doc_id watcher-works
2630
*/
2731
export interface Request extends RequestBase {
2832
path_parts: {

specification/watcher/deactivate_watch/DeactivateWatchRequest.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ import { RequestBase } from '@_types/Base'
2121
import { Name } from '@_types/common'
2222

2323
/**
24+
* Deactivate a watch.
25+
* A watch can be either active or inactive.
2426
* @rest_spec_name watcher.deactivate_watch
2527
* @availability stack stability=stable
28+
* @cluster_privileges manage_watcher
29+
* @ext_doc_id watcher-works
2630
*/
2731
export interface Request extends RequestBase {
2832
path_parts: {

specification/watcher/delete_watch/DeleteWatchRequest.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,17 @@ import { RequestBase } from '@_types/Base'
2121
import { Name } from '@_types/common'
2222

2323
/**
24+
* Delete a watch.
25+
* When the watch is removed, the document representing the watch in the `.watches` index is gone and it will never be run again.
26+
*
27+
* Deleting a watch does not delete any watch execution records related to this watch from the watch history.
28+
*
29+
* IMPORTANT: Deleting a watch must be done by using only this API.
30+
* Do not delete the watch directly from the `.watches` index using the Elasticsearch delete document API
31+
* When Elasticsearch security features are enabled, make sure no write privileges are granted to anyone for the `.watches` index.
2432
* @rest_spec_name watcher.delete_watch
2533
* @availability stack stability=stable
34+
* @cluster_privileges manage_watcher
2635
*/
2736
export interface Request extends RequestBase {
2837
path_parts: {

specification/watcher/execute_watch/WatcherExecuteWatchRequest.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,15 @@ import { RequestBase } from '@_types/Base'
2626
import { Id } from '@_types/common'
2727

2828
/**
29+
* Run a watch.
2930
* This API can be used to force execution of the watch outside of its triggering logic or to simulate the watch execution for debugging purposes.
30-
* For testing and debugging purposes, you also have fine-grained control on how the watch runs. You can execute the watch without executing all of its actions or alternatively by simulating them. You can also force execution by ignoring the watch condition and control whether a watch record would be written to the watch history after execution.
31+
*
32+
* For testing and debugging purposes, you also have fine-grained control on how the watch runs.
33+
* You can run the watch without running all of its actions or alternatively by simulating them.
34+
* You can also force execution by ignoring the watch condition and control whether a watch record would be written to the watch history after it runs.
35+
*
36+
* You can use the run watch API to run watches that are not yet registered by specifying the watch definition inline.
37+
* This serves as great tool for testing and debugging your watches prior to adding them to Watcher.
3138
* @rest_spec_name watcher.execute_watch
3239
* @availability stack stability=stable
3340
* @cluster_privileges manage_watcher

specification/watcher/get_watch/GetWatchRequest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ import { RequestBase } from '@_types/Base'
2121
import { Name } from '@_types/common'
2222

2323
/**
24+
* Get a watch.
2425
* @rest_spec_name watcher.get_watch
2526
* @availability stack since=5.6.0 stability=stable
27+
* @cluster_privileges monitor_watcher
2628
*/
2729
export interface Request extends RequestBase {
2830
path_parts: {

specification/watcher/put_watch/WatcherPutWatchRequest.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,21 @@ import { long } from '@_types/Numeric'
2828
import { TransformContainer } from '@_types/Transform'
2929

3030
/**
31+
* Create or update a watch.
32+
* When a watch is registered, a new document that represents the watch is added to the `.watches` index and its trigger is immediately registered with the relevant trigger engine.
33+
* Typically for the `schedule` trigger, the scheduler is the trigger engine.
34+
*
35+
* IMPORTANT: You must use Kibana or this API to create a watch.
36+
* Do not add a watch directly to the `.watches` index by using the Elasticsearch index API.
37+
* If Elasticsearch security features are enabled, do not give users write privileges on the `.watches` index.
38+
*
39+
* When you add a watch you can also define its initial active state by setting the *active* parameter.
40+
*
41+
* When Elasticsearch security features are enabled, your watch can index or search only on indices for which the user that stored the watch has privileges.
42+
* If the user is able to read index `a`, but not index `b`, the same will apply when the watch runs.
3143
* @rest_spec_name watcher.put_watch
3244
* @availability stack stability=stable
45+
* @cluster_privileges manage_watcher
3346
*/
3447
export interface Request extends RequestBase {
3548
path_parts: {

specification/watcher/query_watches/WatcherQueryWatchesRequest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ import { QueryContainer } from '@_types/query_dsl/abstractions'
2323
import { Sort, SortResults } from '@_types/sort'
2424

2525
/**
26+
* Query watches.
27+
* Get all registered watches in a paginated manner and optionally filter watches by a query.
2628
* @rest_spec_name watcher.query_watches
2729
* @availability stack since=7.11.0 stability=stable
30+
* @cluster_privileges monitor_watcher
2831
*/
2932
export interface Request extends RequestBase {
3033
body: {

0 commit comments

Comments
 (0)