Get TopN Data with Metrics Output (v2.0)
POST/sdwan/v2.0/api/monitor/aiops/topn
Get TopN sites or circuits based on growth. Start time need to be specified in ISO8601 UTC format. Metrics need to specified according to 2.0 specifications.
Request
- application/json
Body
Query request for getting TopN Sites/Apps based on growth
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.
Name: Required(error = REQUIRED_PROPERTY: Schema check failed - {} is a required property) Pattern(error = INVALID_FILTER: Schema check failed - Invalid value for param {}, regexp = ^[A-Za-z]+$)
Statistics: Required(error = REQUIRED_PROPERTY: Schema check failed - {} is a required property)
Unit: Required(error = REQUIRED_PROPERTY: Schema check failed - {} is a required property) Pattern(error = INVALID_FILTER: Schema check failed - Invalid value for param {}, regexp = ^[A-Za-z]+$)
Possible values: [app
, site
]
The type of top n metrics.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
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.
Name: Required(error = REQUIRED_PROPERTY: Schema check failed - {} is a required property) Pattern(error = INVALID_FILTER: Schema check failed - Invalid value for param {}, regexp = ^[A-Za-z]+$)
Statistics: Required(error = REQUIRED_PROPERTY: Schema check failed - {} is a required property)
Unit: Required(error = REQUIRED_PROPERTY: Schema check failed - {} is a required property) Pattern(error = INVALID_FILTER: Schema check failed - Invalid value for param {}, regexp = ^[A-Za-z]+$)
Possible values: [app
, site
]
The type of top n metrics.
{
"end_time": "2024-07-29",
"name": "string",
"start_time": "2024-07-29",
"top_n": {
"compare": {
"end_time": "2024-07-29",
"measurement": "value",
"start_time": "2024-07-29"
},
"filter": {
"app": [
"string"
],
"direction": [
"Ingress"
],
"element": [
"string"
],
"path": [
"string"
],
"path_type": [
"public_direct"
],
"site": [
"string"
],
"waninterface": [
"string"
]
},
"limit": 0,
"metrics": {
"name": "string",
"statistics": [
"string"
],
"unit": "string"
},
"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"
}
]
}
}