B `O@sGdddeZdS)cseZdZfddZedddZedddZeedd d Zeedd d Zedd dZ edddZ edddZ eedddZ eedddZ edddZedddZZS)WirelessHealthcstt|||_dS)N)superr__init___session)selfsession) __class__x/private/var/folders/7j/8686xlfs15q3tgljmghtvg0r0000gn/T/pip-target-isidps9b/lib/python/meraki_v0/api/wireless_health.pyrszWirelessHealth.__init__) networkIdc s|td|kr@ddg}|d|ks@td|dd|dgdd}d |d }d d d ddddgfdd|D}|j|||S)a **Aggregated connectivity info for this network, grouped by clients** https://developer.cisco.com/meraki/api/#!get-network-clients-connection-stats - networkId (string) - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 180 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 7 days after t0. - timespan (number): The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 7 days. - band (string): Filter results by band (either '2.4' or '5'). Note that data prior to February 2020 will not have band information. - ssid (integer): Filter results by SSID - vlan (integer): Filter results by VLAN - apTag (string): Filter results by AP Tag bandz2.45z"band" cannot be "z", & must be set to one of: zWireless health getNetworkClientsConnectionStats)tags operationz /networks/z/clients/connectionStatst0t1timespanssidvlanapTagcs&i|]\}}|kr||qSr)strip).0kv) query_paramsrr "szCWirelessHealth.getNetworkClientsConnectionStats..)updatelocalsAssertionErroritemsrget)rr kwargsoptionsmetadataresourceparamsr)rr r s $ z/WirelessHealth.getNetworkClientsConnectionStatsc s|td|kr@ddg}|d|ks@td|dd|dgdd}d |d }d d d dddddgfdd|D}|j|||S)a **Aggregated latency info for this network, grouped by clients** https://developer.cisco.com/meraki/api/#!get-network-clients-latency-stats - networkId (string) - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 180 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 7 days after t0. - timespan (number): The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 7 days. - band (string): Filter results by band (either '2.4' or '5'). Note that data prior to February 2020 will not have band information. - ssid (integer): Filter results by SSID - vlan (integer): Filter results by VLAN - apTag (string): Filter results by AP Tag - fields (string): Partial selection: If present, this call will return only the selected fields of ["rawDistribution", "avg"]. All fields will be returned by default. Selected fields must be entered as a comma separated string. r z2.4r z"band" cannot be "z", & must be set to one of: zWireless healthgetNetworkClientsLatencyStats)rrz /networks/z/clients/latencyStatsrrrrrrfieldscs&i|]\}}|kr||qSr)r)rrr)rrr rCsz@WirelessHealth.getNetworkClientsLatencyStats..)rrrrrr )rr r!r"r#r$r%r)rr r&&s $ z,WirelessHealth.getNetworkClientsLatencyStats)r clientIdc s|td|kr@ddg}|d|ks@td|dd|dgdd}d |d |d }d d dddddgfdd|D}|j|||S)a **Aggregated connectivity info for a given client on this network. Clients are identified by their MAC.** https://developer.cisco.com/meraki/api/#!get-network-client-connection-stats - networkId (string) - clientId (string) - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 180 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 7 days after t0. - timespan (number): The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 7 days. - band (string): Filter results by band (either '2.4' or '5'). Note that data prior to February 2020 will not have band information. - ssid (integer): Filter results by SSID - vlan (integer): Filter results by VLAN - apTag (string): Filter results by AP Tag r z2.4r z"band" cannot be "z", & must be set to one of: zWireless healthgetNetworkClientConnectionStats)rrz /networks/z /clients/z/connectionStatsrrrrrrcs&i|]\}}|kr||qSr)r)rrr)rrr rdszBWirelessHealth.getNetworkClientConnectionStats..)rrrrrr )rr r(r!r"r#r$r%r)rr r)Gs $z.WirelessHealth.getNetworkClientConnectionStatsc s|td|kr@ddg}|d|ks@td|dd|dgdd}d |d |d }d d ddddddgfdd|D}|j|||S)a **Aggregated latency info for a given client on this network. Clients are identified by their MAC.** https://developer.cisco.com/meraki/api/#!get-network-client-latency-stats - networkId (string) - clientId (string) - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 180 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 7 days after t0. - timespan (number): The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 7 days. - band (string): Filter results by band (either '2.4' or '5'). Note that data prior to February 2020 will not have band information. - ssid (integer): Filter results by SSID - vlan (integer): Filter results by VLAN - apTag (string): Filter results by AP Tag - fields (string): Partial selection: If present, this call will return only the selected fields of ["rawDistribution", "avg"]. All fields will be returned by default. Selected fields must be entered as a comma separated string. r z2.4r z"band" cannot be "z", & must be set to one of: zWireless healthgetNetworkClientLatencyStats)rrz /networks/z /clients/z /latencyStatsrrrrrrr'cs&i|]\}}|kr||qSr)r)rrr)rrr rsz?WirelessHealth.getNetworkClientLatencyStats..)rrrrrr )rr r(r!r"r#r$r%r)rr r*hs $z+WirelessHealth.getNetworkClientLatencyStatsc s|td|kr@ddg}|d|ks@td|dd|dgdd}d |d }d d d ddddgfdd|D}|j|||S)a **Aggregated connectivity info for this network** https://developer.cisco.com/meraki/api/#!get-network-connection-stats - networkId (string) - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 180 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 7 days after t0. - timespan (number): The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 7 days. - band (string): Filter results by band (either '2.4' or '5'). Note that data prior to February 2020 will not have band information. - ssid (integer): Filter results by SSID - vlan (integer): Filter results by VLAN - apTag (string): Filter results by AP Tag r z2.4r z"band" cannot be "z", & must be set to one of: zWireless healthgetNetworkConnectionStats)rrz /networks/z/connectionStatsrrrrrrcs&i|]\}}|kr||qSr)r)rrr)rrr rsz.)rrrrrr )rr r!r"r#r$r%r)rr r+s $ z(WirelessHealth.getNetworkConnectionStatsc s|td|kr@ddg}|d|ks@td|dd|dgdd}d |d }d d d ddddgfdd|D}|j|||S)a **Aggregated connectivity info for this network, grouped by node** https://developer.cisco.com/meraki/api/#!get-network-devices-connection-stats - networkId (string) - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 180 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 7 days after t0. - timespan (number): The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 7 days. - band (string): Filter results by band (either '2.4' or '5'). Note that data prior to February 2020 will not have band information. - ssid (integer): Filter results by SSID - vlan (integer): Filter results by VLAN - apTag (string): Filter results by AP Tag r z2.4r z"band" cannot be "z", & must be set to one of: zWireless health getNetworkDevicesConnectionStats)rrz /networks/z/devices/connectionStatsrrrrrrcs&i|]\}}|kr||qSr)r)rrr)rrr rszCWirelessHealth.getNetworkDevicesConnectionStats..)rrrrrr )rr r!r"r#r$r%r)rr r,s $ z/WirelessHealth.getNetworkDevicesConnectionStatsc s|td|kr@ddg}|d|ks@td|dd|dgdd}d |d }d d d dddddgfdd|D}|j|||S)a **Aggregated latency info for this network, grouped by node** https://developer.cisco.com/meraki/api/#!get-network-devices-latency-stats - networkId (string) - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 180 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 7 days after t0. - timespan (number): The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 7 days. - band (string): Filter results by band (either '2.4' or '5'). Note that data prior to February 2020 will not have band information. - ssid (integer): Filter results by SSID - vlan (integer): Filter results by VLAN - apTag (string): Filter results by AP Tag - fields (string): Partial selection: If present, this call will return only the selected fields of ["rawDistribution", "avg"]. All fields will be returned by default. Selected fields must be entered as a comma separated string. r z2.4r z"band" cannot be "z", & must be set to one of: zWireless healthgetNetworkDevicesLatencyStats)rrz /networks/z/devices/latencyStatsrrrrrrr'cs&i|]\}}|kr||qSr)r)rrr)rrr rsz@WirelessHealth.getNetworkDevicesLatencyStats..)rrrrrr )rr r!r"r#r$r%r)rr r-s $ z,WirelessHealth.getNetworkDevicesLatencyStats)r serialc s|td|kr@ddg}|d|ks@td|dd|dgdd}d |d |d }d d dddddgfdd|D}|j|||S)a **Aggregated connectivity info for a given AP on this network** https://developer.cisco.com/meraki/api/#!get-network-device-connection-stats - networkId (string) - serial (string) - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 180 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 7 days after t0. - timespan (number): The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 7 days. - band (string): Filter results by band (either '2.4' or '5'). Note that data prior to February 2020 will not have band information. - ssid (integer): Filter results by SSID - vlan (integer): Filter results by VLAN - apTag (string): Filter results by AP Tag r z2.4r z"band" cannot be "z", & must be set to one of: zWireless healthgetNetworkDeviceConnectionStats)rrz /networks/z /devices/z/connectionStatsrrrrrrcs&i|]\}}|kr||qSr)r)rrr)rrr rszBWirelessHealth.getNetworkDeviceConnectionStats..)rrrrrr )rr r.r!r"r#r$r%r)rr r/s $z.WirelessHealth.getNetworkDeviceConnectionStatsc s|td|kr@ddg}|d|ks@td|dd|dgdd}d |d |d }d d ddddddgfdd|D}|j|||S)a **Aggregated latency info for a given AP on this network** https://developer.cisco.com/meraki/api/#!get-network-device-latency-stats - networkId (string) - serial (string) - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 180 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 7 days after t0. - timespan (number): The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 7 days. - band (string): Filter results by band (either '2.4' or '5'). Note that data prior to February 2020 will not have band information. - ssid (integer): Filter results by SSID - vlan (integer): Filter results by VLAN - apTag (string): Filter results by AP Tag - fields (string): Partial selection: If present, this call will return only the selected fields of ["rawDistribution", "avg"]. All fields will be returned by default. Selected fields must be entered as a comma separated string. r z2.4r z"band" cannot be "z", & must be set to one of: zWireless healthgetNetworkDeviceLatencyStats)rrz /networks/z /devices/z /latencyStatsrrrrrrr'cs&i|]\}}|kr||qSr)r)rrr)rrr r*sz?WirelessHealth.getNetworkDeviceLatencyStats..)rrrrrr )rr r.r!r"r#r$r%r)rr r0 s $z+WirelessHealth.getNetworkDeviceLatencyStatsc s|td|kr@ddg}|d|ks@td|dd|dgdd}d |d }d d d ddddddg fdd|D}|j|||S)a  **List of all failed client connection events on this network in a given time range** https://developer.cisco.com/meraki/api/#!get-network-failed-connections - networkId (string) - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 180 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 7 days after t0. - timespan (number): The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 7 days. - band (string): Filter results by band (either '2.4' or '5'). Note that data prior to February 2020 will not have band information. - ssid (integer): Filter results by SSID - vlan (integer): Filter results by VLAN - apTag (string): Filter results by AP Tag - serial (string): Filter by AP - clientId (string): Filter by client MAC r z2.4r z"band" cannot be "z", & must be set to one of: zWireless healthgetNetworkFailedConnections)rrz /networks/z/failedConnectionsrrrrrrr.r(cs&i|]\}}|kr||qSr)r)rrr)rrr rLsz>WirelessHealth.getNetworkFailedConnections..)rrrrrr )rr r!r"r#r$r%r)rr r1.s $ z*WirelessHealth.getNetworkFailedConnectionsc s|td|kr@ddg}|d|ks@td|dd|dgdd}d |d }d d d dddddgfdd|D}|j|||S)an **Aggregated latency info for this network** https://developer.cisco.com/meraki/api/#!get-network-latency-stats - networkId (string) - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 180 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 7 days after t0. - timespan (number): The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 7 days. - band (string): Filter results by band (either '2.4' or '5'). Note that data prior to February 2020 will not have band information. - ssid (integer): Filter results by SSID - vlan (integer): Filter results by VLAN - apTag (string): Filter results by AP Tag - fields (string): Partial selection: If present, this call will return only the selected fields of ["rawDistribution", "avg"]. All fields will be returned by default. Selected fields must be entered as a comma separated string. r z2.4r z"band" cannot be "z", & must be set to one of: zWireless healthgetNetworkLatencyStats)rrz /networks/z /latencyStatsrrrrrrr'cs&i|]\}}|kr||qSr)r)rrr)rrr rmsz9WirelessHealth.getNetworkLatencyStats..)rrrrrr )rr r!r"r#r$r%r)rr r2Ps $ z%WirelessHealth.getNetworkLatencyStats)__name__ __module__ __qualname__rstrr r&r)r*r+r,r-r/r0r1r2 __classcell__rr)rr rs  !!"  !!""rN)objectrrrrr