Alerts
Updates an existing alert rule.
Replaces the mutable fields of an existing alert rule with the supplied values and returns the updated resource. The rule must belong to the authenticated account.
The rule_set field, when provided, must be a valid JSON rule set as documented on RevelDigital.Core.PublicApi.Models.AlertRuleRequest.RuleSet; invalid rule sets are rejected with 400. Requires the AlertRules_Edit securable.
put/alerts/rules/{id}
Request
- Base URLhttps://api.reveldigital.com
- Auth
- OAuth 2Authorization codehttps://id.reveldigital.com/connect/authorizeToken URLhttps://id.reveldigital.com/connect/tokenScopeswebapi
- or API key in header X-RevelDigital-ApiKey
- or API key in query parameter api_key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
The alert rule ID to update.
Request body
Example request
{
"rule_set": "[{\"items\":[{\"type\":\"CpuUsage\",\"op\":\"GTE\",\"value\":[90]},{\"type\":\"MemoryUsage\",\"op\":\"GTE\",\"value\":[95]}]}]"
}Response
The alert rule was updated; the body contains the updated rule.
Changes
No recorded changes to this operation across all 3 revisions of this API.