CSM 10.4 Documentation

Home

Sample SNS Message for an Incident Creation

This is a sample JSON response from AWS Config, sent via SNS. This message will be stored in an AWS Event record before being processed by the (AWS Event) AWS Event automation process to an Incident to your database and link the Incident to the affected CI in your CMDB. You can use this sample JSON to test the Create AWS Event webhook.

                        
            {
  "Type": "Notification",
  "MessageId": "836fe1ec-79e0-56b8-827f-b66569e37e11",
  "TopicArn": "arn:aws:sns:us-east-1:498849832712:update-cherwell-cmdb",
  "Message": "{\r\n  \"version\": \"0\",\r\n  \"id\": \"5f2af47e-43db-7cdb-ae3b-bcdf0932659d\",\r\n  \"detail-type\": \"CloudWatch Alarm State Change\",\r\n  \"source\": \"aws.cloudwatch\",\r\n  \"account\": \"498849832712\",\r\n  \"time\": \"2020-07-09T14:30:01Z\",\r\n  \"region\": \"us-east-1\",\r\n  \"resources\": [\"arn:aws:cloudwatch:us-east-1:498849832712:alarm:CPU Usage Alarm\"],\r\n  \"detail\": {\r\n    \"alarmName\": \"CPU Usage Alarm\",\r\n    \"state\": {\r\n      \"value\": \"ALARM\",\r\n      \"reason\": \"Threshold Crossed: 1 out of the last 1 datapoints [0.2706214689265534 (09\/07\/20 14:20:00)] was greater than the threshold (0.05) (minimum 1 datapoint for OK -> ALARM transition).\",\r\n      \"reasonData\": \"{\\\"version\\\":\\\"1.0\\\",\\\"queryDate\\\":\\\"2020-07-09T14:30:01.387+0000\\\",\\\"startDate\\\":\\\"2020-07-09T14:20:00.000+0000\\\",\\\"statistic\\\":\\\"Average\\\",\\\"period\\\":300,\\\"recentDatapoints\\\":[0.2706214689265534],\\\"threshold\\\":0.05}\",\r\n      \"timestamp\": \"2020-07-09T14:30:01.391+0000\"\r\n    },\r\n    \"previousState\": {\r\n      \"value\": \"INSUFFICIENT_DATA\",\r\n      \"reason\": \"Unchecked: Initial alarm creation\",\r\n      \"timestamp\": \"2020-07-09T14:28:40.178+0000\"\r\n    },\r\n    \"configuration\": {\r\n      \"metrics\": [{\r\n        \"id\": \"7ab999fd-3d39-6f59-0f6a-47de61d53e46\",\r\n        \"metricStat\": {\r\n          \"metric\": {\r\n            \"namespace\": \"AWS\/EC2\",\r\n            \"name\": \"CPUUtilization\",\r\n            \"dimensions\": {\r\n              \"InstanceId\": \"i-0ee0478b095c210ba\"\r\n            }\r\n          },\r\n          \"period\": 300,\r\n          \"stat\": \"Average\"\r\n        },\r\n        \"returnData\": true\r\n      }]\r\n    }\r\n  }\r\n}",
  "Timestamp": "2020-07-15T14:08:03.824Z",
  "SignatureVersion": "1",
  "Signature": "JNdxahPfT0tVsX8+ZVPeA23M09UcCbIQ8uar5AZ4VqscGhzqpMcy4v00mluwr3eyJuFsogxhv1RprFIHU0ZH4bNRWxDpzdVnFIGVSnSBZDVi075ynf+oxagTLhSs7aa9Aar38RcQicaYBc6kHiCg5FHIwwU1OXeehVjHavFKC1ymSegaxtD2pUG4jST30gC2P55I+qyFItPOj+Ih8ZqRBXc3H989mwDKU0Qa54/lQ0cFMC8YwZcQzqwSoZQwIvsrCzLjNR7l2IIEq4pk9d2thq9C/tySFNlXd4/HP/Vd6I9wuP08c0nspmmWxQY1X7CQOvwKway7V9WmKVpku3avxQ==",
  "SigningCertURL": "https://sns.us-east-1.amazonaws.com/SimpleNotificationService-a86cb10b4e1f29c941702d737128f7b6.pem",
  "UnsubscribeURL": "https://sns.us-east-1.amazonaws.com/?Action=Unsubscribe&SubscriptionArn=arn:aws:sns:us-east-1:498849832712:update-cherwell-cmdb:e0cff011-7a6a-4425-9c0c-e812474debe5"
}
        
                    

Was this article useful?