Skip to content

Instantly share code, notes, and snippets.

@collingo
Created May 6, 2020 11:03
Show Gist options
  • Save collingo/11cbabc18e6f7d87e2c94a7f85a5d3d0 to your computer and use it in GitHub Desktop.
Save collingo/11cbabc18e6f7d87e2c94a7f85a5d3d0 to your computer and use it in GitHub Desktop.
CloudWatch alarm message example
{
"AlarmName": "cpuUtilTest",
"AlarmDescription": "testing alarms for cpu utilization",
"AWSAccountId": "08931xxxxxx",
"NewStateValue": "ALARM",
"OldStateValue": "OK",
"NewStateReason": "Threshold Crossed: 1 datapoint (5.199) was greater than or equal to the threshold (5.0).",
"StateChangeTime": "2012-08-05T22:31:25.524+0000",
"Region": "US - N. Virginia",
"Trigger": {
"MetricName": "CPUUtilization",
"Namespace": "AWS/EC2",
"Statistic": "AVERAGE",
"Unit": null,
"Dimensions": [
{
"name": "InstanceId",
"value": "i-39e64c5f"
}
],
"Period": 900,
"EvaluationPeriods": 1,
"ComparisonOperator": "GreaterThanOrEqualToThreshold",
"Threshold": 5.0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment