Query Healthscore Metrics (2.0)
POST/v2.0/api/tenants/:tenant_id/monitor/aiops/health
Get health metrics for sites, links, and applications.
Request
Path Parameters
The tenant ID.
- application/json
Body
Query request for getting healthscore metrics
The end time to get the healthscore metrics.
filter HealthFilter
Filters according to the specifications.
Possible values: [POOR
, FAIR
, GOOD
, OTHERS
, ALL
]
Application Health
Possible values: [POOR
, FAIR
, GOOD
, OTHERS
, ALL
]
Link Health
Possible values: [POOR
, FAIR
, GOOD
, OTHERS
, ALL
]
Site Health
Possible values: [10sec
, 1min
, 5min
, 1hour
, 1day
, 1month
]
The interval time of the healthscore responses.
The name of the healthscore filter.
The start time to get the healthscore metrics.
Possible values: [SUMMARY
, TIMESERIES
]
View the healthscore metrics.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
data HealthData[]
The details of the health data.
Fair
Good
Others
Poor
Total
Type
The end time to get the health data.
Possible values: [10sec
, 1min
, 5min
, 1hour
, 1day
, 1month
]
The interval time of the health data response.
The start time to get the health data.
View the health score data.
{
"data": [
{
"fair": {},
"good": {},
"others": {},
"poor": {},
"total": 0,
"type": "string"
}
],
"end_time": "2024-07-29",
"interval": "10sec",
"start_time": "2024-07-29",
"view": {}
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
_error ErrorResponse[]
The error code.
The error message.
{
"_error": [
{
"code": "string",
"message": "string"
}
]
}
{
"value": {
"_error": [
{
"code": "INVALID_REQUEST_ERROR_0001"
},
{
"code": "SCHEMA_MISMATCH"
},
{
"code": "METRIC_NOT_SUPPORTED"
},
{
"code": "FUTURE_TIME_ERROR"
}
]
}
}