Create Interface Stats (v2.0)
POST/sdwan/v2.0/api/monitor/agg_bw_stats
Start time, end time, and max datapoints are optional with the following restrictions; at least one of them needs to be specified. All the three can not be specified, as the result is ambiguous. Start time, if not specified, defaults to epoch. End time, if not specified, defaults to now. Limit, if not specified, defaults to None. Start and end times need to be specified in ISO8601 UTC format.
Request
- application/json
Body
Query request for getting sysmetrics
- Array [
- ]
The end time to get the system metrics.
filter AggregateBWStatsFilter
Filters according to the specifications.
Site
Possible values: [10sec
, 1min
, 5min
, 1hour
, 1day
, 1month
]
The interval time.
The max datapoints of the system metrics.
metrics Metrics[]required
Details of the metrics.
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]+$)
The name of the system metric.
The start time to get the system metrics.
view View
View the system metrics.
Possible values: [ELEMENT
, INTERFACE
, CELLULAR_MODULE
, DIRECTION
, SITE
, APP
, PATH
, PATH_TYPE
, WANINTERFACE
, PRIORITY
, TRAFFIC_TYPE
, COMMON
, CLIENT_MAC_ADDRESS
, USER
, USER_EMAIL
, RESOLUTION_QUALITY
, None
]
The individual view values.
The summary of the view.
Responses
- 200
- 400
- 500
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- Array [
- Array [
- ]
- ]
- ]
- ]
metrics MetricArray[]
Metrics
series Series[]
Series
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.
{
"metrics": [
{
"series": [
{
"data": [
{
"datapoints": [
{
"duration": "2024-07-29T15:51:28.071Z",
"filter_property_id": "string",
"links": [
"string"
],
"max_value_time": "2024-07-29T15:51:28.071Z",
"ninetieth_percentile": 0,
"sites": [
"string"
],
"value": 0
}
],
"statistics": {}
}
],
"interval": "string",
"name": "string",
"unit": "string",
"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": "METRIC_UNIT_NOT_SUPPORTED"
},
{
"code": "START_TIME_GREATER_THAN_END_TIME"
},
{
"code": "MAX_DATAPOINTS_END_TIME"
},
{
"code": "MAX_DATAPOINTS_NOT_SUPPORTED"
},
{
"code": "INVALID_STATS_REQUEST_BODY"
},
{
"code": "REQUESTED_VIEW_NOT_SUPPORTED"
},
{
"code": "AGGREGATE_BW_STATS_VIEW_INDIVIDUAL_NOT_SUPPORTED"
}
]
}
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
_error ErrorResponse[]
The error code.
The error message.
{
"_error": [
{
"code": "string",
"message": "string"
}
]
}