v1
latestOpenAPI 3.0.02026-07-243339471.1 MBGet interface trends for a Switch
This API provides interface trend data for a given site based on a serial number or stack id. When a stack id or conductor serial is provided, the trends are aggregated across the entire stack. When a member serial is provided, the trends are aggregated for that specific member. Supported metrics include RX bytes, TX bytes, discards, giants, errors, runts, and collisions.
Path parameters
The device serial number.
Serial Number of the switch in case of standalone, StackId or conductor serial in case of stack for which the device related information is requested.
Query parameters
ID of the site for which location analytics trends is requested.
Interface name of the switch.
Uplink of the interface indicates true or false.
OData Version 4.0 filter string (limited functionality). Supports only 'and' conjunction ('or' and 'not' are NOT supported). By default, aggregation is performed for three hours after the specified timestamp when only the gt operator is used, or up to the specified timestamp when only the lt operator is used. Supported fields, operators and value format are in the below given table.
| Field | Operators | Format |
|---|---|---|
| timestamp | gt and lt | Date-time (RFC 3339 timestamp in UTC+0) string |
The operators are implemented as follows:
-
gt: Used to indicate the start of the timestamp range.
-
lt: Used to indicate the end of the timestamp range.
Response
Object containing interface trends related to the switch.
Example response
{
"id": "8",
"type": "network-monitoring/switch-monitoring",
"metric": "SwitchNetworkInterfaceTrends",
"interfaceId": "7",
"keys": [
"rxBytes,inErrors"
],
"samples": [
{
"data": [
"27.0,36.0"
]
}
],
"units": [
"Frames,B,Packets"
]
}