
PagerDuty PagerDutyExecution
CertifiedSend PagerDuty alert for a flow run
PagerDuty PagerDutyExecution
Send PagerDuty alert for a flow run
Posts execution details (UI link, IDs, namespace, flow name, start time, duration, and final status with failing task when present) to PagerDuty via the Events API v2. Use only in flows triggered by a Flow trigger; for errors handlers use PagerDutyAlert instead. Defaults executionId to the current run.
type: io.kestra.plugin.pagerduty.PagerDutyExecutionExamples
Send a PagerDuty notification on a failed flow execution.
id: failure_alert
namespace: company.team
tasks:
- id: send_alert
type: io.kestra.plugin.pagerduty.PagerDutyExecution
url: "{{ secret('PAGERDUTY_EVENT') }}" # format: https://events.pagerduty.com/v2/enqueue
payloadSummary: "PagerDuty Alert"
routingKey: "routingkey"
eventAction: "trigger"
executionId: "{{trigger.executionId}}"
triggers:
- id: failed_prod_workflows
type: io.kestra.plugin.core.trigger.Flow
conditions:
- type: io.kestra.plugin.core.condition.ExecutionStatus
in:
- FAILED
- WARNING
- type: io.kestra.plugin.core.condition.ExecutionNamespace
namespace: prod
prefix: true
Properties
url *Requiredstring
1PagerDuty Events API URL
Endpoint such as https://events.pagerduty.com/v2/enqueue; store secrets with secret().
customFields object
Custom fields to be added on notification
customMessage string
Custom message to be added on notification
deduplicationKey string
Deduplication key for correlating events
Allows PagerDuty to correlate trigger and resolve/acknowledge events.
eventAction string
PagerDuty event action
One of trigger, acknowledge, or resolve.
executionId string
{{ execution.id }}The execution id to use
Default is the current execution, change it to {{ trigger.executionId }} if you use this task with a Flow trigger to use the original execution.
options
HTTP client options
Optional overrides for timeouts, charset, and headers when calling PagerDuty. Defaults: read timeout 10s, read idle 5m, pool idle 0s, max content 10MB, charset UTF-8.
io.kestra.plugin.pagerduty.AbstractPagerDutyConnection-RequestOptions
Connect timeout before fail
PT0SIdle connection pool timeout
UTF-8Default request charset
java.nio.charset.Charset
HTTP headers
HTTP headers to include in the request
10485760Maximum response size in bytes
PT5MIdle read timeout before close
PT10SRead timeout before fail
payload string
PagerDuty message payload
Raw JSON string sent to PagerDuty; must include routing_key and event_action. Supports templating.
payloadSummary string
1024Summary used in alert title
Brief text summary (max 1024 chars) rendered into the payload.
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
routingKey string
PagerDuty routing key
Integration key for the target PagerDuty service.
templateRenderMap object
Template render variables
Key/value map rendered into the template before sending. Uses the current run scope.