Query Site or Path Level Aggregated Statistics (2.0)
POST/v2.0/api/tenants/:tenant_id/monitor/aiops/aggregates
Query the site or path level aggregated statistics.
Request
Path Parameters
tenant_id stringrequired
The tenant ID.
- application/json
Body
Details of app object stats query
aggregates object[]required
The aggregate number of supported app stats. Max number = 10.
end_time date
The end time to get the app stats.
filter AggregateStatsFilterrequired
Filters according to the specifications.
app string[]required
Filter by aggregate stats app ID.
path string[]
Filter by path.
site string[]required
Filter by aggregate stats filter site ID.
name string
The description of the app. Maz size = 128.
start_time date
The start time to get the app statistics.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
aggregates object[]
The aggregate number of supported app stats. Max number = 10.
end_time date
The end time to get the app stats.
start_time date
The start time to get the app statistics.
{
"aggregates": [
{}
],
"end_time": "2024-07-29",
"start_time": "2024-07-29"
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
_error ErrorResponse[]
code string
The error code.
message string
The error message.
{
"_error": [
{
"code": "string",
"message": "string"
}
]
}
{
"value": {
"_error": [
{
"code": "INVALID_REQUEST_ERROR_0001"
},
{
"code": "AGGREGATE_STATS_QUERY_AGGREGATES_REQUIRED"
},
{
"code": "AGGREGATE_STATS_APP_ID_REQUIRED"
},
{
"code": "AGGREGATE_STATS_APP_LENGTH_EXCEEDED"
},
{
"code": "AGGREGATE_STATS_QUERY_APP_INVALID_VALUE"
},
{
"code": "AGGREGATE_STATS_QUERY_FILTER_SITE_ID_REQUIRED"
},
{
"code": "AGGREGATE_STATS_QUERY_SITE_LIST_LENGTH_EXCEEDED"
},
{
"code": "AGGREGATE_STATS_QUERY_SITE_ID_INVALID_VALUE"
},
{
"code": "AGGREGATE_STATS_QUERY_PATH_ID_INVALID_VALUE"
},
{
"code": "AGGREGATE_STATS_QUERY_AGGREGATES_UNSUPPORTED"
},
{
"code": "AGGREGATE_STATS_QUERY_START_TIME_BEFORE_END_TIME"
},
{
"code": "AGGREGATE_STATS_QUERY_FILTER_UNSUPPORTED"
}
]
}
}
Loading...