github.com/Foodji/aws-lambda-go@v1.20.2/events/testdata/cloudwatch-alarm-sns-payload-single-metric.json (about) 1 { 2 "Records": [ 3 { 4 "EventSource": "aws:sns", 5 "EventVersion": "1.0", 6 "EventSubscriptionArn": "arn:aws:sns:EXAMPLE", 7 "Sns": { 8 "Type": "Notification", 9 "MessageId": "95df01b4-ee98-5cb9-9903-4c221d41eb5e", 10 "TopicArn": "arn:aws:sns:EXAMPLE", 11 "Subject": "TestInvoke", 12 "Message": "{\"AlarmName\": \"EXAMPLE\",\"AlarmDescription\": \"EXAMPLE\",\"AWSAccountId\": \"123456789012\",\"NewStateValue\": \"ALARM\",\"NewStateReason\": \"Threshold Crossed: 1 out of the last 1 datapoints [1234.0 (06/03/15 17:43:27)] was greater than the threshold (0.0) (minimum 1 datapoint for OK -> ALARM transition).\",\"StateChangeTime\": \"2015-06-03T17:43:27.123+0000\",\"Region\": \"EXAMPLE\",\"AlarmArn\": \"arn:aws:cloudwatch:REGION:ACCOUNT_NUMBER:alarm:EXAMPLE\",\"OldStateValue\": \"INSUFFICIENT_DATA\",\"Trigger\": {\"MetricName\": \"NetworkOut\",\"Namespace\": \"AWS/EC2\",\"StatisticType\": \"Statistic\",\"Statistic\": \"AVERAGE\",\"Unit\": \"Bytes\",\"Dimensions\": [{\"value\": \"TestInstance\",\"name\": \"InstanceId\"}],\"Period\": 60,\"EvaluationPeriods\": 1,\"ComparisonOperator\": \"GreaterThanThreshold\",\"Threshold\": 0.0,\"TreatMissingData\": \"- TreatMissingData: missing\",\"EvaluateLowSampleCountPercentile\": \"\"}}", 13 "Timestamp": "2015-06-03T17:43:27.123Z", 14 "SignatureVersion": "1", 15 "Signature": "EXAMPLE", 16 "SigningCertUrl": "EXAMPLE", 17 "UnsubscribeUrl": "EXAMPLE", 18 "MessageAttributes": {} 19 } 20 } 21 ] 22 }