Get alert metrics per time window
POST/stats/app/get-alert-window-metrics
Get alert metrics per time window.
Request
- application/json
Body
required
timeframe stringrequired
Possible values: [day
, week
, month
, year
, allTime
]
workspaceId stringrequired
Responses
- 200
- default
Successful response
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
windowStart date-timerequired
windowEnd date-timerequired
count numberrequired
[
{
"windowStart": "2024-07-29T15:51:28.071Z",
"windowEnd": "2024-07-29T15:51:28.071Z",
"count": 0
}
]
Error response
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
message stringrequired
code stringrequired
issues object[]
message stringrequired
{
"message": "string",
"code": "string",
"issues": [
{
"message": "string"
}
]
}
Loading...