Datadog with YAML

YAML parameters for Datadog

NameTypeDescription
title
Required
StringThe title of the posted event.
content
Required
StringThe content of the posted event.
integration_id
Required
IntegerThe ID of the integration.
name
Required
StringThe name of the action.
alert_type
Required
StringThe type of the alert. Can be one of SUCCESS, WARNING or ERROR.
trigger_time
Required
StringSpecifies when the action should be executed. Can be one of ON_EVERY_EXECUTION, ON_FAILURE or ON_BACK_TO_SUCCESS.
type
Required
StringThe type of the action. Should be set to DATADOG.
aggregation_keyStringAn arbitrary string to use for aggregation, max length of 100 characters. If you specify a key, all events using that key will be grouped together in the Event Stream.
hostStringThe Host name to associate with the event. Any tags associated with the host will also be applied to this event.
tagsString[]The list of tags to apply to the event.
regionStringThe Datadog region. Can be one of NA or EU. If not set, the default is NA.
run_only_on_first_failureBooleanDefines whether the action should be executed on each failure. Restricted to and required if the trigger_time is ON_FAILURE.
after_action_idIntegerThe numerical ID of the action, after which this action should be added.
trigger_conditionStringDefines when the build action should be run. Can be one of ALWAYS, ON_CHANGE, ON_CHANGE_AT_PATH, VAR_IS, VAR_IS_NOT or VAR_CONTAINS.
trigger_condition_pathsString[]Required when trigger_condition is set to ON_CHANGE_AT_PATH.
trigger_variable_keyStringRequired when trigger_condition is set to VAR_IS, VAR_IS_NOT or VAR_CONTAINS. Defines the name of the desired variable.
trigger_variable_valueStringRequired when trigger_condition is set to VAR_IS, VAR_IS_NOT or VAR_CONTAINS. Defines the value of the desired variable which will be compared with its current value.
disabledBooleanWhen set to true the action is disabled. By default it is set to false.
variablesVariable[]The list of variables defined for this action.

YAML example for Datadog

actions:
- action: "Datadog Action"
type: "DATADOG"
trigger_time: "ON_EVERY_EXECUTION"
host: "linux"
title: "Something big happened!"
content: "And let me tell you all about it here!"
tags:
- "version:1"
- "application:web"
region: "EU"
integration_id: 1
alert_type: "warning"
variables:
- key: "ftp_login"
value: "userLogin123"
description: "The name of user to FTP."
- key: "ftp_password"
value: "secure!14ivLMxPgv7TX6c9+ITX/g=="
encrypted: true
description: "The password for ftp."