Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/devices_appliance_performance_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_appliance_performance_info
9 short_description: Information module for devices _appliance _performance
10 description:
11 - Information module for Devices Appliance Performance Info.
12 - Get all devices _appliance _performance.
13 - >
14 Return the performance score for a single MX. Only primary MX devices supported.
15 If no data is available, a 204 error code is returned.
16 version_added: '1.0.0'
17 extends_documentation_fragment:
18 - cisco.meraki.module_info
19 author: Francisco Munoz (@fmunoz)
20 options:
21 headers:
22 description: Additional headers.
23 type: dict
24 serial:
25 description:
26 - Information module for Devices Appliance Performance Info.
27 - Serial path parameter.
28 type: str
29 t0:
30 description:
31 - Information module for Devices Appliance Performance Info.
32 - T0 query parameter. The beginning of the timespan for the data. The maximum
33 lookback period is 30 days from today.
34 type: str
35 t1:
36 description:
37 - Information module for Devices Appliance Performance Info.
38 - T1 query parameter. The end of the timespan for the data. T1 can be a maximum
39 of 14 days after t0.
40 type: str
41 timespan:
42 description:
43 - Information module for Devices Appliance Performance Info.
44 - >
45 Timespan query parameter. The timespan for which the information will be fetched.
46 If specifying timespan, do not specify parameters t0 and t1. The value must
47 be in seconds and be greater than or equal to 30 minutes and be less than
48 or equal to 14 days. The default is 30 minutes.
49 type: float
50 requirements:
51 - meraki >= 2.4.9
52 - python >= 3.5
53 seealso:
54 - name: Cisco Meraki documentation for appliance getDeviceAppliancePerformance
55 description: Complete reference of the getDeviceAppliancePerformance API.
56 link: https://developer.cisco.com/meraki/api-v1/#!get-device-appliance-performance
57 notes:
58 - SDK Method used are
59 appliance.Appliance.get_device_appliance_performance,
60 - Paths used are
61 get /devices/{serial}/appliance/performance,
62 """
63
64 EXAMPLES = r"""
65 - name: Get all devices _appliance _performance
66 cisco.meraki.devices_appliance_performance_info:
67 meraki_api_key: "{{ meraki_api_key }}"
68 meraki_base_url: "{{ meraki_base_url }}"
69 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
70 meraki_certificate_path: "{{ meraki_certificate_path }}"
71 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
72 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
73 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
74 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
75 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
76 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
77 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
78 meraki_output_log: "{{ meraki_output_log }}"
79 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
80 meraki_log_path: "{{ meraki_log_path }}"
81 meraki_print_console: "{{ meraki_print_console }}"
82 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
83 meraki_simulate: "{{ meraki_simulate }}"
84 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
85 meraki_caller: "{{ meraki_caller }}"
86 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
87 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
88 t0: string
89 t1: string
90 timespan: 0
91 serial: string
92 register: result
93 """
94 RETURN = r"""
95 meraki_response:
96 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
97 returned: always
98 type: dict
99 sample: >
100 {
101 "perfScore": 0
102 }
103 """