Datadog downtimes Cancel
Certified
Cancel a Datadog downtime
Datadog downtimes Cancel
Cancel a Datadog downtime
Cancels a downtime so that the monitors notify again. Needs the API key and an application key with the monitors_downtime scope. Datadog answers 404 for a downtime that is already cancelled or does not exist: that fails the task, unless ignoreNotFound is true.
type: io.kestra.plugin.datadog.downtimes.CancelExamples
Cancel the downtime created earlier in the flow
id: datadog_cancel_downtime
namespace: company.observability
tasks:
- id: unmute
type: io.kestra.plugin.datadog.downtimes.Cancel
apiKey: "{{ secret('DATADOG_API_KEY') }}"
appKey: "{{ secret('DATADOG_APP_KEY') }}"
downtimeId: "{{ outputs.mute.downtimeId }}"
ignoreNotFound: true
Installation
Our standard Docker images already include this plugin. If you use a -slim image or another setup, install it with the following command:
kestractl plugins get io.kestra.plugin:plugin-datadog --compatible-for $KESTRA_VERSION For kestractl, use your Kestra version with --compatible-for, or specify an exact plugin version.
Properties
apiKey *string
Datadog API key
The organization API key. Use a Kestra secret, e.g. {{ secret('DATADOG_API_KEY') }}.
downtimeId *string
Downtime id
The id of the downtime, as returned by downtimes.Create.
apiUrl string
API base URL
Replaces https://api.<site> when set, for a proxy, a private link or a test server. Leave it empty for the public API. logs.Send does not use it: it calls the log intake, which has its own address (intakeUrl).
appKey string
Datadog application key
An application key. Datadog asks for it on every call that reads data or manages monitors and downtimes, so the tasks that only send data (events.Create, metrics.Submit, logs.Send) work without it. Create it with the scopes the task needs. Use a Kestra secret, e.g. {{ secret('DATADOG_APP_KEY') }}.
assets
Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.
io.kestra.core.models.assets.AssetsDeclaration
IGNOREFAILWARNAsset failure behavior
Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.
Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.
The assets consumed as inputs.
io.kestra.core.models.assets.AssetIdentifier
1The assets produced as outputs.
io.kestra.plugin.ee.assets.Dataset
1150{}1150io.kestra.plugin.ee.assets.File
1150{}1150io.kestra.plugin.ee.assets.Table
1150{}1150io.kestra.plugin.ee.assets.VM
1150{}1150io.kestra.core.models.assets.External
1150{}1150io.kestra.core.models.assets.Custom
11501Custom asset type
{}1150ignoreNotFound booleanstring
falseIgnore a missing downtime
Succeeds when Datadog does not find the downtime, for example because it ended and was removed.
site string
Datadog site
The Datadog site of the organization, the domain you see in the Datadog URL: datadoghq.com (US1, the default), us3.datadoghq.com, us5.datadoghq.com, datadoghq.eu, ap1.datadoghq.com, ap2.datadoghq.com, uk1.datadoghq.com or ddog-gov.com. A key only works on the site of the organization that created it.
Outputs
cancelled boolean
Cancelled
true when Datadog cancelled the downtime, false when it was not found and ignoreNotFound is set.
downtimeId string
Downtime id