Skip to content

Commit

Permalink
[DOCS] Adds missing code snippet info
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl committed Jun 22, 2018
1 parent 98f22f7 commit fefb31b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions x-pack/docs/en/watcher/condition/script.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ you need to parse the `@timestamp` string into a `DateTime`. For example:
--------------------------------------------------
org.elasticsearch.common.joda.time.DateTime.parse(@timestamp)
--------------------------------------------------
// NOTCONSOLE

You can reference the following variables in the watch context:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ output { <2>
}
----------------------------------------------------------
// NOTCONSOLE
<1> The meetup data stream is formatted in JSON.
<2> Index the meetup data into Elasticsearch.
--
Expand All @@ -50,6 +51,7 @@ output { <2>
----------------------------------------------------------
curl http://stream.meetup.com/2/rsvps | bin/logstash -f livestream.conf
---------------------------------------------------------
// NOTCONSOLE
--

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.
Expand Down
1 change: 1 addition & 0 deletions x-pack/docs/en/watcher/transform.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ part of the definition of the `my_webhook` action.
]
}
--------------------------------------------------
// NOTCONSOLE
<1> A watch level `transform`
<2> An action level `transform`

Expand Down
1 change: 1 addition & 0 deletions x-pack/docs/en/watcher/trigger/schedule/cron.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ that triggers every day at noon:
...
}
--------------------------------------------------
// NOTCONSOLE

===== Configuring a Multiple Times Cron Schedule

Expand Down
1 change: 1 addition & 0 deletions x-pack/docs/en/watcher/troubleshooting.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ mappings:
DELETE .watches
--------------------------------------------------
// CONSOLE
// TEST[skip:index deletion]
+
. Disable direct access to the `.watches` index:
.. Stop the Elasticsearch node.
Expand Down

0 comments on commit fefb31b

Please sign in to comment.