Retrieve a monitor
Retrieve a monitor
One monitor with its definition and current state.
Includes the last evaluated value and when it was evaluated.
GET
/v1/monitors/{id}Path parameters
idstringrequiredmon_….
curl -X GET https://api.logstreem.com/v1/monitors/{id} \
-H "Authorization: Bearer $LOGSTREEM_TOKEN"Responses
200OK
{
"object": "monitor",
"id": "mon_4a81e0c3f6a5b2d1e0c9",
"name": "Checkout 5xx rate",
"type": "threshold",
"dataset": "api-gateway-prod",
"apl": "['api-gateway-prod']\n| where status >= 500\n| summarize count() by bin(_time, 5m)",
"operator": "above",
"threshold": 25,
"interval_minutes": 5,
"state": "ok",
"notifiers": ["ntf_1d7e4b3a09c2f856d4a1"],
"created_at": "2026-08-02T09:41:00.000Z"
}401Unauthorized
{
"error": {
"type": "authentication_error",
"code": "missing_token",
"message": "No API token provided.",
"doc_url": "https://logstreem.com/docs/errors#missing_token",
"request_id": "req_9f3c2a7b41de08c5b2e6"
}
}Try itsandbox