arazzo: 1.0.1
info:
title: Datadog Mute a Monitor
summary: Fetch a Datadog monitor, then mute it to suppress alert notifications.
description: >-
A common maintenance pattern for Datadog monitors. The workflow first reads
the target monitor to confirm it exists and capture its current name, then
mutes it for a given scope and optional expiration so that alert
notifications are suppressed while the monitor continues to evaluate. Every
step spells out its request inline so the flow can be read and executed
without opening the underlying OpenAPI description.
version: 1.0.0
x-realizes-capability-ids:
- BC-4220.20
x-capability-derivation:
method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
min_confidence: 0.7
sources:
- capability_id: BC-4220.20
capability_name: Observability Management
spec: datadog-monitors-api-openapi.yml
confidence: 0.85
model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: monitorMutingApi
url: ../openapi/datadog-monitor-muting-api-openapi.yml
type: openapi
- name: monitorsApi
url: ../openapi/datadog-monitors-api-openapi.yml
type: openapi
workflows:
- workflowId: mute-monitor
summary: Read a monitor and then mute it.
description: >-
Fetches a monitor by ID to confirm it exists, then mutes it for the supplied
scope and optional end timestamp.
inputs:
type: object
required:
- monitorId
properties:
monitorId:
type: integer
description: The unique numeric ID of the monitor to mute.
scope:
type: string
description: The scope expression specifying which groups to mute (e.g. host:web-01).
end:
type: integer
description: Unix timestamp in seconds when the mute expires; omit for indefinite mute.
steps:
- stepId: getMonitor
description: >-
Read the monitor by ID to confirm it exists and capture its current name
before muting.
operationId: $sourceDescriptions.monitorsApi.getMonitor
parameters:
- name: monitor_id
in: path
value: $inputs.monitorId
successCriteria:
- condition: $statusCode == 200
outputs:
monitorId: $response.body#/id
monitorName: $response.body#/name
- stepId: muteMonitor
description: >-
Mute the monitor for the supplied scope and optional expiration so alert
notifications are suppressed.
operationId: $sourceDescriptions.monitorMutingApi.muteMonitor
parameters:
- name: monitor_id
in: path
value: $steps.getMonitor.outputs.monitorId
requestBody:
contentType: application/json
payload:
scope: $inputs.scope
end: $inputs.end
successCriteria:
- condition: $statusCode == 200
outputs:
mutedMonitorId: $response.body#/id
silenced: $response.body#/options/silenced
outputs:
mutedMonitorId: $steps.muteMonitor.outputs.mutedMonitorId
silenced: $steps.muteMonitor.outputs.silenced
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.