PagerDutyAlert PagerDutyAlert
PagerDutyAlert Certified

yaml
type: "io.kestra.plugin.pagerduty.PagerDutyAlert"
yaml
id: unreliable_flow
namespace: company.team

tasks:
  - id: fail
    type: io.kestra.plugin.scripts.shell.Commands
    runner: PROCESS
    commands:
      - exit 1

errors:
  - id: alert_on_failure
    type: io.kestra.plugin.pagerduty.PagerDutyAlert
    url: "{{ secret('PAGERDUTY_EVENT') }}" # https://events.pagerduty.com/v2/enqueue
    payload: |
      {
        "dedup_key": "samplekey",
        "routing_key": "samplekey",
        "event_action": "trigger",
        "payload" : {
            "summary": "PagerDuty alert",
        }
      }

yaml
id: discord_incoming_webhook
namespace: company.team

tasks:
  - id: send_pagerduty_alert
    type: io.kestra.plugin.pagerduty.PagerDutyAlert
    url: "{{ secret('PAGERDUTY_EVENT') }}"
    payload: |
      {
        "dedup_key": "samplekey",
        "routing_key": "samplekey",
        "event_action": "acknowledge"
      }
Properties
Min length1
Definitions
connectTimeoutstring
Formatduration
connectionPoolIdleTimeoutstring
DefaultPT0S
Formatduration
defaultCharsetstring
DefaultUTF-8
headersobject
SubTypestring
maxContentLengthintegerstring
Default10485760
readIdleTimeoutstring
DefaultPT5M
Formatduration
readTimeoutstring
DefaultPT10S
Formatduration