diff options
author | Fabio Alessandro Locati <me@fale.io> | 2016-12-04 10:54:53 +0000 |
---|---|---|
committer | John R Barker <john@johnrbarker.com> | 2016-12-04 10:54:53 +0000 |
commit | 1f61381faeedeb9e705b3de94b4606364a06ab21 (patch) | |
tree | 9ef642612d8939413984cb6284dd3995f3e4f8ba | |
parent | f42c34088a7af929a1b884a684dd075bf4a6753e (diff) | |
download | ansible-modules-extras-1f61381faeedeb9e705b3de94b4606364a06ab21.tar.gz |
Native YAML - monitoring/datadog_event (#3637)
-rw-r--r-- | monitoring/datadog_event.py | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/monitoring/datadog_event.py b/monitoring/datadog_event.py index 88d921bf..30fb2caf 100644 --- a/monitoring/datadog_event.py +++ b/monitoring/datadog_event.py @@ -95,14 +95,19 @@ options: EXAMPLES = ''' # Post an event with low priority -datadog_event: title="Testing from ansible" text="Test!" priority="low" - api_key: "9775a026f1ca7d1c6c5af9d94d9595a4" - app_key: "j4JyCYfefWHhgFgiZUqRm63AXHNZQyPGBfJtAzmN" +- datadog_event: + title: Testing from ansible + text: Test + priority: low + api_key: 9775a026f1ca7d1c6c5af9d94d9595a4 + app_key: j4JyCYfefWHhgFgiZUqRm63AXHNZQyPGBfJtAzmN # Post an event with several tags -datadog_event: title="Testing from ansible" text="Test!" - api_key: "9775a026f1ca7d1c6c5af9d94d9595a4" - app_key: "j4JyCYfefWHhgFgiZUqRm63AXHNZQyPGBfJtAzmN" - tags=aa,bb,#host:{{ inventory_hostname }} +- datadog_event: + title: Testing from ansible + text: Test + api_key: 9775a026f1ca7d1c6c5af9d94d9595a4 + app_key: j4JyCYfefWHhgFgiZUqRm63AXHNZQyPGBfJtAzmN + tags: 'aa,bb,#host:{{ inventory_hostname }}' ''' # Import Datadog |