forked from aws/aws-lambda-java-libs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudwatch-metric-alarm.json
42 lines (42 loc) · 1.54 KB
/
cloudwatch-metric-alarm.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
{
"source": "aws.cloudwatch",
"alarmArn": "arn:aws:cloudwatch:us-east-1:444455556666:alarm:lambda-demo-metric-alarm",
"accountId": "444455556666",
"time": "2023-08-04T12:36:15.490+0000",
"region": "us-east-1",
"alarmData": {
"alarmName": "lambda-demo-metric-alarm",
"state": {
"value": "ALARM",
"reason": "test",
"timestamp": "2023-08-04T12:36:15.490+0000"
},
"previousState": {
"value": "INSUFFICIENT_DATA",
"reason": "Insufficient Data: 5 datapoints were unknown.",
"reasonData": "{\"version\":\"1.0\",\"queryDate\":\"2023-08-04T12:31:29.591+0000\",\"statistic\":\"Average\",\"period\":60,\"recentDatapoints\":[],\"threshold\":5.0,\"evaluatedDatapoints\":[{\"timestamp\":\"2023-08-04T12:30:00.000+0000\"},{\"timestamp\":\"2023-08-04T12:29:00.000+0000\"},{\"timestamp\":\"2023-08-04T12:28:00.000+0000\"},{\"timestamp\":\"2023-08-04T12:27:00.000+0000\"},{\"timestamp\":\"2023-08-04T12:26:00.000+0000\"}]}",
"timestamp": "2023-08-04T12:31:29.595+0000"
},
"configuration": {
"description": "Metric Alarm to test Lambda actions",
"metrics": [
{
"id": "1234e046-06f0-a3da-9534-EXAMPLEe4c",
"metricStat": {
"metric": {
"namespace": "AWS/Logs",
"name": "CallCount",
"dimensions": {
"InstanceId": "i-12345678"
}
},
"period": 60,
"stat": "Average",
"unit": "Percent"
},
"returnData": True
}
]
}
}
}