Skip to main content

Alarm Events

For the fields that every event has, refer to Event Reference. For how alarms get into Massdriver, refer to Monitoring and Alarms.

Massdriver records alarm events on its own, so they have no data.actor. Their data.attributes are the attributes of the instance of the alarm: md-project, md-environment, md-component, md-instance, md-repo, md-bundle, the custom attributes of the instance, and md-id, the identifier of the instance.

Alarm​

An alarm is a cloud alarm that a bundle registered on an instance.

Event typeOccurs when
alarm.createdAn alarm was registered on an instance.
alarm.updatedThe settings of an alarm changed.
alarm.deletedAn alarm was removed from an instance.

data.entity​

FieldTypeValue
idUUIDThe ID of the alarm.
display_namestringThe name of the alarm, such as High CPU.
cloud_resource_idstringThe ID of the alarm in the cloud, such as an ARN.
comparison_operatorstring or nullHow the cloud compares the metric with threshold, such as GreaterThanThreshold.
thresholdnumber or nullThe value that sets off the alarm.
periodinteger or nullThe length of the evaluation period, in seconds.
metricobject or nullThe metric of the alarm: namespace, name, statistic, region, and dimensions, a list of name and value pairs.
instance_idUUIDThe ID of the instance.
created_at, updated_attime

Example conditions​

To sendEventsCondition
CloudWatch alarms on RDS metricsalarm.created.data.entity.metric.namespace == "AWS/RDS"
Alarms in one regionalarm.*.data.entity.metric.region == "us-east-1"

Alarm state​

An alarm state is a change of the state of an alarm that the cloud sent to Massdriver.

Event typeOccurs when
alarm_state.createdAn alarm changed state, for example from OK to ALARM.

data.entity​

FieldTypeValue
idUUIDThe ID of the alarm state.
statusstringALARM or OK.
alarm_namestringThe display_name of the alarm.
messagestringThe reason for the change that the cloud sent.
occurred_attimeWhen the change occurred in the cloud.
provider_notification_idstringThe ID of the notification in the cloud.
notificationmapThe notification as the cloud sent it. Its fields change with the cloud.
alarm_idUUIDThe ID of the alarm.
created_at, updated_attime

Example​

{
"type": "alarm_state.created",
"data": {
"entity": {
"id": "a1c3e5f7-2b4d-4f6a-8c0e-1d3f5a7b9c20",
"status": "ALARM",
"alarm_name": "High CPU",
"message": "CPUUtilization > 80 for 3 datapoints within 15 minutes",
"occurred_at": "2026-11-19T15:04:11Z",
"provider_notification_id": "b7e2f0c4-9d1a-4e3b-8f5c-2a6d0e4b8c13",
"notification": { "AlarmName": "api-prod-database-high-cpu", "NewStateValue": "ALARM" },
"alarm_id": "4d6f8a0c-3e5b-4a7d-9f1c-6b8d0a2c4e57",
"created_at": "2026-11-19T15:04:12Z",
"updated_at": "2026-11-19T15:04:12Z"
},
"metadata": { "credential": "system" },
"attributes": {
"md-id": "api-prod-database",
"md-project": "api",
"md-environment": "prod",
"md-component": "database",
"md-instance": "api-prod-database",
"md-repo": "aws-rds-postgres",
"md-bundle": "aws-rds-postgres@1.4.2"
}
}
}

Example conditions​

To sendEventsCondition
Alarms that fire, not alarms that clearalarm_state.created.data.entity.status == "ALARM"
One alarm by namealarm_state.created.data.entity.alarm_name == "High CPU"
Alarms on databases in productionalarm_state.created.data.attributes["md-environment"] == "prod" and .data.attributes["md-component"] == "database"
CPU alarms on every instancealarm_state.created.data.entity.alarm_name \| test("cpu"; "i")