Skip to content

Commit fefb31b

Browse files
committed
[DOCS] Adds missing code snippet info
1 parent 98f22f7 commit fefb31b

File tree

5 files changed

+6
-0
lines changed

5 files changed

+6
-0
lines changed

x-pack/docs/en/watcher/condition/script.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ you need to parse the `@timestamp` string into a `DateTime`. For example:
138138
--------------------------------------------------
139139
org.elasticsearch.common.joda.time.DateTime.parse(@timestamp)
140140
--------------------------------------------------
141+
// NOTCONSOLE
141142

142143
You can reference the following variables in the watch context:
143144

x-pack/docs/en/watcher/example-watches/example-watch-meetupdata.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ output { <2>
3939
}
4040
4141
----------------------------------------------------------
42+
// NOTCONSOLE
4243
<1> The meetup data stream is formatted in JSON.
4344
<2> Index the meetup data into Elasticsearch.
4445
--
@@ -50,6 +51,7 @@ output { <2>
5051
----------------------------------------------------------
5152
curl http://stream.meetup.com/2/rsvps | bin/logstash -f livestream.conf
5253
---------------------------------------------------------
54+
// NOTCONSOLE
5355
--
5456

5557
Now that you're indexing the meetup RSVPs, you can set up a watch that lets you know about events you might be interested in. For example, let's create a watch that runs every hour, looks for events that talk about about _Open Source_, and sends an email with information about the events.

x-pack/docs/en/watcher/transform.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ part of the definition of the `my_webhook` action.
5252
]
5353
}
5454
--------------------------------------------------
55+
// NOTCONSOLE
5556
<1> A watch level `transform`
5657
<2> An action level `transform`
5758

x-pack/docs/en/watcher/trigger/schedule/cron.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ that triggers every day at noon:
184184
...
185185
}
186186
--------------------------------------------------
187+
// NOTCONSOLE
187188

188189
===== Configuring a Multiple Times Cron Schedule
189190

x-pack/docs/en/watcher/troubleshooting.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ mappings:
3131
DELETE .watches
3232
--------------------------------------------------
3333
// CONSOLE
34+
// TEST[skip:index deletion]
3435
+
3536
. Disable direct access to the `.watches` index:
3637
.. Stop the Elasticsearch node.

0 commit comments

Comments
 (0)