Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions meraki.py
Original file line number Diff line number Diff line change
Expand Up @@ -1711,6 +1711,23 @@ def getlldpcdp(apikey, networkid, serial, timespan=10800, suppressprint=False):
return result


# The uplink loss percentage and latency for wired network device.
# https://api.meraki.com/api_docs#get-the-uplink-loss-percentage-and-latency-in-milliseconds-for-a-wired-network-device
def getlossandlatencyhistory(apikey, networkid, serialnum, ip, uplink, timespan=86400, suppressprint=False):
calltype = 'Network Loss and Latency History'
geturl = '{0}/networks/{1}/devices/{2}/lossAndLatencyHistory?ip={3}&timespan={4}&uplink={5}'.format(str(base_url), str(networkid), str(serialnum), str(ip), str(timespan), str(uplink))
headers = {
'x-cisco-meraki-api-key': format(str(apikey)),
'Content-Type': 'application/json'
}
dashboard = requests.get(geturl, headers=headers)
#
# Call return handler function to parse Dashboard response
#
result = __returnhandler(dashboard.status_code, dashboard.text, calltype, suppressprint)
return result


# ### MX cellular firewall###

# Return the cellular firewall rules for an MX network
Expand Down