Update Topline Alert
https://statsigapi.net/console/v1/alerts/{id}Authorizations
STATSIG-API-KEYstringrequiredapiKey (header)
Path parameters
idstringrequiredid
Body
application/jsonnamestringName of the alert (4-100 characters)
messagestringAlert message shown when the alert fires
alertThresholdnumberThreshold value that triggers the alert
warningThresholdnumberOptional warning threshold value. Pass null to clear.
formulastringFormula expression. Pass null to clear.
windowMsnumberHow far back and how frequently a metric should be checked, in milliseconds. Must be between 60_000 and 30 days.
conditionstringCondition under which a metric change triggers an alert
prioritystringAlert priority
renotificationConditionsstring[]Conditions under which a re-notification is sent. Pass null to clear.
renotificationWindowMsnumberHow long to wait before re-notifying, in ms
renotificationMessagestringRe-notification message
Response
application/jsonmessagestringrequiredA simple string explaining the result of the operation.
dataobjectrequiredShow child attributes
idstringrequiredID of the alert
namestringrequiredName of the alert
alertTypestringrequiredType of alert
metricsobjectrequiredList of metrics associated with this alert
metricGroupBysobjectrequiredMetric groupbys
formulastringFormula for the alert
messagestringrequiredAlert message
creatorIDstringcompanyIDstringrequiredprioritystringrequiredPriority of this alert
alertThresholdnumberrequiredwarningThresholdnumberwindowMsnumberrequiredHow far back and how frequently a metric should be checked, in milliseconds
conditionstringrequiredCondition under which a metric change triggers an alert in milliseconds
renotificationConditionsstring[]Condition under which a re-notification is sent
renotificationWindowMsnumberHow long to wait before re-notifying in milliseconds
renotificationMessagestringRe-notification message
teamstringTeam associated with this alert
tagsstring[]requiredTags associated with this alert
statusstringrequiredCurrent evaluation status of the alert
lastTriggeredTimenumberrequiredTimestamp in milliseconds of the last time this alert triggered
statusnumberrequiredmessagestringrequiredstatusintegerrequiredmessagestringrequiredWas this helpful?