xautomata-hive 3.0.3__py3-none-any.whl → 3.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hive/api.py +124 -43
- hive/cookbook/acl_docs.py +1 -1
- hive/cookbook/acl_overrides.py +22 -1
- hive/cookbook/analytics.py +11 -1
- hive/cookbook/anomalies.py +30 -1
- hive/cookbook/calendars.py +95 -1
- hive/cookbook/contacts.py +114 -1
- hive/cookbook/customers.py +293 -7
- hive/cookbook/dashboards.py +82 -1
- hive/cookbook/dispatchers.py +117 -1
- hive/cookbook/downtimes.py +100 -1
- hive/cookbook/external_tickets.py +117 -1
- hive/cookbook/firmware_updates.py +20 -1
- hive/cookbook/groups.py +88 -1
- hive/cookbook/last_status.py +48 -2
- hive/cookbook/login.py +163 -1
- hive/cookbook/messages.py +35 -1
- hive/cookbook/metric_ingest.py +1 -1
- hive/cookbook/metric_types.py +71 -1
- hive/cookbook/metrics.py +77 -1
- hive/cookbook/notification_provider_types.py +32 -1
- hive/cookbook/notification_providers.py +28 -1
- hive/cookbook/objects.py +95 -1
- hive/cookbook/opening_reasons.py +33 -1
- hive/cookbook/probe_types.py +31 -1
- hive/cookbook/probes.py +70 -1
- hive/cookbook/probes_log_ingest.py +5 -1
- hive/cookbook/profile_topics.py +24 -1
- hive/cookbook/reason_for_closure.py +36 -6
- hive/cookbook/retention_rules.py +30 -1
- hive/cookbook/schedules.py +20 -1
- hive/cookbook/services.py +114 -2
- hive/cookbook/sites.py +93 -1
- hive/cookbook/tree_hierarchy.py +89 -1
- hive/cookbook/ts_cost_azure_raw.py +154 -1
- hive/cookbook/ts_cost_management.py +136 -114
- hive/cookbook/ts_metric_status.py +20 -1
- hive/cookbook/ts_metric_value.py +19 -1
- hive/cookbook/ts_ntop_flows.py +25 -1
- hive/cookbook/ts_service_status.py +48 -2
- hive/cookbook/ts_service_value.py +43 -1
- hive/cookbook/users.py +174 -3
- hive/cookbook/users_notifications.py +109 -0
- hive/cookbook/virtual_domains.py +47 -1
- hive/cookbook/webhooks.py +21 -1
- hive/cookbook/widget_groups.py +39 -1
- hive/cookbook/widgets.py +60 -1
- hive/version.py +1 -1
- {xautomata_hive-3.0.3.dist-info → xautomata_hive-3.2.0.dist-info}/METADATA +1 -1
- xautomata_hive-3.2.0.dist-info/RECORD +58 -0
- {xautomata_hive-3.0.3.dist-info → xautomata_hive-3.2.0.dist-info}/WHEEL +1 -1
- xautomata_hive-3.0.3.dist-info/RECORD +0 -57
- {xautomata_hive-3.0.3.dist-info → xautomata_hive-3.2.0.dist-info}/LICENSE +0 -0
- {xautomata_hive-3.0.3.dist-info → xautomata_hive-3.2.0.dist-info}/top_level.txt +0 -0
hive/cookbook/dashboards.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
from hive.api import ApiManager, handling_single_page_methods
|
1
|
+
from hive.api import ApiManager, handling_single_page_methods, warning_wrong_parameters
|
2
2
|
|
3
3
|
|
4
4
|
class Dashboards(ApiManager):
|
@@ -33,6 +33,18 @@ class Dashboards(ApiManager):
|
|
33
33
|
Returns: list"""
|
34
34
|
if kwargs is None:
|
35
35
|
kwargs = dict()
|
36
|
+
official_params_list = ['sort_by', 'null_fields',
|
37
|
+
'uuid_origin_dashboard', 'name', 'description', 'type',
|
38
|
+
'username', 'profile', 'priority', 'refresh_interval', 'skip',
|
39
|
+
'limit', 'like', 'join', 'count']
|
40
|
+
params.get('sort_by'), params.get('null_fields'), params.get(
|
41
|
+
'uuid_origin_dashboard'), params.get('name'), params.get(
|
42
|
+
'description'), params.get('type'), params.get('username'
|
43
|
+
), params.get('profile'), params.get('priority'), params.get(
|
44
|
+
'refresh_interval'), params.get('skip'), params.get('limit'
|
45
|
+
), params.get('like'), params.get('join'), params.get('count')
|
46
|
+
warning_wrong_parameters(self.dashboards.__name__, params,
|
47
|
+
official_params_list)
|
36
48
|
response = self.execute('GET', path=f'/dashboards/', single_page=
|
37
49
|
single_page, page_size=page_size, warm_start=warm_start, params
|
38
50
|
=params, **kwargs)
|
@@ -56,6 +68,15 @@ class Dashboards(ApiManager):
|
|
56
68
|
Returns: list"""
|
57
69
|
if kwargs is None:
|
58
70
|
kwargs = dict()
|
71
|
+
official_payload_list = ['name', 'type', 'username', 'description',
|
72
|
+
'profile', 'priority', 'refresh_interval', 'image_name',
|
73
|
+
'uuid_origin_dashboard']
|
74
|
+
payload.get('name'), payload.get('type'), payload.get('username'
|
75
|
+
), payload.get('description'), payload.get('profile'), payload.get(
|
76
|
+
'priority'), payload.get('refresh_interval'), payload.get(
|
77
|
+
'image_name'), payload.get('uuid_origin_dashboard')
|
78
|
+
warning_wrong_parameters(self.dashboards_create.__name__, payload,
|
79
|
+
official_payload_list)
|
59
80
|
response = self.execute('POST', path=f'/dashboards/', payload=
|
60
81
|
payload, **kwargs)
|
61
82
|
return response
|
@@ -75,6 +96,10 @@ class Dashboards(ApiManager):
|
|
75
96
|
kwargs = dict()
|
76
97
|
kwargs, params = handling_single_page_methods(kwargs=kwargs, params
|
77
98
|
=params)
|
99
|
+
official_params_list = ['join']
|
100
|
+
params.get('join')
|
101
|
+
warning_wrong_parameters(self.dashboard.__name__, params,
|
102
|
+
official_params_list)
|
78
103
|
response = self.execute('GET', path=f'/dashboards/{uuid}',
|
79
104
|
warm_start=warm_start, params=params, **kwargs)
|
80
105
|
return response
|
@@ -98,6 +123,14 @@ class Dashboards(ApiManager):
|
|
98
123
|
Returns: list"""
|
99
124
|
if kwargs is None:
|
100
125
|
kwargs = dict()
|
126
|
+
official_payload_list = ['name', 'type', 'username', 'description',
|
127
|
+
'profile', 'priority', 'refresh_interval', 'image_name']
|
128
|
+
payload.get('name'), payload.get('type'), payload.get('username'
|
129
|
+
), payload.get('description'), payload.get('profile'), payload.get(
|
130
|
+
'priority'), payload.get('refresh_interval'), payload.get(
|
131
|
+
'image_name')
|
132
|
+
warning_wrong_parameters(self.dashboards_put.__name__, payload,
|
133
|
+
official_payload_list)
|
101
134
|
response = self.execute('PUT', path=f'/dashboards/{uuid}', payload=
|
102
135
|
payload, **kwargs)
|
103
136
|
return response
|
@@ -139,6 +172,10 @@ class Dashboards(ApiManager):
|
|
139
172
|
Returns: list"""
|
140
173
|
if kwargs is None:
|
141
174
|
kwargs = dict()
|
175
|
+
official_payload_list = ['image']
|
176
|
+
payload.get('image')
|
177
|
+
warning_wrong_parameters(self.dashboards_image_put.__name__,
|
178
|
+
payload, official_payload_list)
|
142
179
|
response = self.execute('PUT', path=f'/dashboards/{uuid}/image',
|
143
180
|
payload=payload, **kwargs)
|
144
181
|
return response
|
@@ -156,6 +193,7 @@ class Dashboards(ApiManager):
|
|
156
193
|
**params: additional parameters for the API.
|
157
194
|
Keyword Args:
|
158
195
|
not_in (boolean optional): additional filter - parameter
|
196
|
+
name (string optional): additional filter - parameter
|
159
197
|
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
160
198
|
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
161
199
|
like (boolean optional): Se True, eventuali filtri richiesti dalla API vengono presi come porzioni di testo, se False il matching sul campo dei filtri deve essere esatto. Default to True. - parameter
|
@@ -164,6 +202,13 @@ class Dashboards(ApiManager):
|
|
164
202
|
Returns: list"""
|
165
203
|
if kwargs is None:
|
166
204
|
kwargs = dict()
|
205
|
+
official_params_list = ['not_in', 'name', 'skip', 'limit', 'like',
|
206
|
+
'join', 'count']
|
207
|
+
params.get('not_in'), params.get('name'), params.get('skip'
|
208
|
+
), params.get('limit'), params.get('like'), params.get('join'
|
209
|
+
), params.get('count')
|
210
|
+
warning_wrong_parameters(self.dashboards_users.__name__, params,
|
211
|
+
official_params_list)
|
167
212
|
response = self.execute('GET', path=f'/dashboards/{uuid}/users',
|
168
213
|
single_page=single_page, page_size=page_size, warm_start=
|
169
214
|
warm_start, params=params, **kwargs)
|
@@ -210,6 +255,7 @@ class Dashboards(ApiManager):
|
|
210
255
|
**params: additional parameters for the API.
|
211
256
|
Keyword Args:
|
212
257
|
not_in (boolean optional): additional filter - parameter
|
258
|
+
name (string optional): additional filter - parameter
|
213
259
|
index (integer optional): additional filter - parameter
|
214
260
|
width (integer optional): additional filter - parameter
|
215
261
|
height (integer optional): additional filter - parameter
|
@@ -223,6 +269,15 @@ class Dashboards(ApiManager):
|
|
223
269
|
Returns: list"""
|
224
270
|
if kwargs is None:
|
225
271
|
kwargs = dict()
|
272
|
+
official_params_list = ['not_in', 'name', 'index', 'width',
|
273
|
+
'height', 'grid_x', 'grid_y', 'skip', 'limit', 'like', 'join',
|
274
|
+
'count']
|
275
|
+
params.get('not_in'), params.get('name'), params.get('index'
|
276
|
+
), params.get('width'), params.get('height'), params.get('grid_x'
|
277
|
+
), params.get('grid_y'), params.get('skip'), params.get('limit'
|
278
|
+
), params.get('like'), params.get('join'), params.get('count')
|
279
|
+
warning_wrong_parameters(self.dashboards_widgets.__name__, params,
|
280
|
+
official_params_list)
|
226
281
|
response = self.execute('GET', path=f'/dashboards/{uuid}/widgets',
|
227
282
|
single_page=single_page, page_size=page_size, warm_start=
|
228
283
|
warm_start, params=params, **kwargs)
|
@@ -246,6 +301,13 @@ class Dashboards(ApiManager):
|
|
246
301
|
Returns: list"""
|
247
302
|
if kwargs is None:
|
248
303
|
kwargs = dict()
|
304
|
+
official_payload_list = ['index', 'width', 'height', 'grid_x',
|
305
|
+
'grid_y', 'settings']
|
306
|
+
payload.get('index'), payload.get('width'), payload.get('height'
|
307
|
+
), payload.get('grid_x'), payload.get('grid_y'), payload.get(
|
308
|
+
'settings')
|
309
|
+
warning_wrong_parameters(self.dashboards_widgets_create.__name__,
|
310
|
+
payload, official_payload_list)
|
249
311
|
response = self.execute('POST', path=
|
250
312
|
f'/dashboards/{uuid}/widgets/{uuid_widget}', payload=payload,
|
251
313
|
**kwargs)
|
@@ -268,6 +330,13 @@ class Dashboards(ApiManager):
|
|
268
330
|
Returns: list"""
|
269
331
|
if kwargs is None:
|
270
332
|
kwargs = dict()
|
333
|
+
official_payload_list = ['index', 'width', 'height', 'grid_x',
|
334
|
+
'grid_y', 'settings']
|
335
|
+
payload.get('index'), payload.get('width'), payload.get('height'
|
336
|
+
), payload.get('grid_x'), payload.get('grid_y'), payload.get(
|
337
|
+
'settings')
|
338
|
+
warning_wrong_parameters(self.dashboards_dashboard_widget_put.
|
339
|
+
__name__, payload, official_payload_list)
|
271
340
|
response = self.execute('PUT', path=
|
272
341
|
f'/dashboards/dashboard_widget/{uuid}', payload=payload, **kwargs)
|
273
342
|
return response
|
@@ -309,6 +378,10 @@ class Dashboards(ApiManager):
|
|
309
378
|
Returns: list"""
|
310
379
|
if kwargs is None:
|
311
380
|
kwargs = dict()
|
381
|
+
official_params_list = ['join']
|
382
|
+
params.get('join')
|
383
|
+
warning_wrong_parameters(self.dashboards_bulk.__name__, params,
|
384
|
+
official_params_list)
|
312
385
|
response = self.execute('POST', path=f'/dashboards/bulk/read/',
|
313
386
|
single_page=single_page, page_size=page_size, warm_start=
|
314
387
|
warm_start, params=params, payload=payload, **kwargs)
|
@@ -346,6 +419,10 @@ class Dashboards(ApiManager):
|
|
346
419
|
Returns: list"""
|
347
420
|
if kwargs is None:
|
348
421
|
kwargs = dict()
|
422
|
+
official_params_list = ['best_effort']
|
423
|
+
params.get('best_effort')
|
424
|
+
warning_wrong_parameters(self.dashboards_create_bulk.__name__,
|
425
|
+
params, official_params_list)
|
349
426
|
response = self.execute('POST', path=f'/dashboards/bulk/create/',
|
350
427
|
single_page=single_page, page_size=page_size, params=params,
|
351
428
|
payload=payload, **kwargs)
|
@@ -406,6 +483,10 @@ class Dashboards(ApiManager):
|
|
406
483
|
Returns: list"""
|
407
484
|
if kwargs is None:
|
408
485
|
kwargs = dict()
|
486
|
+
official_params_list = ['best_effort']
|
487
|
+
params.get('best_effort')
|
488
|
+
warning_wrong_parameters(self.dashboards_widgets_create_bulk.
|
489
|
+
__name__, params, official_params_list)
|
409
490
|
response = self.execute('POST', path=
|
410
491
|
f'/dashboards/bulk/create/widgets', single_page=single_page,
|
411
492
|
page_size=page_size, params=params, payload=payload, **kwargs)
|
hive/cookbook/dispatchers.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
from hive.api import ApiManager, handling_single_page_methods
|
1
|
+
from hive.api import ApiManager, handling_single_page_methods, warning_wrong_parameters
|
2
2
|
|
3
3
|
|
4
4
|
class Dispatchers(ApiManager):
|
@@ -32,6 +32,19 @@ class Dispatchers(ApiManager):
|
|
32
32
|
Returns: list"""
|
33
33
|
if kwargs is None:
|
34
34
|
kwargs = dict()
|
35
|
+
official_params_list = ['sort_by', 'null_fields',
|
36
|
+
'uuid_notification_provider', 'uuid_calendar', 'uuid_message',
|
37
|
+
'uuid_opening_reason', 'uuid_reason_for_closure', 'code',
|
38
|
+
'description', 'skip', 'limit', 'like', 'join', 'count']
|
39
|
+
params.get('sort_by'), params.get('null_fields'), params.get(
|
40
|
+
'uuid_notification_provider'), params.get('uuid_calendar'
|
41
|
+
), params.get('uuid_message'), params.get('uuid_opening_reason'
|
42
|
+
), params.get('uuid_reason_for_closure'), params.get('code'
|
43
|
+
), params.get('description'), params.get('skip'), params.get(
|
44
|
+
'limit'), params.get('like'), params.get('join'), params.get(
|
45
|
+
'count')
|
46
|
+
warning_wrong_parameters(self.dispatchers.__name__, params,
|
47
|
+
official_params_list)
|
35
48
|
response = self.execute('GET', path=f'/dispatchers/', single_page=
|
36
49
|
single_page, page_size=page_size, warm_start=warm_start, params
|
37
50
|
=params, **kwargs)
|
@@ -59,6 +72,19 @@ class Dispatchers(ApiManager):
|
|
59
72
|
Returns: list"""
|
60
73
|
if kwargs is None:
|
61
74
|
kwargs = dict()
|
75
|
+
official_payload_list = ['uuid_notification_provider',
|
76
|
+
'uuid_calendar', 'uuid_message', 'uuid_opening_reason',
|
77
|
+
'uuid_reason_for_closure', 'code', 'description', 'delay',
|
78
|
+
'status', 'country', 'state_province', 'data_profile',
|
79
|
+
'remember_it']
|
80
|
+
payload.get('uuid_notification_provider'), payload.get('uuid_calendar'
|
81
|
+
), payload.get('uuid_message'), payload.get('uuid_opening_reason'
|
82
|
+
), payload.get('uuid_reason_for_closure'), payload.get('code'
|
83
|
+
), payload.get('description'), payload.get('delay'), payload.get(
|
84
|
+
'status'), payload.get('country'), payload.get('state_province'
|
85
|
+
), payload.get('data_profile'), payload.get('remember_it')
|
86
|
+
warning_wrong_parameters(self.dispatchers_create.__name__, payload,
|
87
|
+
official_payload_list)
|
62
88
|
response = self.execute('POST', path=f'/dispatchers/', payload=
|
63
89
|
payload, **kwargs)
|
64
90
|
return response
|
@@ -78,6 +104,10 @@ class Dispatchers(ApiManager):
|
|
78
104
|
kwargs = dict()
|
79
105
|
kwargs, params = handling_single_page_methods(kwargs=kwargs, params
|
80
106
|
=params)
|
107
|
+
official_params_list = ['join']
|
108
|
+
params.get('join')
|
109
|
+
warning_wrong_parameters(self.dispatcher.__name__, params,
|
110
|
+
official_params_list)
|
81
111
|
response = self.execute('GET', path=f'/dispatchers/{uuid}',
|
82
112
|
warm_start=warm_start, params=params, **kwargs)
|
83
113
|
return response
|
@@ -106,6 +136,19 @@ class Dispatchers(ApiManager):
|
|
106
136
|
Returns: list"""
|
107
137
|
if kwargs is None:
|
108
138
|
kwargs = dict()
|
139
|
+
official_payload_list = ['uuid_notification_provider',
|
140
|
+
'uuid_calendar', 'uuid_message', 'uuid_opening_reason',
|
141
|
+
'uuid_reason_for_closure', 'code', 'description', 'delay',
|
142
|
+
'status', 'country', 'state_province', 'data_profile',
|
143
|
+
'remember_it']
|
144
|
+
payload.get('uuid_notification_provider'), payload.get('uuid_calendar'
|
145
|
+
), payload.get('uuid_message'), payload.get('uuid_opening_reason'
|
146
|
+
), payload.get('uuid_reason_for_closure'), payload.get('code'
|
147
|
+
), payload.get('description'), payload.get('delay'), payload.get(
|
148
|
+
'status'), payload.get('country'), payload.get('state_province'
|
149
|
+
), payload.get('data_profile'), payload.get('remember_it')
|
150
|
+
warning_wrong_parameters(self.dispatchers_put.__name__, payload,
|
151
|
+
official_payload_list)
|
109
152
|
response = self.execute('PUT', path=f'/dispatchers/{uuid}', payload
|
110
153
|
=payload, **kwargs)
|
111
154
|
return response
|
@@ -135,6 +178,7 @@ class Dispatchers(ApiManager):
|
|
135
178
|
**params: additional parameters for the API.
|
136
179
|
Keyword Args:
|
137
180
|
not_in (boolean optional): additional filter - parameter
|
181
|
+
name (string optional): additional filter - parameter
|
138
182
|
send_email (boolean optional): additional filter - parameter
|
139
183
|
role_email (None optional): additional filter - parameter
|
140
184
|
send_sms (boolean optional): additional filter - parameter
|
@@ -146,6 +190,14 @@ class Dispatchers(ApiManager):
|
|
146
190
|
Returns: list"""
|
147
191
|
if kwargs is None:
|
148
192
|
kwargs = dict()
|
193
|
+
official_params_list = ['not_in', 'name', 'send_email',
|
194
|
+
'role_email', 'send_sms', 'skip', 'limit', 'like', 'join', 'count']
|
195
|
+
params.get('not_in'), params.get('name'), params.get('send_email'
|
196
|
+
), params.get('role_email'), params.get('send_sms'), params.get(
|
197
|
+
'skip'), params.get('limit'), params.get('like'), params.get('join'
|
198
|
+
), params.get('count')
|
199
|
+
warning_wrong_parameters(self.dispatchers_contacts.__name__, params,
|
200
|
+
official_params_list)
|
149
201
|
response = self.execute('GET', path=f'/dispatchers/{uuid}/contacts',
|
150
202
|
single_page=single_page, page_size=page_size, warm_start=
|
151
203
|
warm_start, params=params, **kwargs)
|
@@ -167,6 +219,12 @@ class Dispatchers(ApiManager):
|
|
167
219
|
Returns: list"""
|
168
220
|
if kwargs is None:
|
169
221
|
kwargs = dict()
|
222
|
+
official_payload_list = ['send_email', 'role_email', 'send_sms',
|
223
|
+
'endpoint']
|
224
|
+
payload.get('send_email'), payload.get('role_email'), payload.get(
|
225
|
+
'send_sms'), payload.get('endpoint')
|
226
|
+
warning_wrong_parameters(self.dispatchers_contacts_put.__name__,
|
227
|
+
payload, official_payload_list)
|
170
228
|
response = self.execute('PUT', path=
|
171
229
|
f'/dispatchers/{uuid}/contacts/{uuid_contact}', payload=payload,
|
172
230
|
**kwargs)
|
@@ -188,6 +246,12 @@ class Dispatchers(ApiManager):
|
|
188
246
|
Returns: list"""
|
189
247
|
if kwargs is None:
|
190
248
|
kwargs = dict()
|
249
|
+
official_payload_list = ['send_email', 'role_email', 'send_sms',
|
250
|
+
'endpoint']
|
251
|
+
payload.get('send_email'), payload.get('role_email'), payload.get(
|
252
|
+
'send_sms'), payload.get('endpoint')
|
253
|
+
warning_wrong_parameters(self.dispatchers_contacts_create.__name__,
|
254
|
+
payload, official_payload_list)
|
191
255
|
response = self.execute('POST', path=
|
192
256
|
f'/dispatchers/{uuid}/contacts/{uuid_contact}', payload=payload,
|
193
257
|
**kwargs)
|
@@ -220,6 +284,7 @@ class Dispatchers(ApiManager):
|
|
220
284
|
**params: additional parameters for the API.
|
221
285
|
Keyword Args:
|
222
286
|
not_in (boolean optional): additional filter - parameter
|
287
|
+
name (string optional): additional filter - parameter
|
223
288
|
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
224
289
|
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
225
290
|
like (boolean optional): Se True, eventuali filtri richiesti dalla API vengono presi come porzioni di testo, se False il matching sul campo dei filtri deve essere esatto. Default to True. - parameter
|
@@ -228,6 +293,13 @@ class Dispatchers(ApiManager):
|
|
228
293
|
Returns: list"""
|
229
294
|
if kwargs is None:
|
230
295
|
kwargs = dict()
|
296
|
+
official_params_list = ['not_in', 'name', 'skip', 'limit', 'like',
|
297
|
+
'join', 'count']
|
298
|
+
params.get('not_in'), params.get('name'), params.get('skip'
|
299
|
+
), params.get('limit'), params.get('like'), params.get('join'
|
300
|
+
), params.get('count')
|
301
|
+
warning_wrong_parameters(self.dispatchers_groups.__name__, params,
|
302
|
+
official_params_list)
|
231
303
|
response = self.execute('GET', path=f'/dispatchers/{uuid}/groups',
|
232
304
|
single_page=single_page, page_size=page_size, warm_start=
|
233
305
|
warm_start, params=params, **kwargs)
|
@@ -274,6 +346,7 @@ class Dispatchers(ApiManager):
|
|
274
346
|
**params: additional parameters for the API.
|
275
347
|
Keyword Args:
|
276
348
|
not_in (boolean optional): additional filter - parameter
|
349
|
+
name (string optional): additional filter - parameter
|
277
350
|
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
278
351
|
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
279
352
|
like (boolean optional): Se True, eventuali filtri richiesti dalla API vengono presi come porzioni di testo, se False il matching sul campo dei filtri deve essere esatto. Default to True. - parameter
|
@@ -282,6 +355,13 @@ class Dispatchers(ApiManager):
|
|
282
355
|
Returns: list"""
|
283
356
|
if kwargs is None:
|
284
357
|
kwargs = dict()
|
358
|
+
official_params_list = ['not_in', 'name', 'skip', 'limit', 'like',
|
359
|
+
'join', 'count']
|
360
|
+
params.get('not_in'), params.get('name'), params.get('skip'
|
361
|
+
), params.get('limit'), params.get('like'), params.get('join'
|
362
|
+
), params.get('count')
|
363
|
+
warning_wrong_parameters(self.dispatchers_objects.__name__, params,
|
364
|
+
official_params_list)
|
285
365
|
response = self.execute('GET', path=f'/dispatchers/{uuid}/objects',
|
286
366
|
single_page=single_page, page_size=page_size, warm_start=
|
287
367
|
warm_start, params=params, **kwargs)
|
@@ -328,6 +408,7 @@ class Dispatchers(ApiManager):
|
|
328
408
|
**params: additional parameters for the API.
|
329
409
|
Keyword Args:
|
330
410
|
not_in (boolean optional): additional filter - parameter
|
411
|
+
name (string optional): additional filter - parameter
|
331
412
|
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
332
413
|
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
333
414
|
like (boolean optional): Se True, eventuali filtri richiesti dalla API vengono presi come porzioni di testo, se False il matching sul campo dei filtri deve essere esatto. Default to True. - parameter
|
@@ -336,6 +417,13 @@ class Dispatchers(ApiManager):
|
|
336
417
|
Returns: list"""
|
337
418
|
if kwargs is None:
|
338
419
|
kwargs = dict()
|
420
|
+
official_params_list = ['not_in', 'name', 'skip', 'limit', 'like',
|
421
|
+
'join', 'count']
|
422
|
+
params.get('not_in'), params.get('name'), params.get('skip'
|
423
|
+
), params.get('limit'), params.get('like'), params.get('join'
|
424
|
+
), params.get('count')
|
425
|
+
warning_wrong_parameters(self.dispatchers_metrics.__name__, params,
|
426
|
+
official_params_list)
|
339
427
|
response = self.execute('GET', path=f'/dispatchers/{uuid}/metrics',
|
340
428
|
single_page=single_page, page_size=page_size, warm_start=
|
341
429
|
warm_start, params=params, **kwargs)
|
@@ -382,6 +470,7 @@ class Dispatchers(ApiManager):
|
|
382
470
|
**params: additional parameters for the API.
|
383
471
|
Keyword Args:
|
384
472
|
not_in (boolean optional): additional filter - parameter
|
473
|
+
name (string optional): additional filter - parameter
|
385
474
|
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
386
475
|
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
387
476
|
like (boolean optional): Se True, eventuali filtri richiesti dalla API vengono presi come porzioni di testo, se False il matching sul campo dei filtri deve essere esatto. Default to True. - parameter
|
@@ -390,6 +479,13 @@ class Dispatchers(ApiManager):
|
|
390
479
|
Returns: list"""
|
391
480
|
if kwargs is None:
|
392
481
|
kwargs = dict()
|
482
|
+
official_params_list = ['not_in', 'name', 'skip', 'limit', 'like',
|
483
|
+
'join', 'count']
|
484
|
+
params.get('not_in'), params.get('name'), params.get('skip'
|
485
|
+
), params.get('limit'), params.get('like'), params.get('join'
|
486
|
+
), params.get('count')
|
487
|
+
warning_wrong_parameters(self.dispatchers_metric_types.__name__,
|
488
|
+
params, official_params_list)
|
393
489
|
response = self.execute('GET', path=
|
394
490
|
f'/dispatchers/{uuid}/metric_types', single_page=single_page,
|
395
491
|
page_size=page_size, warm_start=warm_start, params=params, **kwargs
|
@@ -437,6 +533,7 @@ class Dispatchers(ApiManager):
|
|
437
533
|
**params: additional parameters for the API.
|
438
534
|
Keyword Args:
|
439
535
|
not_in (boolean optional): additional filter - parameter
|
536
|
+
name (string optional): additional filter - parameter
|
440
537
|
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
441
538
|
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
442
539
|
like (boolean optional): Se True, eventuali filtri richiesti dalla API vengono presi come porzioni di testo, se False il matching sul campo dei filtri deve essere esatto. Default to True. - parameter
|
@@ -445,6 +542,13 @@ class Dispatchers(ApiManager):
|
|
445
542
|
Returns: list"""
|
446
543
|
if kwargs is None:
|
447
544
|
kwargs = dict()
|
545
|
+
official_params_list = ['not_in', 'name', 'skip', 'limit', 'like',
|
546
|
+
'join', 'count']
|
547
|
+
params.get('not_in'), params.get('name'), params.get('skip'
|
548
|
+
), params.get('limit'), params.get('like'), params.get('join'
|
549
|
+
), params.get('count')
|
550
|
+
warning_wrong_parameters(self.dispatchers_services.__name__, params,
|
551
|
+
official_params_list)
|
448
552
|
response = self.execute('GET', path=f'/dispatchers/{uuid}/services',
|
449
553
|
single_page=single_page, page_size=page_size, warm_start=
|
450
554
|
warm_start, params=params, **kwargs)
|
@@ -502,6 +606,10 @@ class Dispatchers(ApiManager):
|
|
502
606
|
Returns: list"""
|
503
607
|
if kwargs is None:
|
504
608
|
kwargs = dict()
|
609
|
+
official_params_list = ['join']
|
610
|
+
params.get('join')
|
611
|
+
warning_wrong_parameters(self.dispatchers_bulk.__name__, params,
|
612
|
+
official_params_list)
|
505
613
|
response = self.execute('POST', path=f'/dispatchers/bulk/read/',
|
506
614
|
single_page=single_page, page_size=page_size, warm_start=
|
507
615
|
warm_start, params=params, payload=payload, **kwargs)
|
@@ -543,6 +651,10 @@ class Dispatchers(ApiManager):
|
|
543
651
|
Returns: list"""
|
544
652
|
if kwargs is None:
|
545
653
|
kwargs = dict()
|
654
|
+
official_params_list = ['best_effort']
|
655
|
+
params.get('best_effort')
|
656
|
+
warning_wrong_parameters(self.dispatchers_create_bulk.__name__,
|
657
|
+
params, official_params_list)
|
546
658
|
response = self.execute('POST', path=f'/dispatchers/bulk/create/',
|
547
659
|
single_page=single_page, page_size=page_size, params=params,
|
548
660
|
payload=payload, **kwargs)
|
@@ -601,6 +713,10 @@ class Dispatchers(ApiManager):
|
|
601
713
|
Returns: list"""
|
602
714
|
if kwargs is None:
|
603
715
|
kwargs = dict()
|
716
|
+
official_params_list = ['best_effort']
|
717
|
+
params.get('best_effort')
|
718
|
+
warning_wrong_parameters(self.dispatchers_contacts_create_bulk.
|
719
|
+
__name__, params, official_params_list)
|
604
720
|
response = self.execute('POST', path=
|
605
721
|
f'/dispatchers/bulk/create/contacts', single_page=single_page,
|
606
722
|
page_size=page_size, params=params, payload=payload, **kwargs)
|