Get Mean Resolution Time
POST/commandcenter/api/v1/metrics/alert-mean-resolution-time
The API returns the mean resolution time of the alert in days per severity based on the filters. 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: [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
Severity name
Mean resolution time in days
{
"startTime": 0,
"endTime": 0,
"lastScanTs": 0,
"dataAvailableFrom": 0,
"value": [
{
"severity": "string",
"numberOfDays": 0
}
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
error object
{
"error": {
"code": "string",
"message": "string",
"target": "string"
}
}
Unauthorized
Forbidden
Too Many Requests