Skip to content

steps/pagerduty ​

Low-level PagerDuty operations for factory-owned steps. Workflow code calls their #jigs/steps wrappers.

See Triage a PagerDuty incident.

Create and update ​

postIncidentNote() ​

ts
function postIncidentNote(__namedParameters, metadata): Promise<{
  noteId: string;
}>;

Add a plain-text note to the incident, ending in a line that names the run.

Parameters ​

ParameterType
__namedParameters{ content: string; incidentId: string; installationName: string; }
__namedParameters.contentstring
__namedParameters.incidentIdstring
__namedParameters.installationNamestring
metadataRunMetadata

Returns ​

Promise<{ noteId: string; }>

Remarks ​

The note is attributed to the from user set on the PagerDuty installation in the hub. PagerDuty shows markup as literal text, so write plain sentences.

Read ​

fetchIncidentSnapshot() ​

ts
function fetchIncidentSnapshot(__namedParameters): Promise<IncidentSnapshot>;

Read the incident once: its number, title, status, urgency, creation time, URL, service, assignees and escalation policy.

Parameters ​

ParameterType
__namedParameters{ incidentId: string; installationName: string; }
__namedParameters.incidentIdstring
__namedParameters.installationNamestring

Returns ​

Promise<IncidentSnapshot>