Hi I'm trying to extract the current bandwidth of a given MS port.
For this I'm using the API call:
https://api.meraki.com/api/v1/devices/{MSserialNumber}/switch/ports/statuses?timespan=86400
On the UI I get:
On the API output I get following JSON for that same port:
"usageInKb": {
"total": 1028182893,
"sent": 322472038,
"recv": 705710855
},
"clientCount": 1,
"powerUsageInWh": 0.0,
"trafficInKbps": {
"total": 97486.9,
"sent": 30575.1,
"recv": 66911.8
}
},
-> the usageInKb seems to match, but the trafficInKbps doesn't
1. What's the timespan (currently 86400) to use to get the most recent trafficInKbps of a given switchport?
2. How comes these values are different between UI and API?
3. Is there a more accurate way to get the current BW used on a given port over API