PagerDuty action reference
This page is generated from the plugin registry. Do not edit it by hand.
Trigger, acknowledge and resolve PagerDuty incidents
For guidance and examples see the PagerDuty guide.
Set actionType in a node’s config to the action type shown under each heading. See the workflow definition page for the node format.
| Action | Action type |
|---|---|
| Trigger Incident | pagerduty/trigger-incident |
| Acknowledge Incident | pagerduty/acknowledge-incident |
| Send Change Event | pagerduty/send-change-event |
| Resolve Incident | pagerduty/resolve-incident |
| Create Incident (override policy, urgency, priority) | pagerduty/create-incident |
Trigger Incident
Action type: pagerduty/trigger-incident. Connection: required (pagerduty).
Open or update a PagerDuty alert on a service, with a dedup key so repeat runs do not page again
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
pagerdutyServiceId | string | Yes | PagerDuty service. Read from the selected connection’s account. The node stores the service id, so renaming the service in PagerDuty changes nothing here. | ||
summary | string | Yes | Summary. Becomes the alert title. PagerDuty’s limit is 1024 characters; anything longer is shortened rather than rejected, because an alert with a cut title still wakes the right person. The Preview below says when a value is over, and the node’s fieldsTrimmed output says so after a run, since a template can only be measured once it has rendered. | ||
severity | string | No | error | critical, error, warning, info, or a template | Severity. How bad the condition is. Accepts a {{template}} from an earlier step; anything that does not resolve to one of these four is sent as error. On a service using dynamic urgency, critical and error page at high urgency while warning and info do not; on other services the urgency rule decides. Priority (P1, P2) cannot be set on an event at all - PagerDuty assigns it from the service’s Event Orchestration rules, or use Create Incident to set one directly. |
source | string | No | Source. PagerDuty requires a source. Defaults to this node’s name. Shortened past 1024 characters, and the node says when it did. | ||
dedupKey | string | No | Dedup key. PagerDuty groups events that share this key. Blank means one open alert per node, so a check that keeps failing updates that alert instead of paging again. Put a vault or chain id in here to page per subject. PagerDuty’s limit is 255 characters and a longer one is shortened - which matters here more than elsewhere, because two keys that differ only after character 255 become one alert. | ||
component | string | No | Component. The part of the source the event is about. Shortened past 1024 characters, and the node says when it did. | ||
group | string | No | Group. A logical grouping of components. Shortened past 1024 characters, and the node says when it did. | ||
class | string | No | Class. The type of event, used by PagerDuty event rules. Shortened past 1024 characters, and the node says when it did. | ||
customDetails | string | No | Custom details. JSON object shown on the incident. The workflow, run and node ids are added automatically. PagerDuty rejects an event over 512 KB outright, so if the whole event would exceed it these are dropped and replaced by a note rather than losing the page; the node’s detailsTruncated output says when that happened. | ||
links | string | No | Links. One per line, as text | url, or just a url. The url has to be https. They become clickable links on the incident - an explorer transaction or a dashboard is usually the first thing a responder wants. A line that is not an https url is skipped rather than failing the page; the Preview below shows what will be sent, and the node’s linksDropped output counts what was not. | ||
backupIntegrationId | string | No | Backup connection. When the page cannot be delivered, the same alert and the reason are posted here instead. Only existing Discord, Slack and Telegram connections are offered, so a workflow cannot point this at a new host. | ||
backupDestination | string | No | Backup channel or chat id. Slack and Telegram need one; a Discord connection already carries its webhook. | ||
treatMaintenanceAsUndelivered | string | No | false | false, true | Treat a maintenance window as undelivered. A service in a maintenance window takes the event and raises no incident. Off, the node reports that. On, it is treated like any other undelivered page, so the backup fires. |
consecutiveRuns | number | No | min 1, max 20 | Consecutive runs before paging. Pages on the Nth run in a row that reaches this node; one run that does not reach it resets the count. On a schedule of every X minutes, N delays the first page by about (N-1) times X - at 3 on an hourly cron that is two hours. Held runs are recorded, not silent. Default 1. | |
retryAttempts | number | No | min 0, max 5 | Retry attempts. Extra attempts after the first, for connection failures and the statuses worth another try (408, 425, 429, 5xx). A 400 from PagerDuty is a payload problem and is never retried. Every event carries a dedup key, so an event that arrives twice updates one alert instead of paging twice. Default 2, max 5. | |
retryDelay | number | No | min 0, max 15 | Retry delay (seconds). Linear backoff: attempt N waits this many seconds times N. A rate-limited request waits for the delay PagerDuty reports instead. Default 1, max 15. | |
failOnError | boolean | No | true | Fail the workflow if the page could not be delivered. On by default, and it covers every way a page fails to land: a rejection, a timeout, an outage, a deleted service. Turn it off to keep the run going and branch on the node’s status output instead - it is the one that separates a real page from an event a maintenance window swallowed. |
Outputs
| Output | Description |
|---|---|
delivered | Whether PagerDuty accepted the event |
dedupKey | Key that identifies the alert |
status | triggered, suppressed when the service took the event and raised no incident, held by the consecutive-runs guard, or failed when the event could not be delivered |
consecutiveRuns | Runs in a row that reached this node |
requiredRuns | Runs in a row configured before paging |
error | Why the event was not delivered, when it was not |
backupAttempted | Whether a backup notification was sent |
backupDelivered | Whether the backup notification landed |
backupChannel | discord, slack or telegram |
backupError | Why the backup notification failed, when it did |
serviceStatus | PagerDuty’s service status when the event was sent |
suppressedByService | True when the service was in maintenance, so PagerDuty took the event and raised no incident |
detailsTruncated | True when custom details were dropped for size |
linksDropped | How many lines of the links field were not an https url, so were not sent |
fieldsTrimmed | Which fields were over PagerDuty’s limit and were shortened, with their lengths |
summaryFellBack | True when the summary template rendered to nothing and the alert went out under a stand-in title |
message | PagerDuty’s own response message |
External documentation: https://docs.keeperhub.com/plugins/pagerduty
Acknowledge Incident
Action type: pagerduty/acknowledge-incident. Connection: required (pagerduty).
Acknowledge the alert carrying this dedup key. This stops PagerDuty escalating it, so use it only once a human has been told - an automated acknowledge means nobody is paged further
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
pagerdutyServiceId | string | Yes | PagerDuty service. Read from the selected connection’s account. The node stores the service id, so renaming the service in PagerDuty changes nothing here. | ||
dedupKeyFromNodeId | string | No | Trigger Incident node this closes. Its dedup key is reused here, so the two always match. Pick the node rather than referencing its output: on the healthy branch the trigger never ran, so a template reference cannot resolve. | ||
dedupKey | string | No | Dedup key of the alert. Only needed when the trigger sets its own dedup key: put the same value here. PagerDuty requires a key for acknowledge and resolve, and drops an event whose key matches no open alert - with a 202, so it looks exactly like success. The service must be the same one the trigger used, too. | ||
verifyWithPagerDuty | string | No | true | true, false | Confirm with PagerDuty afterwards. PagerDuty answers 202 even when nothing matched. On, the node reads the incident back and reports its real status. Needs incidents.read: a read-only API key already has it, but a scoped OAuth app only has what it was granted, and the two scopes the form asks for do not include it. Without it the node still acknowledges or resolves and reports the status as unknown. |
sendDelaySeconds | number | No | min 0, max 5 | Wait before sending (seconds). Holds the acknowledge back before sending it. For the case where two runs of this workflow overlap and the healthy one finishes first: the acknowledge can then reach PagerDuty before the trigger it is acting on, and PagerDuty drops an update matching no open alert - with a 202, so it looks like success - leaving PagerDuty escalating an incident this workflow believes it has taken responsibility for. A second or two loses that race on purpose. It costs exactly that much time on every run, so leave it at 0 unless runs of this workflow can overlap. Default 0, max 5. | |
retryAttempts | number | No | min 0, max 5 | Retry attempts. Extra attempts after the first, for connection failures and the statuses worth another try (408, 425, 429, 5xx). A 400 from PagerDuty is a payload problem and is never retried. Every event carries a dedup key, so an event that arrives twice updates one alert instead of paging twice. Default 2, max 5. | |
retryDelay | number | No | min 0, max 15 | Retry delay (seconds). Linear backoff: attempt N waits this many seconds times N. A rate-limited request waits for the delay PagerDuty reports instead. Default 1, max 15. | |
failOnError | boolean | No | true | Fail the workflow if the page could not be delivered. On by default, and it covers every way a page fails to land: a rejection, a timeout, an outage, a deleted service. Turn it off to keep the run going and branch on the node’s status output instead - it is the one that separates a real page from an event a maintenance window swallowed. |
Outputs
| Output | Description |
|---|---|
delivered | Whether PagerDuty accepted the event |
dedupKey | Key of the alert that was acknowledged |
incidentStatus | Incident status when the check is on: triggered, acknowledged, resolved, or unknown |
incidentPriority | The incident’s priority when the check is on and it has one |
incidentUrl | Link to the incident, when the check found it |
error | Why the event was not delivered, when it was not and the node was told not to fail the run |
verificationError | Why the check could not read the incident back, when it could not |
delayedSeconds | Seconds this node waited before sending, when it was asked to wait |
action | acknowledge or resolve |
message | PagerDuty’s own response message |
External documentation: https://docs.keeperhub.com/plugins/pagerduty
Send Change Event
Action type: pagerduty/send-change-event. Connection: required (pagerduty).
Record a deploy or configuration change on a service timeline. Never pages anyone
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
pagerdutyServiceId | string | Yes | PagerDuty service. Read from the selected connection’s account. The node stores the service id, so renaming the service in PagerDuty changes nothing here. | ||
summary | string | Yes | Summary. What changed. Shown on the service’s activity timeline. | ||
source | string | No | Source. | ||
customDetails | string | No | Custom details. | ||
retryAttempts | number | No | min 0, max 5 | Retry attempts. Extra attempts after the first, for connection failures and the statuses worth another try (408, 425, 429, 5xx). A 400 from PagerDuty is a payload problem and is never retried. A change event carries no dedup key, so one that is delivered but whose response is lost leaves a second entry on the service timeline - a duplicate deploy marker, which is worth the retry because a missing one is not. Default 2, max 5. | |
retryDelay | number | No | min 0, max 15 | Retry delay (seconds). Linear backoff: attempt N waits this many seconds times N. A rate-limited request waits for the delay PagerDuty reports instead. Default 1, max 15. | |
failOnError | boolean | No | true | Fail the workflow if the page could not be delivered. On by default, and it covers every way a page fails to land: a rejection, a timeout, an outage, a deleted service. Turn it off to keep the run going and branch on the node’s status output instead - it is the one that separates a real page from an event a maintenance window swallowed. |
Outputs
| Output | Description |
|---|---|
delivered | Whether PagerDuty accepted the change event |
fieldsTrimmed | Which fields were over PagerDuty’s limit and were shortened, with their lengths |
error | Why the change event was not delivered, when it was not and the node was told not to fail the run |
message | PagerDuty’s own response message |
External documentation: https://docs.keeperhub.com/plugins/pagerduty
Resolve Incident
Action type: pagerduty/resolve-incident. Connection: required (pagerduty).
Close the alert carrying this dedup key. PagerDuty drops it silently when no open alert matches, so this is a no-op rather than an error
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
pagerdutyServiceId | string | Yes | PagerDuty service. Read from the selected connection’s account. The node stores the service id, so renaming the service in PagerDuty changes nothing here. | ||
dedupKeyFromNodeId | string | No | Trigger Incident node this closes. Its dedup key is reused here, so the two always match. Pick the node rather than referencing its output: on the healthy branch the trigger never ran, so a template reference cannot resolve. | ||
dedupKey | string | No | Dedup key of the alert. Only needed when the trigger sets its own dedup key: put the same value here. PagerDuty requires a key for acknowledge and resolve, and drops an event whose key matches no open alert - with a 202, so it looks exactly like success. The service must be the same one the trigger used, too. | ||
verifyWithPagerDuty | string | No | true | true, false | Confirm with PagerDuty afterwards. PagerDuty answers 202 even when nothing matched. On, the node reads the incident back and reports its real status. Needs incidents.read: a read-only API key already has it, but a scoped OAuth app only has what it was granted, and the two scopes the form asks for do not include it. Without it the node still acknowledges or resolves and reports the status as unknown. |
sendDelaySeconds | number | No | min 0, max 5 | Wait before sending (seconds). Holds the resolve back before sending it. For the case where two runs of this workflow overlap and the healthy one finishes first: the resolve can then reach PagerDuty before the trigger it is acting on, and PagerDuty drops an update matching no open alert - with a 202, so it looks like success - leaving an incident nobody closes. A second or two loses that race on purpose. It costs exactly that much time on every run, so leave it at 0 unless runs of this workflow can overlap. Default 0, max 5. | |
retryAttempts | number | No | min 0, max 5 | Retry attempts. Extra attempts after the first, for connection failures and the statuses worth another try (408, 425, 429, 5xx). A 400 from PagerDuty is a payload problem and is never retried. Every event carries a dedup key, so an event that arrives twice updates one alert instead of paging twice. Default 2, max 5. | |
retryDelay | number | No | min 0, max 15 | Retry delay (seconds). Linear backoff: attempt N waits this many seconds times N. A rate-limited request waits for the delay PagerDuty reports instead. Default 1, max 15. | |
failOnError | boolean | No | true | Fail the workflow if the page could not be delivered. On by default, and it covers every way a page fails to land: a rejection, a timeout, an outage, a deleted service. Turn it off to keep the run going and branch on the node’s status output instead - it is the one that separates a real page from an event a maintenance window swallowed. |
Outputs
| Output | Description |
|---|---|
delivered | Whether PagerDuty accepted the event |
dedupKey | Key of the alert that was resolved |
incidentStatus | Incident status when the check is on: triggered, acknowledged, resolved, or unknown |
incidentPriority | The incident’s priority when the check is on and it has one |
incidentUrl | Link to the incident, when the check found it |
error | Why the event was not delivered, when it was not and the node was told not to fail the run |
verificationError | Why the check could not read the incident back, when it could not |
delayedSeconds | Seconds this node waited before sending, when it was asked to wait |
action | acknowledge or resolve |
message | PagerDuty’s own response message |
External documentation: https://docs.keeperhub.com/plugins/pagerduty
Create Incident (override policy, urgency, priority)
Action type: pagerduty/create-incident. Connection: required (pagerduty).
Create an incident directly, with an escalation policy override and urgency. Needs a write-capable token
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
pagerdutyServiceId | string | Yes | PagerDuty service. Read from the selected connection’s account. The node stores the service id, so renaming the service in PagerDuty changes nothing here. | ||
title | string | Yes | Title. Shortened past 1024 characters, the same ceiling an alert summary carries, and the node’s fieldsTrimmed output says when it was. | ||
details | string | No | Details. | ||
pagerdutyEscalationPolicyId | string | No | Escalation policy. Optional. Leave blank to page the service’s own policy, which is what every Events API action does. | ||
fallbackToServicePolicy | boolean | No | true | Fall back to the service policy if that one is gone. On by default: a policy that has been deleted should not stop the incident, because paging the default rota beats paging nobody. The node’s output says when it fell back. | |
urgency | string | No | service-default | service-default, high, low, or a template | Urgency. High urgency notifies on-call the way the escalation policy says; low urgency does not page. Left at the service default, PagerDuty decides from the service’s urgency rule. Accepts a {{template}}; anything that does not resolve to high or low uses the service default. |
pagerdutyPriorityId | string | No | Priority. The account’s incident priorities (P1, P2, and so on), read from PagerDuty. A paid-plan feature: an account without it shows nothing here. A scoped OAuth connection also needs priorities.read to list them. Only this REST action can set a priority - an Events API alert takes its priority from the account’s Event Orchestration rules instead. | ||
incidentKey | string | No | Incident key. PagerDuty rejects a repeat of an open incident’s key rather than merging it, unlike the Events API dedup key. Leave blank unless you are deliberately guarding against a double-create. Shortened past 255 characters. | ||
fromEmail | string | No | From email. The PagerDuty user the incident is attributed to. Required by PagerDuty for this call. | ||
failOnError | boolean | No | true | Fail workflow if PagerDuty rejects the incident. |
Outputs
| Output | Description |
|---|---|
incidentId | PagerDuty incident id |
incidentNumber | Incident number |
incidentUrl | Link to the incident |
status | Incident status as PagerDuty created it |
escalationPolicyFellBack | True when the chosen policy was gone and the service’s own was used |
delivered | Whether PagerDuty created the incident |
fieldsTrimmed | Which fields were over PagerDuty’s limit and were shortened, with their lengths |
priorityId | The priority the incident was created with, when one was chosen |
error | Why the incident was not created, when it was not and the node was told not to fail the run |
External documentation: https://docs.keeperhub.com/plugins/pagerduty