mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 15:11:23 -07:00
Native YAML - monitoring/pagerduty_alert (#18784)
This commit is contained in:
parent
df9059936b
commit
327cff7274
1 changed files with 22 additions and 22 deletions
|
@ -78,37 +78,37 @@ options:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
# Trigger an incident with just the basic options
|
# Trigger an incident with just the basic options
|
||||||
- pagerduty_alert:
|
- pagerduty_alert:
|
||||||
name: companyabc
|
name: companyabc
|
||||||
service_key=xxx
|
service_key: xxx
|
||||||
api_key:yourapikey
|
api_key: yourapikey
|
||||||
state=triggered
|
state: triggered
|
||||||
desc="problem that led to this trigger"
|
desc: problem that led to this trigger
|
||||||
|
|
||||||
# Trigger an incident with more options
|
# Trigger an incident with more options
|
||||||
- pagerduty_alert:
|
- pagerduty_alert:
|
||||||
service_key=xxx
|
service_key: xxx
|
||||||
api_key=yourapikey
|
api_key: yourapikey
|
||||||
state=triggered
|
state: triggered
|
||||||
desc="problem that led to this trigger"
|
desc: problem that led to this trigger
|
||||||
incident_key=somekey
|
incident_key: somekey
|
||||||
client="Sample Monitoring Service"
|
client: Sample Monitoring Service
|
||||||
client_url=http://service.example.com
|
client_url: http://service.example.com
|
||||||
|
|
||||||
# Acknowledge an incident based on incident_key
|
# Acknowledge an incident based on incident_key
|
||||||
- pagerduty_alert:
|
- pagerduty_alert:
|
||||||
service_key=xxx
|
service_key: xxx
|
||||||
api_key=yourapikey
|
api_key: yourapikey
|
||||||
state=acknowledged
|
state: acknowledged
|
||||||
incident_key=somekey
|
incident_key: somekey
|
||||||
desc="some text for incident's log"
|
desc: "some text for incident's log"
|
||||||
|
|
||||||
# Resolve an incident based on incident_key
|
# Resolve an incident based on incident_key
|
||||||
- pagerduty_alert:
|
- pagerduty_alert:
|
||||||
service_key=xxx
|
service_key: xxx
|
||||||
api_key=yourapikey
|
api_key: yourapikey
|
||||||
state=resolved
|
state: resolved
|
||||||
incident_key=somekey
|
incident_key: somekey
|
||||||
desc="some text for incident's log"
|
desc: "some text for incident's log"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue