sensu / sensu.sensu_go / 0.9.0 / module / event_info Lists Sensu events Authors: Paul Arthur (@flowerysong), Aljaz Kosir (@aljazkosir), Manca Bizjak (@mancabizjak), Tadej Borovsak (@tadeboro) preview | supported by XLAB Steampunksensu.sensu_go.event_info (0.9.0) — module
Install with ansible-galaxy collection install sensu.sensu_go:==0.9.0
collections: - name: sensu.sensu_go version: 0.9.0
For more information, refer to the Sensu documentation at U(https://docs.sensu.io/sensu-go/latest/reference/events/)
- name: List Sensu events event_info: register: result
- name: List Sensu events for api.example.com event_info: entity: api.example.com register: result
- name: Filter events by check and entity event_info: entity: api.example.com check: check-cpu register: result
auth: description: - Authentication parameters. Can define each of them with ENV as well. suboptions: namespace: default: default description: - RBAC namespace to operate in. If this is not set the value of the SENSU_NAMESPACE environment variable will be checked. type: str password: default: P@ssw0rd! description: - The Sensu user's password. If this is not set the value of the SENSU_PASSWORD environment variable will be checked. type: str url: default: http://localhost:8080 description: - Location of the Sensu backend API. If this is not set the value of the SENSU_URL environment variable will be checked. type: str user: default: admin description: - The username to use for connecting to the Sensu API. If this is not set the value of the SENSU_USER environment variable will be checked. type: str type: dict check: description: - Limit results to a specific check. - C(entity) must also be specified. type: str entity: description: - Limit results to a specific entity. type: str
objects: description: list of Sensu events returned: always type: list