community / community.general / 1.3.14 / module / datadog_event Posts events to Datadog service Authors: Artūras `arturaz` Šlajus (@arturaz), Naoya Nakazawa (@n0ts)community.general.datadog_event (1.3.14) — module
Install with ansible-galaxy collection install community.general:==1.3.14
collections: - name: community.general version: 1.3.14
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 community.general.datadog_event: title: Testing from ansible text: Test priority: low api_key: 9775a026f1ca7d1c6c5af9d94d9595a4 app_key: j4JyCYfefWHhgFgiZUqRm63AXHNZQyPGBfJtAzmN
- name: Post an event with several tags community.general.datadog_event: title: Testing from ansible text: Test api_key: 9775a026f1ca7d1c6c5af9d94d9595a4 app_key: j4JyCYfefWHhgFgiZUqRm63AXHNZQyPGBfJtAzmN tags: 'aa,bb,#host:{{ inventory_hostname }}'
host: description: - Host name to associate with the event. - If not specified, it defaults to the remote system's hostname. type: str tags: description: - Comma separated list of tags to apply to the event. elements: str type: list text: description: - The body of the event. required: true type: str title: description: - The event title. required: true type: str api_key: description: - Your DataDog API key. required: true type: str app_key: description: - Your DataDog app key. required: true type: str priority: choices: - normal - low default: normal description: - The priority of the event. type: str alert_type: choices: - error - warning - info - success default: info description: - Type of alert. type: str date_happened: description: - POSIX timestamp of the event. - Default value is now. type: int 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. type: str