Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/devices_wireless_connection_stats_info.py

raw
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
3
4 # Copyright (c) 2021, Cisco Systems
5 # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
6
7 DOCUMENTATION = r"""
8 module: devices_wireless_connection_stats_info
9 short_description: Information module for devices _wireless _connectionstats
10 description:
11 - Information module for Devices Wireless Connectionstats Info.
12 - Get all devices _wireless _connectionstats.
13 - Aggregated connectivity info for a given AP on this network.
14 version_added: '1.0.0'
15 extends_documentation_fragment:
16 - cisco.meraki.module_info
17 author: Francisco Munoz (@fmunoz)
18 options:
19 headers:
20 description: Additional headers.
21 type: dict
22 serial:
23 description:
24 - Information module for Devices Wireless Connectionstats Info.
25 - Serial path parameter.
26 type: str
27 t0:
28 description:
29 - Information module for Devices Wireless Connectionstats Info.
30 - T0 query parameter. The beginning of the timespan for the data. The maximum
31 lookback period is 180 days from today.
32 type: str
33 t1:
34 description:
35 - Information module for Devices Wireless Connectionstats Info.
36 - T1 query parameter. The end of the timespan for the data. T1 can be a maximum
37 of 7 days after t0.
38 type: str
39 timespan:
40 description:
41 - Information module for Devices Wireless Connectionstats Info.
42 - >
43 Timespan query parameter. The timespan for which the information will be fetched.
44 If specifying timespan, do not specify parameters t0 and t1. The value must
45 be in seconds and be less than or equal to 7 days.
46 type: float
47 band:
48 description:
49 - Information module for Devices Wireless Connectionstats Info.
50 - >
51 Band query parameter. Filter results by band (either '2.4', '5' or '6'). Note
52 that data prior to February 2020 will not have band information.
53 type: str
54 ssid:
55 description:
56 - Information module for Devices Wireless Connectionstats Info.
57 - Ssid query parameter. Filter results by SSID.
58 type: int
59 apTag:
60 description:
61 - Information module for Devices Wireless Connectionstats Info.
62 - ApTag query parameter. Filter results by AP Tag.
63 type: str
64 requirements:
65 - meraki >= 2.4.9
66 - python >= 3.5
67 seealso:
68 - name: Cisco Meraki documentation for wireless getDeviceWirelessConnectionStats
69 description: Complete reference of the getDeviceWirelessConnectionStats API.
70 link: https://developer.cisco.com/meraki/api-v1/#!get-device-wireless-connection-stats
71 notes:
72 - SDK Method used are
73 wireless.Wireless.get_device_wireless_connection_stats,
74 - Paths used are
75 get /devices/{serial}/wireless/connectionStats,
76 """
77
78 EXAMPLES = r"""
79 - name: Get all devices _wireless _connectionstats
80 cisco.meraki.devices_wireless_connection_stats_info:
81 meraki_api_key: "{{ meraki_api_key }}"
82 meraki_base_url: "{{ meraki_base_url }}"
83 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
84 meraki_certificate_path: "{{ meraki_certificate_path }}"
85 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
86 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
87 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
88 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
89 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
90 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
91 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
92 meraki_output_log: "{{ meraki_output_log }}"
93 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
94 meraki_log_path: "{{ meraki_log_path }}"
95 meraki_print_console: "{{ meraki_print_console }}"
96 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
97 meraki_simulate: "{{ meraki_simulate }}"
98 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
99 meraki_caller: "{{ meraki_caller }}"
100 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
101 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
102 t0: string
103 t1: string
104 timespan: 0
105 band: string
106 ssid: 0
107 apTag: string
108 serial: string
109 register: result
110 """
111 RETURN = r"""
112 meraki_response:
113 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
114 returned: always
115 type: dict
116 sample: >
117 {
118 "serial": "string",
119 "connectionStats": {
120 "assoc": 0,
121 "auth": 0,
122 "dhcp": 0,
123 "dns": 0,
124 "success": 0
125 }
126 }
127 """