Debian Codegraph @

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

raw symbols SCIP
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: organizations_assurance_alerts_overview_info
9 short_description: Information module for organizations _assurance _alerts _overview
10 description:
11 - Information module for Organizations Assurance Alerts Overview Info.
12 - Get all organizations _assurance _alerts _overview.
13 - Return overview of active health alerts for an organization.
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 organizationId:
23 description:
24 - Information module for Organizations Assurance Alerts Overview Info.
25 - OrganizationId path parameter. Organization ID.
26 type: str
27 networkId:
28 description:
29 - Information module for Organizations Assurance Alerts Overview Info.
30 - NetworkId query parameter. Optional parameter to filter alerts overview by
31 network ids.
32 type: str
33 severity:
34 description:
35 - Information module for Organizations Assurance Alerts Overview Info.
36 - Severity query parameter. Optional parameter to filter alerts overview by
37 severity type.
38 type: str
39 types:
40 description:
41 - Information module for Organizations Assurance Alerts Overview Info.
42 - Types query parameter. Optional parameter to filter by alert type.
43 elements: str
44 type: list
45 tsStart:
46 description:
47 - Information module for Organizations Assurance Alerts Overview Info.
48 - TsStart query parameter. Optional parameter to filter by starting timestamp.
49 type: str
50 tsEnd:
51 description:
52 - Information module for Organizations Assurance Alerts Overview Info.
53 - TsEnd query parameter. Optional parameter to filter by end timestamp.
54 type: str
55 category:
56 description:
57 - Information module for Organizations Assurance Alerts Overview Info.
58 - Category query parameter. Optional parameter to filter by category.
59 type: str
60 serials:
61 description:
62 - Information module for Organizations Assurance Alerts Overview Info.
63 - Serials query parameter. Optional parameter to filter by primary device serial.
64 elements: str
65 type: list
66 deviceTypes:
67 description:
68 - Information module for Organizations Assurance Alerts Overview Info.
69 - DeviceTypes query parameter. Optional parameter to filter by device types.
70 elements: str
71 type: list
72 deviceTags:
73 description:
74 - Information module for Organizations Assurance Alerts Overview Info.
75 - DeviceTags query parameter. Optional parameter to filter by device tags.
76 elements: str
77 type: list
78 active:
79 description:
80 - Information module for Organizations Assurance Alerts Overview Info.
81 - Active query parameter. Optional parameter to filter by active alerts defaults
82 to true.
83 type: bool
84 dismissed:
85 description:
86 - Information module for Organizations Assurance Alerts Overview Info.
87 - Dismissed query parameter. Optional parameter to filter by dismissed alerts
88 defaults to false.
89 type: bool
90 resolved:
91 description:
92 - Information module for Organizations Assurance Alerts Overview Info.
93 - Resolved query parameter. Optional parameter to filter by resolved alerts
94 defaults to false.
95 type: bool
96 suppressAlertsForOfflineNodes:
97 description:
98 - Information module for Organizations Assurance Alerts Overview Info.
99 - >
100 SuppressAlertsForOfflineNodes query parameter. When set to true the api will
101 only return connectivity alerts for a given device if that device is in an
102 offline state. This only applies to devices. This is ignored when resolved
103 is true. Example If a Switch has a VLan Mismatch and is Unreachable. Only
104 the Unreachable alert will be returned. Defaults to false.
105 type: bool
106 requirements:
107 - meraki >= 2.4.9
108 - python >= 3.5
109 seealso:
110 - name: Cisco Meraki documentation for organizations getOrganizationAssuranceAlertsOverview
111 description: Complete reference of the getOrganizationAssuranceAlertsOverview
112 API.
113 link: https://developer.cisco.com/meraki/api-v1/#!get-organization-assurance-alerts-overview
114 notes:
115 - SDK Method used are
116 organizations.Organizations.get_organization_assurance_alerts_overview,
117 - Paths used are
118 get /organizations/{organizationId}/assurance/alerts/overview,
119 """
120
121 EXAMPLES = r"""
122 - name: Get all organizations _assurance _alerts _overview
123 cisco.meraki.organizations_assurance_alerts_overview_info:
124 meraki_api_key: "{{ meraki_api_key }}"
125 meraki_base_url: "{{ meraki_base_url }}"
126 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
127 meraki_certificate_path: "{{ meraki_certificate_path }}"
128 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
129 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
130 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
131 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
132 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
133 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
134 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
135 meraki_output_log: "{{ meraki_output_log }}"
136 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
137 meraki_log_path: "{{ meraki_log_path }}"
138 meraki_print_console: "{{ meraki_print_console }}"
139 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
140 meraki_simulate: "{{ meraki_simulate }}"
141 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
142 meraki_caller: "{{ meraki_caller }}"
143 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
144 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
145 networkId: string
146 severity: string
147 types: []
148 tsStart: string
149 tsEnd: string
150 category: string
151 serials: []
152 deviceTypes: []
153 deviceTags: []
154 active: true
155 dismissed: true
156 resolved: true
157 suppressAlertsForOfflineNodes: true
158 organizationId: string
159 register: result
160 """
161 RETURN = r"""
162 meraki_response:
163 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
164 returned: always
165 type: dict
166 sample: >
167 {
168 "total": 0,
169 "bySeverity": [
170 {
171 "type": "string",
172 "count": 0
173 }
174 ]
175 }
176 """