v1
latestOpenAPI 3.0.02026-07-243339471.1 MBGet hardware trends for a Switch
This API provides hardware 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 for each member of the stack. When a member serial is provided, the trends are aggregated for that specific member. By default, data is aggregated over the last three hours from the current timestamp. Available metrics include CPU utilization, memory utilization, PoE available, PoE consumption, and total power available.
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.
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 hardware trends related to the switch.
Example response
{
"id": "8",
"type": "network-monitoring/switch-monitoring",
"metric": "SwitchNetworkHardwareTrends",
"keys": [
"cpuUtilization,memoryUtilization"
],
"switchMetrics": [
{
"serialNumber": "CN31HKZ0CN",
"switchRole": "Member",
"samples": [
{
"data": [
"27.0,36.0"
]
}
]
}
],
"units": [
"Frames,B,Packets"
]
}