Get information from Status Cake (Uptime).
Version added: 0.3.0
- Get information from Status Cake (Uptime).
- https://www.statuscake.com/api/v1/#tag/uptime
The below requirements are needed on the host that executes this module.
- requests
- name: get all uptime tests
community.missing_collection.statuscake_uptime_info:
api_key: 'sxxxxxxxxxxxx6y'
get_all_tests: true
register: __tests
- name: get info about one uptime test
community.missing_collection.statuscake_uptime_info:
api_key: 'sxxxxxxxxxxxx6y'
get_one: true
id: '{{ __tests.data[0].id }}'
- name: get history about one uptime test
community.missing_collection.statuscake_uptime_info:
api_key: 'sxxxxxxxxxxxx6y'
get_histroy: true
id: '{{ __tests.data[0].id }}'
- name: get all periods about one uptime test
community.missing_collection.statuscake_uptime_info:
api_key: 'sxxxxxxxxxxxx6y'
get_all_periods: true
id: '{{ __tests.data[0].id }}'
- name: get all alerts about one uptime test
community.missing_collection.statuscake_uptime_info:
api_key: 'sxxxxxxxxxxxx6y'
get_all_alerts: true
id: '{{ __tests.data[0].id }}'
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
data
dict/list
|
when success. |
result of the api.
Sample:
[{'check_rate': 300, 'contact_groups': [], 'host': '', 'id': '6086154', 'name': 'google_http_check-79', 'paused': False, 'status': 'up', 'tags': [], 'test_type': 'HTTP', 'uptime': 100, 'website_url': 'https://www.google.com'}]
|
- Davinder Pal (@116davinder) <dpsangwal@gmail.com>