Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Pager Duty

Schemespagerduty://
Cargo featureservice-pagerduty
Servicehttps://pagerduty.com/
Body formatstext (first is the default)
Attachmentsno
Title lengthno title (merged into the body)
Body length32,768 characters
Body linesunlimited
Request throttlenone
Vendor URLs acceptedno

URL formats

{schema}://{integrationkey}@{apikey}
{schema}://{integrationkey}@{apikey}/{source}
{schema}://{integrationkey}@{apikey}/{source}/{component}

{schema} is one of pagerduty://.

URL tokens

TokenMeaningTypeRequiredDefaultNotes
{apikey}API Keystringyessecret
{component}ComponentstringnoNotification
{integrationkey}Integration Keystringyessecret
{source}Sourcestringnodefaults to the app id

Query parameters

ParameterMeaningTypeDefaultNotes
classClassstring
clickClickstring
groupGroupstring
imageInclude Imageboolyes
regionRegion Namechoiceusone of us, eu
severitySeveritychoiceone of info, warning, critical, error

Prefixed parameters:

  • +name=value: Custom Details

The common URL parameters (format, overflow, verify, redirect, cto, rto, retry, wait, store, tag, tz, user, password, port, optional, emojis) apply as well.

Examples

Accepted URLs (tokens are fake):

pagerduty://myroutekey@myapikey
pagerduty://myroutekey@myapikey/mysource/mycomponent
pagerduty://myroutekey@myapikey?image=no
pagerduty://myroutekey@myapikey?region=EU
pagerduty://myroutekey@myapikey?severity=critical
pagerduty://myroutekey@myapikey?+key=value&+key2=value%2520two
pagerduty://?integrationkey=r&apikey=a&source=s&component=c
pagerduty://routekey@apikey/ms/mc?group=mygroup&class=myclass&click=http%3A%2F%2Fexample.com

Rejected URLs:

pagerduty://
pagerduty://%20@%20/
pagerduty://%20/
pagerduty://%20@abcd/

Send one from the command line:

mercurio -t 'Backup' -b 'Finished in 42s' 'pagerduty://myroutekey@myapikey'

Notes

PagerDuty (pagerduty://): events through the PagerDuty Events API.