Cross-Provider Workflow

Datadog Monitor Creation to Slack Notification

Version 1.0.0

Create a Datadog monitor and notify a Slack channel it is live.

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

Providers Orchestrated

datadog slack

Workflows

create-monitor-notify-slack
Create a Datadog monitor and notify a Slack channel.
Creates a metric alert monitor in Datadog and posts a Slack message confirming the new monitor is active with its identifier.
2 steps inputs: message, monitorName, query, slackChannel outputs: messageTs, monitorId
1
create-monitor
$sourceDescriptions.datadogMonitors.createMonitor
Create a metric alert monitor in Datadog.
2
notify-slack
$sourceDescriptions.slackChat.postChatPostmessage
Notify a Slack channel that the monitor is active.

Source API Descriptions

Arazzo Workflow Specification

dev-datadog-monitor-create-to-slack.yml Raw ↑
arazzo: 1.0.1
info:
  title: Datadog Monitor Creation to Slack Notification
  summary: Create a Datadog monitor and notify a Slack channel it is live.
  description: >-
    A DevOps provisioning workflow that creates a new Datadog monitor for a
    service and posts a Slack notification confirming the monitor is active so
    the team knows coverage is in place. Demonstrates chaining an observability
    provider and a chat provider in a single Arazzo workflow.
  version: 1.0.0
sourceDescriptions:
  - name: datadogMonitors
    url: https://raw.githubusercontent.com/api-evangelist/datadog/refs/heads/main/openapi/datadog-monitors-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: create-monitor-notify-slack
    summary: Create a Datadog monitor and notify a Slack channel.
    description: >-
      Creates a metric alert monitor in Datadog and posts a Slack message
      confirming the new monitor is active with its identifier.
    inputs:
      type: object
      properties:
        monitorName:
          type: string
        query:
          type: string
        message:
          type: string
        slackChannel:
          type: string
    steps:
      - stepId: create-monitor
        description: Create a metric alert monitor in Datadog.
        operationId: $sourceDescriptions.datadogMonitors.createMonitor
        requestBody:
          contentType: application/json
          payload:
            name: $inputs.monitorName
            type: metric alert
            query: $inputs.query
            message: $inputs.message
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          monitorId: $response.body#/id
      - stepId: notify-slack
        description: Notify a Slack channel that the monitor is active.
        operationId: $sourceDescriptions.slackChat.postChatPostmessage
        requestBody:
          contentType: application/json
          payload:
            channel: $inputs.slackChannel
            text: $inputs.monitorName
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          messageTs: $response.body#/ts
    outputs:
      monitorId: $steps.create-monitor.outputs.monitorId
      messageTs: $steps.notify-slack.outputs.messageTs