forked from aws-powertools/powertools-lambda-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudWatchAlarmEvent.json
59 lines (59 loc) · 2.33 KB
/
cloudWatchAlarmEvent.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"source": "aws.cloudwatch",
"alarmArn": "arn:aws:cloudwatch:eu-west-1:912397435824:alarm:test_alarm",
"accountId": "000000000000",
"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
}
]
}
}
}