Query System Metrics Top N (v2.0)
POST/v2.0/api/tenants/:tenant_id/monitor/sys_metrics/topn
Query the details of the system metrics Top N.
Request
Path Parameters
ID of the tenant.
- application/json
Body
Filter for top N
The end time to get the Topn N reports. The time period for the Topn N reports is usually for week.
Details of the filter used in this query.
The name of the Top N report. Maz size = 128.
The start time to get the Topn N reports. The time period for the Topn N reports is usually for week.
top_n BaseTopNViewrequired
The details of the limit and type of the Top N reports.
The query limit of the Top N reports. Should be between 1 and 10.
The type of Top N reports.
The basis of the Top N reports.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
top_n BaseTopNResponseData
The details of the Top N reports.
The end time to get the Topn N reports. The time period for the Topn N reports is usually a week.
The items in the query.
The details of the limit and type of the Top N reports.
The start time to get the Topn N reports. The time period for the Topn N reports is usually a week.
The basis of the Top N reports.
The type of Top N report.
{
"top_n": {
"end_time": "string",
"items": [
"string"
],
"limit": 0,
"start_time": "string",
"topn_basis": "string",
"type": "string"
}
}
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": "APP_FILTER_NOT_SUPPORTED_FOR_TYPE"
},
{
"code": "SITE_FILTER_NOT_SUPPORTED_FOR_TYPE"
},
{
"code": "FILTER_NOT_SUPPORTED_WITHOUT_SITE"
},
{
"code": "START_TIME_GREATER_THAN_END_TIME"
},
{
"code": "PATH_NOT_SUPPORTED_WITH_PATH_TYPE"
},
{
"code": "TOPN_BASIS_NOT_SUPPORTED_WITHOUT_FILTER"
},
{
"code": "INVALID_LIMIT"
},
{
"code": "REQUIRED_PROPERTY"
},
{
"code": "LENGTH_EXCEEDED"
},
{
"code": "PATH_TYPE_LIST_LENGTH_EXCEEDED"
},
{
"code": "INVALID_FILTER"
},
{
"code": "FILTER_NOT_SUPPORTED"
}
]
}
}