Get TopN data with metrics output (v2.0)
POST/v2.0/api/tenants/:tenant_id/monitor/aiops/topn
Get TopN sites or circuits based on growth. Note
- Start and end time need to be specified in ISO8601 UTC format.
- Metrics need to specified according to 2.0 specifications.
- Filters need to be specified according to the specifications.
Request
Path Parameters
Tenant Id
- application/json
Body
Query request for getting TopN Sites/Apps based on growth
- Array [
- Array [
- Array [
- ]
- ]
- ]
The end time to get the top n sites/apps. If not specified, it is default to now. End times need to be specified in ISO8601 UTC format.
The name of the of the top n sites/apps.
The start time to get the top n sites/apps. If not specified, it is default to epoch. Start times need to be specified in ISO8601 UTC format.
top_n TopNGrowthrequired
The details of the limit and type of the Top N reports.
compare TopNComparator
The topn n comparator metrics.
The end date to get the top n sites/apps. Start and end time need to be specified in ISO8601 UTC format.
Possible values: [value
, value_growth
, value_reduction
, percentage_growth
, percentage_reduction
]
The measurement values of the Top N reports.
The start date to get the top n sites/apps. Start and end time need to be specified in ISO8601 UTC format.
filter TopNGrowthFilter
Filters according to the specifications.
Filter by apps.
Possible values: [Ingress
, Egress
]
Filter by the direction of the traffic.
Filter by element.
Filter by path.
Possible values: [public_direct
, public_vpn
, private_direct
, private_vpn
, unknown
, servicelink
]
Filter by path type. Maximum number of allowed path types is 10.
Filter by site. Max size = 10.
Filter by wan interfaces. Max size = 10.
The query limit.
metrics Metricsrequired
The topn n metrics. Metrics need to specified according to 2.0 specifications.
series Series[]
Information on the series schema.
data Data[]
Data
datapoints Datapoints[]
Datapoints
The date and time of the series.
The filter property ID.
Links
Ninetieth Percentile
The sites.
The values of the filter.
Statistics
The interval time.
The name.
Unit
View the active series details.
Possible values: [app
, site
]
The type of top n metrics.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- Array [
- ]
- ]
- ]
The end time to get the top n sites/apps. If not specified, it is default to now. End times need to be specified in ISO8601 UTC format.
The name of the of the top n sites/apps.
The start time to get the top n sites/apps. If not specified, it is default to epoch. Start times need to be specified in ISO8601 UTC format.
top_n TopNGrowthrequired
The details of the limit and type of the Top N reports.
compare TopNComparator
The topn n comparator metrics.
The end date to get the top n sites/apps. Start and end time need to be specified in ISO8601 UTC format.
Possible values: [value
, value_growth
, value_reduction
, percentage_growth
, percentage_reduction
]
The measurement values of the Top N reports.
The start date to get the top n sites/apps. Start and end time need to be specified in ISO8601 UTC format.
filter TopNGrowthFilter
Filters according to the specifications.
Filter by apps.
Possible values: [Ingress
, Egress
]
Filter by the direction of the traffic.
Filter by element.
Filter by path.
Possible values: [public_direct
, public_vpn
, private_direct
, private_vpn
, unknown
, servicelink
]
Filter by path type. Maximum number of allowed path types is 10.
Filter by site. Max size = 10.
Filter by wan interfaces. Max size = 10.
The query limit.
metrics Metricsrequired
The topn n metrics. Metrics need to specified according to 2.0 specifications.
series Series[]
Information on the series schema.
data Data[]
Data
datapoints Datapoints[]
Datapoints
The date and time of the series.
The filter property ID.
Links
Ninetieth Percentile
The sites.
The values of the filter.
Statistics
The interval time.
The name.
Unit
View the active series details.
Possible values: [app
, site
]
The type of top n metrics.
{
"end_time": "2024-04-25",
"name": "string",
"start_time": "2024-04-25",
"top_n": {
"compare": {
"end_time": "2024-04-25",
"measurement": "value",
"start_time": "2024-04-25"
},
"filter": {
"app": [
"string"
],
"direction": [
"Ingress"
],
"element": [
"string"
],
"path": [
"string"
],
"path_type": [
"public_direct"
],
"site": [
"string"
],
"waninterface": [
"string"
]
},
"limit": 0,
"metrics": {
"series": [
{
"data": [
{
"datapoints": [
{
"duration": "2024-04-25T18:28:29.845Z",
"filter_property_id": "string",
"links": [
"string"
],
"ninetieth_percentile": 0,
"sites": [
"string"
],
"value": 0
}
],
"statistics": {}
}
],
"interval": "string",
"name": "string",
"unit": "string",
"view": {}
}
]
},
"type": "app"
}
}
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"
}
]
}
}