Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOCS] Edits warning in put watch API #38582

Merged
merged 1 commit into from
Feb 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions x-pack/docs/en/rest-api/watcher/put-watch.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<titleabbrev>Put watch</titleabbrev>
++++

The PUT watch API either registers a new watch in {watcher} or update an
The PUT watch API either registers a new watch in {watcher} or updates an
existing one.

[float]
Expand All @@ -21,13 +21,13 @@ the `.watches` index and its trigger is immediately registered with the relevant
trigger engine. Typically for the `schedule` trigger, the scheduler is the
trigger engine.

IMPORTANT: Putting a watch must be done via this API only. Do not put a watch
directly to the `.watches` index using the Elasticsearch Index API.
If {es} {security-features} are enabled, make sure no `write`
privileges are granted to anyone over the `.watches` index.
IMPORTANT: You must use {kib} or this API to create a watch. Do not put a watch
directly to the `.watches` index using the Elasticsearch index API.
If {es} {security-features} are enabled, do not give users `write`
privileges on the `.watches` index.

When adding a watch you can also define its initial
{xpack-ref}/how-watcher-works.html#watch-active-state[active state]. You do that
{stack-ov}/how-watcher-works.html#watch-active-state[active state]. You do that
by setting the `active` parameter.

[float]
Expand All @@ -52,16 +52,16 @@ A watch has the following fields:
|======
| Name | Description

| `trigger` | The {xpack-ref}/trigger.html[trigger] that defines when
| `trigger` | The {stack-ov}/trigger.html[trigger] that defines when
the watch should run.

| `input` | The {xpack-ref}/input.html[input] that defines the input
| `input` | The {stack-ov}/input.html[input] that defines the input
that loads the data for the watch.

| `condition` | The {xpack-ref}/condition.html[condition] that defines if
| `condition` | The {stack-ov}/condition.html[condition] that defines if
the actions should be run.

| `actions` | The list of {xpack-ref}/actions.html[actions] that will be
| `actions` | The list of {stack-ov}/actions.html[actions] that will be
run if the condition matches

| `metadata` | Metadata json that will be copied into the history entries.
Expand All @@ -75,7 +75,7 @@ A watch has the following fields:
==== Authorization

You must have `manage_watcher` cluster privileges to use this API. For more
information, see {xpack-ref}/security-privileges.html[Security Privileges].
information, see {stack-ov}/security-privileges.html[Security Privileges].

[float]
==== Security Integration
Expand Down Expand Up @@ -148,7 +148,7 @@ PUT _watcher/watch/my-watch
// CONSOLE

When you add a watch you can also define its initial
{xpack-ref}/how-watcher-works.html#watch-active-state[active state]. You do that
{stack-ov}/how-watcher-works.html#watch-active-state[active state]. You do that
by setting the `active` parameter. The following command adds a watch and sets
it to be inactive by default:

Expand Down