Cross-Provider Workflow

PagerDuty and Datadog Incident to Slack War Room

Version 1.0.0

Trigger a PagerDuty incident, declare it in Datadog, then open a Slack channel.

1 workflow 3 source APIs 3 providers
View Spec View on GitHub ArazzoWorkflowsCross-Provider

Providers Orchestrated

pagerduty datadog slack

Workflows

incident-create-page-channel
Trigger a PagerDuty incident, declare it in Datadog, and page Slack.
Triggers a PagerDuty incident, declares the matching incident in Datadog, and posts a Slack war-room message so responders converge.
3 steps inputs: incidentTitle, serviceId, slackChannel outputs: datadogIncidentId, incidentId, messageTs
1
trigger-pagerduty
$sourceDescriptions.pagerdutyApi.createIncident
Trigger a new incident in PagerDuty.
2
declare-datadog
$sourceDescriptions.datadogIncidents.createIncident
Declare the matching incident in Datadog.
3
page-slack
$sourceDescriptions.slackChat.postChatPostmessage
Post a Slack war-room message so responders converge.

Source API Descriptions

Arazzo Workflow Specification

dev-pagerduty-datadog-incident-page-channel.yml Raw ↑
arazzo: 1.0.1
info:
  title: PagerDuty and Datadog Incident to Slack War Room
  summary: Trigger a PagerDuty incident, declare it in Datadog, then open a Slack channel.
  description: >-
    A coordinated incident-response workflow that triggers a PagerDuty incident
    to page the on-call engineer, declares the same incident in Datadog for
    observability tracking, and posts to a Slack war-room channel so responders
    converge in one place. Demonstrates chaining an incident-management provider,
    an observability provider, and a chat provider in a single Arazzo workflow.
  version: 1.0.0
sourceDescriptions:
  - name: pagerdutyApi
    url: https://raw.githubusercontent.com/api-evangelist/pagerduty/refs/heads/main/openapi/pagerduty-openapi-original.yml
    type: openapi
  - name: datadogIncidents
    url: https://raw.githubusercontent.com/api-evangelist/datadog/refs/heads/main/openapi/datadog-incidents-openapi.yml
    type: openapi
  - name: slackChat
    url: https://raw.githubusercontent.com/api-evangelist/slack/refs/heads/main/openapi/slack-chat-openapi.yml
    type: openapi
workflows:
  - workflowId: incident-create-page-channel
    summary: Trigger a PagerDuty incident, declare it in Datadog, and page Slack.
    description: >-
      Triggers a PagerDuty incident, declares the matching incident in Datadog,
      and posts a Slack war-room message so responders converge.
    inputs:
      type: object
      properties:
        incidentTitle:
          type: string
        serviceId:
          type: string
        slackChannel:
          type: string
    steps:
      - stepId: trigger-pagerduty
        description: Trigger a new incident in PagerDuty.
        operationId: $sourceDescriptions.pagerdutyApi.createIncident
        requestBody:
          contentType: application/json
          payload:
            incident:
              type: incident
              title: $inputs.incidentTitle
              service:
                id: $inputs.serviceId
                type: service_reference
        successCriteria:
          - condition: $statusCode == 201
        outputs:
          incidentId: $response.body#/incident/id
          incidentUrl: $response.body#/incident/html_url
      - stepId: declare-datadog
        description: Declare the matching incident in Datadog.
        operationId: $sourceDescriptions.datadogIncidents.createIncident
        requestBody:
          contentType: application/json
          payload:
            data:
              type: incidents
              attributes:
                title: $inputs.incidentTitle
                customer_impacted: true
        successCriteria:
          - condition: $statusCode == 201
        outputs:
          datadogIncidentId: $response.body#/data/id
      - stepId: page-slack
        description: Post a Slack war-room message so responders converge.
        operationId: $sourceDescriptions.slackChat.postChatPostmessage
        requestBody:
          contentType: application/json
          payload:
            channel: $inputs.slackChannel
            text: $steps.trigger-pagerduty.outputs.incidentUrl
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          messageTs: $response.body#/ts
    outputs:
      incidentId: $steps.trigger-pagerduty.outputs.incidentId
      datadogIncidentId: $steps.declare-datadog.outputs.datadogIncidentId
      messageTs: $steps.page-slack.outputs.messageTs