cURL
curl --request POST \ --url https://statsigapi.net/console/v1/experiments/{id}/metrics/{metricId}/raise \ --header 'Content-Type: application/json' \ --header 'STATSIG-API-KEY: <api-key>' \ --data ' { "comment": "Threshold breached on win rate", "source": "<string>" } '
{ "message": "<string>", "data": { "metricId": "win_rate::event_count", "status": "Alert", "timestamp": 1718630400, "comment": "Threshold breached on win rate", "source": "<string>" } }
id
metric id
Optional comment describing why the status was marked
"Threshold breached on win rate"
Optional source identifier for the mark
Metric alert raised successfully
A simple string explaining the result of the operation.
A single result.
Show child attributes
Was this page helpful?