FEA-Bench / testbed /aws-powertools__powertools-lambda-python /tests /events /cloudWatchAlarmEventSingleMetric.json
| { | |
| "source": "aws.cloudwatch", | |
| "alarmArn": "arn:aws:cloudwatch:eu-west-1:912397435824:alarm:test_alarm", | |
| "accountId": "123456789012", | |
| "time": "2024-02-17T11:53:08.431+0000", | |
| "region": "eu-west-1", | |
| "alarmData": { | |
| "alarmName": "Test alert", | |
| "state": { | |
| "value": "ALARM", | |
| "reason": "Threshold Crossed: 1 out of the last 1 datapoints [1.0 (17/02/24 11:51:00)] was less than the threshold (10.0) (minimum 1 datapoint for OK -> ALARM transition).", | |
| "reasonData": "{\"version\":\"1.0\",\"queryDate\":\"2024-02-17T11:53:08.423+0000\",\"startDate\":\"2024-02-17T11:51:00.000+0000\",\"statistic\":\"SampleCount\",\"period\":60,\"recentDatapoints\":[1.0],\"threshold\":10.0,\"evaluatedDatapoints\":[{\"timestamp\":\"2024-02-17T11:51:00.000+0000\",\"sampleCount\":1.0,\"value\":1.0}]}", | |
| "timestamp": "2024-02-17T11:53:08.431+0000" | |
| }, | |
| "previousState": { | |
| "value": "OK", | |
| "reason": "Threshold Crossed: 1 out of the last 1 datapoints [1.0 (17/02/24 11:50:00)] was not greater than the threshold (10.0) (minimum 1 datapoint for ALARM -> OK transition).", | |
| "reasonData": "{\"version\":\"1.0\",\"queryDate\":\"2024-02-17T11:51:31.460+0000\",\"startDate\":\"2024-02-17T11:50:00.000+0000\",\"statistic\":\"SampleCount\",\"period\":60,\"recentDatapoints\":[1.0],\"threshold\":10.0,\"evaluatedDatapoints\":[{\"timestamp\":\"2024-02-17T11:50:00.000+0000\",\"sampleCount\":1.0,\"value\":1.0}]}", | |
| "timestamp": "2024-02-17T11:51:31.462+0000" | |
| }, | |
| "configuration": { | |
| "description": "This is description **here**", | |
| "metrics": [ | |
| { | |
| "id": "e1", | |
| "expression": "m1/m2", | |
| "label": "Expression1", | |
| "returnData": true | |
| }, | |
| { | |
| "id": "m1", | |
| "metricStat": { | |
| "metric": { | |
| "namespace": "AWS/Lambda", | |
| "name": "Invocations", | |
| "dimensions": {} | |
| }, | |
| "period": 60, | |
| "stat": "SampleCount" | |
| }, | |
| "returnData": false | |
| }, | |
| { | |
| "id": "m2", | |
| "metricStat": { | |
| "metric": { | |
| "namespace": "AWS/Lambda", | |
| "name": "Duration", | |
| "dimensions": {} | |
| }, | |
| "period": 60, | |
| "stat": "SampleCount" | |
| }, | |
| "returnData": false | |
| } | |
| ] | |
| } | |
| } | |
| } | |