arazzo: 1.0.1
info:
title: Datadog Bulk Mute Monitors
summary: Search monitors by tag, then mute a matched monitor to silence alerts.
description: >-
A bulk maintenance pattern for Datadog monitors. The workflow lists
monitors filtered by name and tags to find candidates for silencing during
a maintenance window, then mutes the first matched monitor for a given
scope and expiration. 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: bulk-mute-monitors
summary: List monitors by tag then mute a matched one.
description: >-
Searches monitors using name and tag filters and then mutes the first
matched monitor for the supplied scope and expiration.
inputs:
type: object
required:
- tags
properties:
name:
type: string
description: Filter monitors by name substring match.
tags:
type: string
description: Comma-separated list of tags to filter monitors by (e.g. env:production).
scope:
type: string
description: The scope expression specifying which groups to mute.
end:
type: integer
description: Unix timestamp in seconds when the mute expires; omit for indefinite.
steps:
- stepId: searchMonitors
description: >-
List monitors filtered by name and tags to find the candidate monitor to
silence during the maintenance window.
operationId: $sourceDescriptions.monitorsApi.listMonitors
parameters:
- name: name
in: query
value: $inputs.name
- name: tags
in: query
value: $inputs.tags
- name: page_size
in: query
value: 100
successCriteria:
- condition: $statusCode == 200
outputs:
matchedMonitorId: $response.body#/0/id
matchedMonitorName: $response.body#/0/name
- stepId: muteMatched
description: >-
Mute the first matched monitor for the supplied scope and expiration so
its alert notifications are suppressed.
operationId: $sourceDescriptions.monitorMutingApi.muteMonitor
parameters:
- name: monitor_id
in: path
value: $steps.searchMonitors.outputs.matchedMonitorId
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.muteMatched.outputs.mutedMonitorId
silenced: $steps.muteMatched.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.