getSiteSwitchesMetrics

GET {{host}}/api/v1/sites/:site_id/stats/switches/metrics

Query Parameters

NameTypeDescription
scopestringmetric scope, site/switch
typestringmetric type, only activeportssummary metric type is supported
switch_macstringswitch mac, used only with metric type activeportssummary

RESPONSES

status: OK

{"active_ports_summary":{"total_switch_count":1,"score":50.0,"switch_id":"67970e46-4e12-11e6-9188-0242ac110007_fc334262ef00","details":{"total_port_count":2,"active_port_count":1}}}