PagerDutyAlertOnIncident
Send incident details to pagerduty (useful to include in playbooks).
javascript · PagerDuty
Source
if (incidents[0].severity == 4) { return executeCommand('PagerDuty-submit-event', {description: incidents[0].details, source: args.author, summary: incidents[0].name, action: 'trigger', severity: 'critical'}); } return 'Incident severity not high enough to wake up user' ;
README
Sends incident details to pagerduty.
Script Data
| Name | Description |
|---|---|
| Script Type | javascript |
| Tags | pagerduty, communication |
Dependencies
This script uses the following commands and scripts.
- PagerDuty-submit-event
Inputs
| Argument Name | Description |
|---|---|
| author | The email address of the user to be alerted about the incident. |
Outputs
There are no outputs for this script.