RAW Message Format Example
Create an AWS SNS
webhook with Message Format = RAW
, for example:
Create a new rule and open the Webhooks tab.
Select
[AWS-SNS] test
from the Endpoint drop-down.Enable the
OPEN
,REPEAT
, andCANCEL
triggers.Customize the alert messages using placeholders as necessary, for example:
OPEN
{
"status": "${status}",
"entity": "${entity}",
"rule": "${rule}",
"tags": "${tags}",
"message": "The rule is open"
}
REPEAT
{
"status": "${status}",
"entity": "${entity}",
"rule": "${rule}",
"tags": "${tags}",
"repeatCount": "${repeat_count}",
"message": "The rule is still open"
}
CANCEL
{
"status": "${status}",
"entity": "${entity}",
"rule": "${rule}",
"tags": "${tags}",
"repeatCount": "${repeat_count}",
"message": "The rule is cancel"
}
Click Save to save the rule.
The rule creates new windows when new commands are received by the database.
It can take a few seconds for the first commands to arrive and to trigger the notifications. Refresh the Alerts > Open Alerts page to verify that an alert is open for your rule.
Test
AWS SNS Subscriptions:
Notifications examples
Email protocol
HTTP protocol
The HTTP
subscription with parameter raw message delivery = false
:
HTTP protocol
The HTTP
subscription with parameter raw message delivery = true
: