v1

latestOpenAPI 3.0.02026-07-243339471.1 MB
Switch

Get 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.

get/network-monitoring/v1/switches/{serial-number}/interface-trends

Path parameters

serial-numberstring const required

The device serial number.

Example:AP00000001

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

site-idstring const
Example:123682

ID of the site for which location analytics trends is requested.

interface-idstring
Example:7

Interface name of the switch.

uplinkboolean
Example:true

Uplink of the interface indicates true or false.

filterstring const

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.

FieldOperatorsFormat
timestampgt and ltDate-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.

idstring required

identifier.

typestring required

Device type of monitoring.

metricstring

Trends name.

interfaceIdstring

Interface name for which the api called.

uplinkboolean

To identify uplink interfaces.

keysstring[]

Trends list.

unitsstring[]

Units for the interface trends in the keys list.

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"
  ]
}