The Meraki Community
Register or Sign in
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • About kvkewn
kvkewn

kvkewn

Conversationalist

Member since Feb 28, 2020

‎02-29-2020
Kudos from
User Count
klausengelmann
klausengelmann
1
View All

Community Record

2
Posts
1
Kudos
0
Solutions
Latest Contributions by kvkewn
  • Topics kvkewn has Participated In
  • Latest Contributions by kvkewn

Re: 'Network Device Loss and Latency History' inconsistency

by kvkewn in Developers & APIs
‎02-28-2020 03:21 PM
‎02-28-2020 03:21 PM
It's actually returning a 200 with an empty table, all i see in Postman is:   []   Was wondering if someone can test this with a timespan of somewhere between 60 and 90 seconds and confirm.    Just before i left the office i tried requesting for org MX latency and loss** instead of a single device with a high timespan, and noticed that the timestamps in the responses came out of order but also were sometimes within 1 second of each other, others within 10 seconds. Trying to figure out if there's any pattern here or the API is queueing/caching data and responding on it on a random fashion.   ** https://developer.cisco.com/meraki/api/#/rest/api-endpoints/organizations/get-organization-uplinks-loss-and-latency ... View more

'Network Device Loss and Latency History' inconsistency

by kvkewn in Developers & APIs
‎02-28-2020 06:45 AM
1 Kudo
‎02-28-2020 06:45 AM
1 Kudo
Hi,   I'm hitting: https://developer.cisco.com/meraki/api/#/rest/api-endpoints/devices/get-network-device-loss-and-latency-history   I then parse the response into PRTG.   The problem i have is that sometimes it will return with nothing ([]) in Postman (and PRTG) and some other times it will return 2 groups of keys and values.   My GET:   /networks/{networkId}/devices/{serial}/lossAndLatencyHistory?ip=8.8.8.8&timespan=90&uplink-WAN1    Normal (expected) response:       [ { "startTs": "2020-02-28T13:58:00Z", "endTs": "2020-02-28T13:59:00Z", "lossPercent": 0.0, "latencyMs": 23.4 } ]       If i keep clicking Send in Postman every 10-20 seconds it sometimes returns:       []       Some other times, rare but it happens, it will return something like:       [ { "startTs": "2020-02-28T14:13:00Z", "endTs": "2020-02-28T14:14:00Z", "lossPercent": 0.0, "latencyMs": 23.3 } { "startTs": "2020-02-28T14:14:00Z", "endTs": "2020-02-28T14:15:00Z", "lossPercent": 0.0, "latencyMs": 24.1 } ]       That results into a parsing and graphing mess in PRTG.   The issue in the last example seems to be the 'timespan' parameter, notice that it returns the value for two periods of time, 1 minute duration each. That's confirmed in the dashboard as the uplink 'Historical Data' graph seems to work in 1 minute intervals.   My first thought was that the 90 seconds timespan will occasionally return two values, one for the past 60 seconds and one for the 60 seconds before it. I now tried requesting a timespan of 60 seconds instead but i am seeing the same issue where it will often return nothing. That stops PRTG from plotting a smooth graph similar to the one on the dashboard. Interestingly, the issue applies to both WAN links, they will both either return something or nothing.   Nothing else is querying this API so we are definitely not hitting the 5 calls per second limit.   I could play around with a longer timespan or the t0 and t1 values but i would like to monitor this in a way where i can spot latency spikes, ideally so it looks similar to the graph on the dashboard.   Anyone knows what pattern this follows?   It seems to be clearing the values every now and then and eventually replacing them with the most current ones, then adding to these.   Some experiments i've done:   -- timespan=300 usually returns 4 values but something 5. -- timespan=180 sometimes returns 1 value, other times 3, some other times 2 which makes no sense. -- timespan=180 and above seem to ALWAYS return at least 1 value.     ... View more
Labels:
  • Labels:
  • Dashboard API
Kudos from
User Count
klausengelmann
klausengelmann
1
View All
My Top Kudoed Posts
Subject Kudos Views

'Network Device Loss and Latency History' inconsistency

Developers & APIs
1 2962
View All
Powered by Khoros
custom.footer.
  • Community Guidelines
  • Cisco Privacy
  • Khoros Privacy
  • Privacy Settings
  • Terms of Use
© 2023 Meraki