API Guide

Telemetry
Time series-based metrics and state information.
Topics:
POST /telemetry/metrics
GET /telemetry/switch/rank/metric/{metric-name}
POST /telemetry/state
GET /telemetry/catalog
POST /telemetry/connection/{switch-id}
POST /telemetry/metrics
Creates or updates metric values corresponding to the specified OID and metric key.
API
POST /telemetry/metrics
Description This API retrieves metric values corresponding to the specified OID and metric key.
Parameters
Table 82. API parameters
Filter name Description
body For example:
{
"entity_id":
"35:51778771773587498",
"metric_name": "out_discards",
"interval": 60,
"time_range": {
"end_time_unix":
1580189177,
"start_time_unix":
1580185577
}
}
Responses 200 — Success or error response
{
"entity_id": "35:51778771773587498",
"metric_name": "out_discards",
"interval": 60,
"metric_type": "COUNTER",
"data": [{
"metadata": null,
"data": [{
"timestamp": 1580186597,
"value": 1565
},
{
"timestamp": 1580186657,
"value": 1565
},
{
"timestamp": 1580186717,
"value": 1565
},
22
174 Telemetry