@alemabrahao thank you for the suggestion. I understand the problem on the post and it is not the issue I am experiencing. I should have mentioned on my initial post that my API query is not missing the monitored IP address.
@mlefebvre thank you for the suggestion. I have tried this again, this time including the uplink=cellular but still getting identical response. It would seem the issue is somewhere else.
@sungod that is the case for our environment. We have multiple MG51 gateways on non-MX networks and battling some connection issues. So a detailed historical latency and loss data would be very useful indeed. The live data would be even more useful but API does not seem to even have an operation for that.
In fact my end goal is to write a code to monitor cellular link packet loss and latency and if thresholds exceeded execute the failover code. It does feel a little like re-inventing the wheel. But I do not see such capability in the Meraki Dashboard and Solarwinds does not appear to have direct support for MG (yet). If this is OTT and if there is an easier way to achieve this I would really appreciate if someone could share some information.
for clarity I use curl for interacting with the API and the exact command line (excluding headers) is as below:
curl -L --request GET --url 'https://api.meraki.com/api/v1/devices/XXXX-YYYY-ZZZZ/lossAndLatencyHistory?ip=8.8.8.8&uplink=cellular'
replace XXXX-YYYY-ZZZZ with the actual MG51 serial number
thank you all! 🙂