Create an alert

POST {{url}}/armui/api/v1/alerts/cloudhub

Request Body

{"name"=>"Platform API Postman Test 001", "severity"=>"INFO", "actions"=>[{"type"=>"email", "content"=>"Hello,\nYou are receiving this alert because:\nThe application ${resource} is now in an ${state} state, based on the condition 'memory ${operator} ${value}%'.", "subject"=>"${severity}: memory usage ${state}", "userIds"=>["2909a63d-c57a-47b0-90f1-7ddfb815efba"]}], "condition"=>{"operator"=>"GREATER_THAN", "periodCount"=>20, "value"=>80, "resourceType"=>"cloudhub-application", "type"=>"memory", "periodMins"=>1, "resources"=>["*"]}}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
X-ANYPNT-ORG-IDstring
X-ANYPNT-ENV-IDstring