ansible / ansible.builtin / v2.9.18 / module / datadog_event Posts events to Datadog service | "added in version" 1.3 of ansible.builtin" Authors: Artūras `arturaz` Šlajus (@arturaz), Naoya Nakazawa (@n0ts) preview | supported by communityansible.builtin.datadog_event (v2.9.18) — module
pip
Install with pip install ansible==2.9.18
Allows to post events to Datadog (www.datadoghq.com) service.
Uses http://docs.datadoghq.com/api/#events API.
# 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 }}'
host: default: '{{ ansible_hostname }}' description: - Host name to associate with the event. version_added: '2.4' version_added_collection: ansible.builtin 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 version_added: '2.2' version_added_collection: ansible.builtin 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 version_added: 1.5.1 version_added_collection: ansible.builtin aggregation_key: description: - An arbitrary string to use for aggregation.