Management of the checkly Checks.
Version added: 0.3.0
- Management of the checkly Checks.
- https://www.checklyhq.com/docs/api#tag/Checks
The below requirements are needed on the host that executes this module.
- requests
- name: create a check
community.missing_collection.checkly_checks:
api_key: 'c18803aafff44ec091558db24aa87098'
command: 'create'
name: 'Ansible API Check'
check_type: "API"
request:
assertions:
- comparison: "EQUALS"
property: ""
source: "STATUS_CODE"
target: "200"
basicAuth:
password: ""
username: ""
body: ""
bodyType: "NONE"
followRedirects: true
headers: []
method: "GET"
queryParameters: []
url: "https://www.axway.com/"
alert_channel_subscriptions:
- activated: true
alertChannelId: 39739
alert_settings:
escalationType: "RUN_BASED"
reminders:
amount: 0
interval: 5
runBasedEscalation:
failedRunThreshold: 1
sslCertificates:
alertThreshold: 30
enabled: true
timeBasedEscalation:
minutesFailingThreshold: 5
use_global_alert_settings: false
tags:
- 'api'
- 'axway'
register: __
# doesn't work yet - Internal Server Error
- name: update a check
community.missing_collection.checkly_checks:
api_key: 'c18803aafff44ec091558db24aa87098'
command: 'update'
name: 'New Ansible API Check'
id: '{{ __.result.id }}'
request:
method: "GET"
url: "https://example.com/"
- name: delete a check
community.missing_collection.checkly_checks:
api_key: 'c18803aafff44ec091558db24aa87098'
command: 'delete'
id: '{{ __.result.id }}'
Common return values are documented here, the following are the fields unique to this module:
- Davinder Pal (@116davinder) <[email protected]>