|
|
|
@ -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
|
|
|
|
|