Slide 114
Slide 114 text
curl -w 'response: %{http_code} \n' -X POST \
-H "Content-Type: application/vnd.api+json" -d \
'{
"notification_rules": [
{
"entities": [ "foo-app-01.example.com" ],
"regex_entities" : [ "^foo-\S{3}-\d{2}.example.com$" ],
"tags": [ "database", "physical" ],
"regex_tags" : [],
"time_restrictions": [],
"unknown_media": [],
"warning_media": [
"email"
],
"critical_media": [
"sms",
"email"
],
"unknown_blackhole": false,
"warning_blackhole": false,
"critical_blackhole": false
}
]
}' \
http://localhost:3081/contacts/5/notification_rules