I'm trying to get the last 30 days lost and latency of WAN1 on the MX. https://developer.cisco.com/meraki/api-v1/#!get-device-loss-and-latency-history
Using below give me the last day's no issue:
device_loss_latency_history = dashboard.devices.getDeviceLossAndLatencyHistory(serial, ip)
However trying to get the last 30 day at 60 seconds interval does not work.
#Get data for last 31 days
kwargs = {"timespan" : 2678400, "resolution" : 60, "uplink" : "wan1"}
device_loss_latency_history = dashboard.devices.getDeviceLossAndLatencyHistory(serial, ip, kwargs)
It's giving me error:
TypeError: Devices.getDeviceLossAndLatencyHistory() takes 3 positional arguments but 4 were given
Not sure how I'm meant to provide the argument?
The code here indicate it accepts up to 5 arguments.
https://github.com/meraki/dashboard-api-python/blob/ff7b5063a4a1be1cf61e729da36ca654b483c6f3/meraki/...
What am I doing wrong here?
Thanks