{
"AlarmName": "AWS Predicted Cost Anomaly alarm",
"AlarmDescription": "Idea is to use ML anomaly detection to notify us when cost get out of hand.",
"AWSAccountId": "393915070316",
"NewStateValue": "ALARM",
"NewStateReason": "Thresholds Crossed: 1 out of the last 1 datapoints [25823.11 (17/05/21 01:38:00)] was greater than the upper thresholds [25814.003064043925] (minimum 1 datapoint for OK -> ALARM transition).",
"StateChangeTime": "2021-05-18T01:38:09.723+0000",
"Region": "US East (N. Virginia)",
"AlarmArn": "arn:aws:cloudwatch:us-east-1:393915070316:alarm:AWS Predicted Cost Anomaly alarm",
"OldStateValue": "OK",
"Trigger": {
"Period": 86400,
"EvaluationPeriods": 1,
"ComparisonOperator": "GreaterThanUpperThreshold",
"ThresholdMetricId": "ad1",
"TreatMissingData": "- TreatMissingData: missing",
"EvaluateLowSampleCountPercentile": "",
"Metrics": [
{
"Id": "m1",
"MetricStat": {
"Metric": {
"Dimensions": [
{
"value": "USD",
"name": "Currency"
}
],
"MetricName": "EstimatedCharges",
"Namespace": "AWS/Billing"
},
"Period": 86400,
"Stat": "Maximum"
},
"ReturnData": true
},
{
"Expression": "ANOMALY_DETECTION_BAND(m1, 0.05)",
"Id": "ad1",
"Label": "EstimatedCharges (expected)",
"ReturnData": true
}
]
}
}
code:
{
"Type": "Notification",
"MessageId": "f9c70420-5af3-559f-9cce-5d3d4632cfe1",
"TopicArn": "arn:aws:sns:us-east-1:393915070316:opsgenie",
"Subject": "ALARM: \"AWS Predicted Cost Anomaly alarm\" in US East (N. Virginia)",
"Message": "{\"AlarmName\":\"AWS Predicted Cost Anomaly alarm\",\"AlarmDescription\":\"Idea is to use ML anomaly detection to notify us when cost get out of hand.\",\"AWSAccountId\":\"393915070316\",\"NewStateValue\":\"ALARM\",\"NewStateReason\":\"Thresholds Crossed: 1 out of the last 1 datapoints [25823.11 (17/05/21 01:38:00)] was greater than the upper thresholds [25814.003064043925] (minimum 1 datapoint for OK -> ALARM transition).\",\"StateChangeTime\":\"2021-05-18T01:38:09.723+0000\",\"Region\":\"US East (N. Virginia)\",\"AlarmArn\":\"arn:aws:cloudwatch:us-east-1:393915070316:alarm:AWS Predicted Cost Anomaly alarm\",\"OldStateValue\":\"OK\",\"Trigger\":{\"Period\":86400,\"EvaluationPeriods\":1,\"ComparisonOperator\":\"GreaterThanUpperThreshold\",\"ThresholdMetricId\":\"ad1\",\"TreatMissingData\":\"- TreatMissingData: missing\",\"EvaluateLowSampleCountPercentile\":\"\",\"Metrics\":[{\"Id\":\"m1\",\"MetricStat\":{\"Metric\":{\"Dimensions\":[{\"value\":\"USD\",\"name\":\"Currency\"}],\"MetricName\":\"EstimatedCharges\",\"Namespace\":\"AWS/Billing\"},\"Period\":86400,\"Stat\":\"Maximum\"},\"ReturnData\":true},{\"Expression\":\"ANOMALY_DETECTION_BAND(m1, 0.05)\",\"Id\":\"ad1\",\"Label\":\"EstimatedCharges (expected)\",\"ReturnData\":true}]}}",
"Timestamp": "2021-05-18T01:38:09.867Z",
"Signature": "DjMtae9hf4twYLmn6ypWKtLb1nCOb0ODrCcx7D0mOlaBtiw7aKNmeq3cIGfpXXgopdGurDHH08Z1w3W28pD39VIgFbBNY5Oi/AGgu7a2XeryqiarBSms4dLWTBqpp6pBE6J783hV8Ub/OOwwvQuoTxJTtzuGxSyl40Vf+OSSgmu8Vefl1EnyZDhCcE4cDAS356AlD+zgFds2vJzxM6+mgzsRvKKIWwQtO1+PIkDf8dU3chSwKn5dce+rEs/XahuGYbPhKVRr4DbRL27KcPaRF7Ht0FEUQ2lb8pSSKAWr306PR8exnwYtL1k+vSgyY8//HiXFW+VJ4ruo7P+P0Pnr/Q=="
}
Posted May 18, 2021 - 01:38 UTC