community / community.general / 0.2.1 / module / datadog_event Posts events to Datadog service Authors: Artūras `arturaz` Šlajus (@arturaz), Naoya Nakazawa (@n0ts)community.general.datadog_event (0.2.1) — module
Install with ansible-galaxy collection install community.general:==0.2.1
collections: - name: community.general version: 0.2.1
Allows to post events to Datadog (www.datadoghq.com) service.
Uses http://docs.datadoghq.com/api/#events API.
- name: Post an event with low priority datadog_event: title: Testing from ansible text: Test priority: low api_key: 9775a026f1ca7d1c6c5af9d94d9595a4 app_key: j4JyCYfefWHhgFgiZUqRm63AXHNZQyPGBfJtAzmN
- name: 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 }}'
host: default: '{{ ansible_hostname }}' description: - Host name to associate with the event. tags: description: - Comma separated list of tags to apply to the event. text: description: - The body of the event. required: true title: description: - The event title. required: true api_key: description: - Your DataDog API key. required: true app_key: description: - Your DataDog app key. required: true priority: choices: - normal - low default: normal description: - The priority of the event. alert_type: choices: - error - warning - info - success default: info description: - Type of alert. date_happened: default: now description: - POSIX timestamp of the event. - Default value is now. validate_certs: default: 'yes' description: - If C(no), SSL certificates will not be validated. This should only be used on personally controlled sites using self-signed certificates. type: bool aggregation_key: description: - An arbitrary string to use for aggregation.