datadog_event - Posts events to DataDog service
New in version 1.3.
Synopsis
- Allows to post events to DataDog (www.datadoghq.com) service.
- Uses http://docs.datadoghq.com/api/#events API.
Options
| parameter | required | default | choices | comments |
|---|---|---|---|---|
| aggregation_key | no | An arbitrary string to use for aggregation. | ||
| alert_type | no | info |
| Type of alert. |
| api_key | yes | Your DataDog API key. | ||
| app_key (added in 2.2)
| yes | Your DataDog app key. | ||
| date_happened | no | now | POSIX timestamp of the event. Default value is now. | |
| host (added in 2.4)
| no | {{ ansible_hostname }} | Host name to associate with the event. | |
| priority | no | normal |
| The priority of the event. |
| tags | no | Comma separated list of tags to apply to the event. | ||
| text | yes | The body of the event. | ||
| title | yes | The event title. | ||
| validate_certs (added in 1.5.1)
| no | yes |
| If no, SSL certificates will not be validated. This should only be used on personally controlled sites using self-signed certificates. |
Examples
# Post an event with low priority
- 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 }}'
Status
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Testing Ansible and Developing Modules.
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.4/datadog_event_module.html