Get Alerts Count By Resolution Reason
POST/commandcenter/api/v1/metrics/alert-count-by-resolution-reason
The API returns number of resolved alerts grouped by the resolution reason. You must have Alert_READ permission to access this endpoint.
Request
- application/json
Body
required
- Array [
- ]
filters object[]
List of filters that can be applied for the API
Possible values: [alert.resolutionReason
, policy.severity
, account.groupId
, policy.complianceStandardId
, cloud.type
, policy.type
, policy.id
, policy.category
, cloud.accountId
]
Only operator allowed for this filter is '='.
Filter value.
timeRange objectrequired
Type of time ranges supported: [relative]
value object
Relative time supporting past 24 hour, 7 days, 1 month, 3 months, 6 months and 1 year.
Possible values: [hour
, week
, month
, year
]
Responses
- 200
- 400
- 401
- 403
- 429
OK
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
Start time of the time range
End time of the time range
Last scan time of the backend job
Time since when the data is aggregated in the response
value object[]
Alert metrics details
Reason for resolution
Alert count for the resolution reason
{
"startTime": 0,
"endTime": 0,
"lastScanTs": 0,
"dataAvailableFrom": 0,
"value": [
{
"resolutionReason": "string",
"count": 0
}
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
error object
{
"error": {
"code": "string",
"message": "string",
"target": "string"
}
}
Unauthorized
Forbidden
Too Many Requests