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/downtimes.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 Downtimes(ApiManager):
|
@@ -32,6 +32,17 @@ class Downtimes(ApiManager):
|
|
32
32
|
Returns: list"""
|
33
33
|
if kwargs is None:
|
34
34
|
kwargs = dict()
|
35
|
+
official_params_list = ['sort_by', 'uuid_calendar', 'start', 'end',
|
36
|
+
'status', 'code', 'description', 'country', 'state_province',
|
37
|
+
'null_fields', 'skip', 'limit', 'like', 'join', 'count']
|
38
|
+
params.get('sort_by'), params.get('uuid_calendar'), params.get('start'
|
39
|
+
), params.get('end'), params.get('status'), params.get('code'
|
40
|
+
), params.get('description'), params.get('country'), params.get(
|
41
|
+
'state_province'), params.get('null_fields'), params.get('skip'
|
42
|
+
), params.get('limit'), params.get('like'), params.get('join'
|
43
|
+
), params.get('count')
|
44
|
+
warning_wrong_parameters(self.downtimes.__name__, params,
|
45
|
+
official_params_list)
|
35
46
|
response = self.execute('GET', path=f'/downtimes/', single_page=
|
36
47
|
single_page, page_size=page_size, warm_start=warm_start, params
|
37
48
|
=params, **kwargs)
|
@@ -54,6 +65,14 @@ class Downtimes(ApiManager):
|
|
54
65
|
Returns: list"""
|
55
66
|
if kwargs is None:
|
56
67
|
kwargs = dict()
|
68
|
+
official_payload_list = ['uuid_calendar', 'start', 'end', 'status',
|
69
|
+
'code', 'description', 'country', 'state_province']
|
70
|
+
payload.get('uuid_calendar'), payload.get('start'), payload.get('end'
|
71
|
+
), payload.get('status'), payload.get('code'), payload.get(
|
72
|
+
'description'), payload.get('country'), payload.get(
|
73
|
+
'state_province')
|
74
|
+
warning_wrong_parameters(self.downtimes_create.__name__, payload,
|
75
|
+
official_payload_list)
|
57
76
|
response = self.execute('POST', path=f'/downtimes/', payload=
|
58
77
|
payload, **kwargs)
|
59
78
|
return response
|
@@ -73,6 +92,10 @@ class Downtimes(ApiManager):
|
|
73
92
|
kwargs = dict()
|
74
93
|
kwargs, params = handling_single_page_methods(kwargs=kwargs, params
|
75
94
|
=params)
|
95
|
+
official_params_list = ['join']
|
96
|
+
params.get('join')
|
97
|
+
warning_wrong_parameters(self.downtime.__name__, params,
|
98
|
+
official_params_list)
|
76
99
|
response = self.execute('GET', path=f'/downtimes/{uuid}',
|
77
100
|
warm_start=warm_start, params=params, **kwargs)
|
78
101
|
return response
|
@@ -95,6 +118,14 @@ class Downtimes(ApiManager):
|
|
95
118
|
Returns: list"""
|
96
119
|
if kwargs is None:
|
97
120
|
kwargs = dict()
|
121
|
+
official_payload_list = ['uuid_calendar', 'start', 'end', 'status',
|
122
|
+
'code', 'description', 'country', 'state_province']
|
123
|
+
payload.get('uuid_calendar'), payload.get('start'), payload.get('end'
|
124
|
+
), payload.get('status'), payload.get('code'), payload.get(
|
125
|
+
'description'), payload.get('country'), payload.get(
|
126
|
+
'state_province')
|
127
|
+
warning_wrong_parameters(self.downtimes_put.__name__, payload,
|
128
|
+
official_payload_list)
|
98
129
|
response = self.execute('PUT', path=f'/downtimes/{uuid}', payload=
|
99
130
|
payload, **kwargs)
|
100
131
|
return response
|
@@ -123,6 +154,7 @@ class Downtimes(ApiManager):
|
|
123
154
|
**params: additional parameters for the API.
|
124
155
|
Keyword Args:
|
125
156
|
not_in (boolean optional): additional filter - parameter
|
157
|
+
name (string optional): additional filter - parameter
|
126
158
|
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
127
159
|
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
128
160
|
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
|
@@ -131,6 +163,13 @@ class Downtimes(ApiManager):
|
|
131
163
|
Returns: list"""
|
132
164
|
if kwargs is None:
|
133
165
|
kwargs = dict()
|
166
|
+
official_params_list = ['not_in', 'name', 'skip', 'limit', 'like',
|
167
|
+
'join', 'count']
|
168
|
+
params.get('not_in'), params.get('name'), params.get('skip'
|
169
|
+
), params.get('limit'), params.get('like'), params.get('join'
|
170
|
+
), params.get('count')
|
171
|
+
warning_wrong_parameters(self.downtimes_groups.__name__, params,
|
172
|
+
official_params_list)
|
134
173
|
response = self.execute('GET', path=f'/downtimes/{uuid}/groups',
|
135
174
|
single_page=single_page, page_size=page_size, warm_start=
|
136
175
|
warm_start, params=params, **kwargs)
|
@@ -177,6 +216,7 @@ class Downtimes(ApiManager):
|
|
177
216
|
**params: additional parameters for the API.
|
178
217
|
Keyword Args:
|
179
218
|
not_in (boolean optional): additional filter - parameter
|
219
|
+
name (string optional): additional filter - parameter
|
180
220
|
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
181
221
|
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
182
222
|
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
|
@@ -185,6 +225,13 @@ class Downtimes(ApiManager):
|
|
185
225
|
Returns: list"""
|
186
226
|
if kwargs is None:
|
187
227
|
kwargs = dict()
|
228
|
+
official_params_list = ['not_in', 'name', 'skip', 'limit', 'like',
|
229
|
+
'join', 'count']
|
230
|
+
params.get('not_in'), params.get('name'), params.get('skip'
|
231
|
+
), params.get('limit'), params.get('like'), params.get('join'
|
232
|
+
), params.get('count')
|
233
|
+
warning_wrong_parameters(self.downtimes_objects.__name__, params,
|
234
|
+
official_params_list)
|
188
235
|
response = self.execute('GET', path=f'/downtimes/{uuid}/objects',
|
189
236
|
single_page=single_page, page_size=page_size, warm_start=
|
190
237
|
warm_start, params=params, **kwargs)
|
@@ -231,6 +278,7 @@ class Downtimes(ApiManager):
|
|
231
278
|
**params: additional parameters for the API.
|
232
279
|
Keyword Args:
|
233
280
|
not_in (boolean optional): additional filter - parameter
|
281
|
+
name (string optional): additional filter - parameter
|
234
282
|
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
235
283
|
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
236
284
|
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
|
@@ -239,6 +287,13 @@ class Downtimes(ApiManager):
|
|
239
287
|
Returns: list"""
|
240
288
|
if kwargs is None:
|
241
289
|
kwargs = dict()
|
290
|
+
official_params_list = ['not_in', 'name', 'skip', 'limit', 'like',
|
291
|
+
'join', 'count']
|
292
|
+
params.get('not_in'), params.get('name'), params.get('skip'
|
293
|
+
), params.get('limit'), params.get('like'), params.get('join'
|
294
|
+
), params.get('count')
|
295
|
+
warning_wrong_parameters(self.downtimes_metrics.__name__, params,
|
296
|
+
official_params_list)
|
242
297
|
response = self.execute('GET', path=f'/downtimes/{uuid}/metrics',
|
243
298
|
single_page=single_page, page_size=page_size, warm_start=
|
244
299
|
warm_start, params=params, **kwargs)
|
@@ -285,6 +340,7 @@ class Downtimes(ApiManager):
|
|
285
340
|
**params: additional parameters for the API.
|
286
341
|
Keyword Args:
|
287
342
|
not_in (boolean optional): additional filter - parameter
|
343
|
+
name (string optional): additional filter - parameter
|
288
344
|
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
289
345
|
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
290
346
|
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
|
@@ -293,6 +349,13 @@ class Downtimes(ApiManager):
|
|
293
349
|
Returns: list"""
|
294
350
|
if kwargs is None:
|
295
351
|
kwargs = dict()
|
352
|
+
official_params_list = ['not_in', 'name', 'skip', 'limit', 'like',
|
353
|
+
'join', 'count']
|
354
|
+
params.get('not_in'), params.get('name'), params.get('skip'
|
355
|
+
), params.get('limit'), params.get('like'), params.get('join'
|
356
|
+
), params.get('count')
|
357
|
+
warning_wrong_parameters(self.downtimes_metric_types.__name__,
|
358
|
+
params, official_params_list)
|
296
359
|
response = self.execute('GET', path=
|
297
360
|
f'/downtimes/{uuid}/metric_types', single_page=single_page,
|
298
361
|
page_size=page_size, warm_start=warm_start, params=params, **kwargs
|
@@ -340,6 +403,7 @@ class Downtimes(ApiManager):
|
|
340
403
|
**params: additional parameters for the API.
|
341
404
|
Keyword Args:
|
342
405
|
not_in (boolean optional): additional filter - parameter
|
406
|
+
name (string optional): additional filter - parameter
|
343
407
|
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
344
408
|
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
345
409
|
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
|
@@ -348,6 +412,13 @@ class Downtimes(ApiManager):
|
|
348
412
|
Returns: list"""
|
349
413
|
if kwargs is None:
|
350
414
|
kwargs = dict()
|
415
|
+
official_params_list = ['not_in', 'name', 'skip', 'limit', 'like',
|
416
|
+
'join', 'count']
|
417
|
+
params.get('not_in'), params.get('name'), params.get('skip'
|
418
|
+
), params.get('limit'), params.get('like'), params.get('join'
|
419
|
+
), params.get('count')
|
420
|
+
warning_wrong_parameters(self.downtimes_services.__name__, params,
|
421
|
+
official_params_list)
|
351
422
|
response = self.execute('GET', path=f'/downtimes/{uuid}/services',
|
352
423
|
single_page=single_page, page_size=page_size, warm_start=
|
353
424
|
warm_start, params=params, **kwargs)
|
@@ -405,6 +476,10 @@ class Downtimes(ApiManager):
|
|
405
476
|
Returns: list"""
|
406
477
|
if kwargs is None:
|
407
478
|
kwargs = dict()
|
479
|
+
official_params_list = ['join']
|
480
|
+
params.get('join')
|
481
|
+
warning_wrong_parameters(self.downtimes_bulk.__name__, params,
|
482
|
+
official_params_list)
|
408
483
|
response = self.execute('POST', path=f'/downtimes/bulk/read/',
|
409
484
|
single_page=single_page, page_size=page_size, warm_start=
|
410
485
|
warm_start, params=params, payload=payload, **kwargs)
|
@@ -441,6 +516,10 @@ class Downtimes(ApiManager):
|
|
441
516
|
Returns: list"""
|
442
517
|
if kwargs is None:
|
443
518
|
kwargs = dict()
|
519
|
+
official_params_list = ['best_effort']
|
520
|
+
params.get('best_effort')
|
521
|
+
warning_wrong_parameters(self.downtimes_create_bulk.__name__,
|
522
|
+
params, official_params_list)
|
444
523
|
response = self.execute('POST', path=f'/downtimes/bulk/create/',
|
445
524
|
single_page=single_page, page_size=page_size, params=params,
|
446
525
|
payload=payload, **kwargs)
|
@@ -495,6 +574,10 @@ class Downtimes(ApiManager):
|
|
495
574
|
Returns: list"""
|
496
575
|
if kwargs is None:
|
497
576
|
kwargs = dict()
|
577
|
+
official_params_list = ['best_effort']
|
578
|
+
params.get('best_effort')
|
579
|
+
warning_wrong_parameters(self.downtimes_groups_create_bulk.__name__,
|
580
|
+
params, official_params_list)
|
498
581
|
response = self.execute('POST', path=
|
499
582
|
f'/downtimes/bulk/create/groups', single_page=single_page,
|
500
583
|
page_size=page_size, params=params, payload=payload, **kwargs)
|
@@ -552,6 +635,10 @@ class Downtimes(ApiManager):
|
|
552
635
|
Returns: list"""
|
553
636
|
if kwargs is None:
|
554
637
|
kwargs = dict()
|
638
|
+
official_params_list = ['best_effort']
|
639
|
+
params.get('best_effort')
|
640
|
+
warning_wrong_parameters(self.downtimes_objects_create_bulk.
|
641
|
+
__name__, params, official_params_list)
|
555
642
|
response = self.execute('POST', path=
|
556
643
|
f'/downtimes/bulk/create/objects', single_page=single_page,
|
557
644
|
page_size=page_size, params=params, payload=payload, **kwargs)
|
@@ -609,6 +696,10 @@ class Downtimes(ApiManager):
|
|
609
696
|
Returns: list"""
|
610
697
|
if kwargs is None:
|
611
698
|
kwargs = dict()
|
699
|
+
official_params_list = ['best_effort']
|
700
|
+
params.get('best_effort')
|
701
|
+
warning_wrong_parameters(self.downtimes_metric_types_create_bulk.
|
702
|
+
__name__, params, official_params_list)
|
612
703
|
response = self.execute('POST', path=
|
613
704
|
f'/downtimes/bulk/create/metric_types', single_page=single_page,
|
614
705
|
page_size=page_size, params=params, payload=payload, **kwargs)
|
@@ -666,6 +757,10 @@ class Downtimes(ApiManager):
|
|
666
757
|
Returns: list"""
|
667
758
|
if kwargs is None:
|
668
759
|
kwargs = dict()
|
760
|
+
official_params_list = ['best_effort']
|
761
|
+
params.get('best_effort')
|
762
|
+
warning_wrong_parameters(self.downtimes_metrics_create_bulk.
|
763
|
+
__name__, params, official_params_list)
|
669
764
|
response = self.execute('POST', path=
|
670
765
|
f'/downtimes/bulk/create/metrics', single_page=single_page,
|
671
766
|
page_size=page_size, params=params, payload=payload, **kwargs)
|
@@ -723,6 +818,10 @@ class Downtimes(ApiManager):
|
|
723
818
|
Returns: list"""
|
724
819
|
if kwargs is None:
|
725
820
|
kwargs = dict()
|
821
|
+
official_params_list = ['best_effort']
|
822
|
+
params.get('best_effort')
|
823
|
+
warning_wrong_parameters(self.downtimes_services_create_bulk.
|
824
|
+
__name__, params, official_params_list)
|
726
825
|
response = self.execute('POST', path=
|
727
826
|
f'/downtimes/bulk/create/services', single_page=single_page,
|
728
827
|
page_size=page_size, params=params, payload=payload, **kwargs)
|
@@ -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 ExternalTickets(ApiManager):
|
@@ -52,6 +52,35 @@ class ExternalTickets(ApiManager):
|
|
52
52
|
Returns: list"""
|
53
53
|
if kwargs is None:
|
54
54
|
kwargs = dict()
|
55
|
+
official_params_list = ['sort_by', 'in_sla', 'uuid_customer',
|
56
|
+
'uuid_virtual_domain', 'uuid_object', 'object', 'metric_type',
|
57
|
+
'metric', 'external_itsm', 'external_ticket',
|
58
|
+
'opening_date_start', 'opening_date_end', 'closing_date_start',
|
59
|
+
'closing_date_end', 'ticket_type', 'mode', 'severity',
|
60
|
+
'organization', 'responsibility', 'stage_start_sla_l1',
|
61
|
+
'working_period_l1', 'target_stage_start_sla_l1',
|
62
|
+
'stage_start_sla_l2', 'working_period_l2',
|
63
|
+
'target_stage_start_sla_l2', 'resolution_sla',
|
64
|
+
'working_period_resolution', 'target_period_resolution',
|
65
|
+
'null_fields', 'skip', 'limit', 'like', 'join', 'count']
|
66
|
+
params.get('sort_by'), params.get('in_sla'), params.get('uuid_customer'
|
67
|
+
), params.get('uuid_virtual_domain'), params.get('uuid_object'
|
68
|
+
), params.get('object'), params.get('metric_type'), params.get(
|
69
|
+
'metric'), params.get('external_itsm'), params.get(
|
70
|
+
'external_ticket'), params.get('opening_date_start'), params.get(
|
71
|
+
'opening_date_end'), params.get('closing_date_start'), params.get(
|
72
|
+
'closing_date_end'), params.get('ticket_type'), params.get('mode'
|
73
|
+
), params.get('severity'), params.get('organization'), params.get(
|
74
|
+
'responsibility'), params.get('stage_start_sla_l1'), params.get(
|
75
|
+
'working_period_l1'), params.get('target_stage_start_sla_l1'
|
76
|
+
), params.get('stage_start_sla_l2'), params.get('working_period_l2'
|
77
|
+
), params.get('target_stage_start_sla_l2'), params.get(
|
78
|
+
'resolution_sla'), params.get('working_period_resolution'
|
79
|
+
), params.get('target_period_resolution'), params.get('null_fields'
|
80
|
+
), params.get('skip'), params.get('limit'), params.get('like'
|
81
|
+
), params.get('join'), params.get('count')
|
82
|
+
warning_wrong_parameters(self.external_tickets.__name__, params,
|
83
|
+
official_params_list)
|
55
84
|
response = self.execute('GET', path=f'/external_tickets/',
|
56
85
|
single_page=single_page, page_size=page_size, warm_start=
|
57
86
|
warm_start, params=params, **kwargs)
|
@@ -90,6 +119,30 @@ class ExternalTickets(ApiManager):
|
|
90
119
|
Returns: list"""
|
91
120
|
if kwargs is None:
|
92
121
|
kwargs = dict()
|
122
|
+
official_payload_list = ['uuid_customer', 'uuid_virtual_domain',
|
123
|
+
'uuid_object', 'object', 'metric_type', 'metric',
|
124
|
+
'external_itsm', 'external_ticket', 'opening_date',
|
125
|
+
'closing_date', 'ticket_type', 'mode', 'severity',
|
126
|
+
'organization', 'responsibility', 'stage_start_sla_l1',
|
127
|
+
'working_period_l1', 'target_stage_start_sla_l1',
|
128
|
+
'stage_start_sla_l2', 'working_period_l2',
|
129
|
+
'target_stage_start_sla_l2', 'resolution_sla',
|
130
|
+
'working_period_resolution', 'target_period_resolution']
|
131
|
+
payload.get('uuid_customer'), payload.get('uuid_virtual_domain'
|
132
|
+
), payload.get('uuid_object'), payload.get('object'), payload.get(
|
133
|
+
'metric_type'), payload.get('metric'), payload.get('external_itsm'
|
134
|
+
), payload.get('external_ticket'), payload.get('opening_date'
|
135
|
+
), payload.get('closing_date'), payload.get('ticket_type'
|
136
|
+
), payload.get('mode'), payload.get('severity'), payload.get(
|
137
|
+
'organization'), payload.get('responsibility'), payload.get(
|
138
|
+
'stage_start_sla_l1'), payload.get('working_period_l1'
|
139
|
+
), payload.get('target_stage_start_sla_l1'), payload.get(
|
140
|
+
'stage_start_sla_l2'), payload.get('working_period_l2'
|
141
|
+
), payload.get('target_stage_start_sla_l2'), payload.get(
|
142
|
+
'resolution_sla'), payload.get('working_period_resolution'
|
143
|
+
), payload.get('target_period_resolution')
|
144
|
+
warning_wrong_parameters(self.external_tickets_create.__name__,
|
145
|
+
payload, official_payload_list)
|
93
146
|
response = self.execute('POST', path=f'/external_tickets/', payload
|
94
147
|
=payload, **kwargs)
|
95
148
|
return response
|
@@ -109,6 +162,10 @@ class ExternalTickets(ApiManager):
|
|
109
162
|
kwargs = dict()
|
110
163
|
kwargs, params = handling_single_page_methods(kwargs=kwargs, params
|
111
164
|
=params)
|
165
|
+
official_params_list = ['join']
|
166
|
+
params.get('join')
|
167
|
+
warning_wrong_parameters(self.external_ticket.__name__, params,
|
168
|
+
official_params_list)
|
112
169
|
response = self.execute('GET', path=f'/external_tickets/{uuid}',
|
113
170
|
warm_start=warm_start, params=params, **kwargs)
|
114
171
|
return response
|
@@ -148,6 +205,30 @@ class ExternalTickets(ApiManager):
|
|
148
205
|
Returns: list"""
|
149
206
|
if kwargs is None:
|
150
207
|
kwargs = dict()
|
208
|
+
official_payload_list = ['uuid_customer', 'uuid_virtual_domain',
|
209
|
+
'uuid_object', 'object', 'metric_type', 'metric',
|
210
|
+
'external_itsm', 'external_ticket', 'opening_date',
|
211
|
+
'closing_date', 'ticket_type', 'mode', 'severity',
|
212
|
+
'organization', 'responsibility', 'stage_start_sla_l1',
|
213
|
+
'working_period_l1', 'target_stage_start_sla_l1',
|
214
|
+
'stage_start_sla_l2', 'working_period_l2',
|
215
|
+
'target_stage_start_sla_l2', 'resolution_sla',
|
216
|
+
'working_period_resolution', 'target_period_resolution']
|
217
|
+
payload.get('uuid_customer'), payload.get('uuid_virtual_domain'
|
218
|
+
), payload.get('uuid_object'), payload.get('object'), payload.get(
|
219
|
+
'metric_type'), payload.get('metric'), payload.get('external_itsm'
|
220
|
+
), payload.get('external_ticket'), payload.get('opening_date'
|
221
|
+
), payload.get('closing_date'), payload.get('ticket_type'
|
222
|
+
), payload.get('mode'), payload.get('severity'), payload.get(
|
223
|
+
'organization'), payload.get('responsibility'), payload.get(
|
224
|
+
'stage_start_sla_l1'), payload.get('working_period_l1'
|
225
|
+
), payload.get('target_stage_start_sla_l1'), payload.get(
|
226
|
+
'stage_start_sla_l2'), payload.get('working_period_l2'
|
227
|
+
), payload.get('target_stage_start_sla_l2'), payload.get(
|
228
|
+
'resolution_sla'), payload.get('working_period_resolution'
|
229
|
+
), payload.get('target_period_resolution')
|
230
|
+
warning_wrong_parameters(self.external_tickets_put.__name__,
|
231
|
+
payload, official_payload_list)
|
151
232
|
response = self.execute('PUT', path=f'/external_tickets/{uuid}',
|
152
233
|
payload=payload, **kwargs)
|
153
234
|
return response
|
@@ -182,6 +263,10 @@ class ExternalTickets(ApiManager):
|
|
182
263
|
kwargs = dict()
|
183
264
|
kwargs, params = handling_single_page_methods(kwargs=kwargs, params
|
184
265
|
=params)
|
266
|
+
official_params_list = ['date_start', 'date_end']
|
267
|
+
params.get('date_start'), params.get('date_end')
|
268
|
+
warning_wrong_parameters(self.external_tickets_ticket_by_params.
|
269
|
+
__name__, params, official_params_list)
|
185
270
|
response = self.execute('GET', path=
|
186
271
|
f'/external_tickets/ticket_by_params/{ticket_type}/{uuid_customer}'
|
187
272
|
, warm_start=warm_start, params=params, **kwargs)
|
@@ -205,6 +290,10 @@ class ExternalTickets(ApiManager):
|
|
205
290
|
kwargs = dict()
|
206
291
|
kwargs, params = handling_single_page_methods(kwargs=kwargs, params
|
207
292
|
=params)
|
293
|
+
official_params_list = ['date_start', 'date_end']
|
294
|
+
params.get('date_start'), params.get('date_end')
|
295
|
+
warning_wrong_parameters(self.external_tickets_ticket_by_sla.
|
296
|
+
__name__, params, official_params_list)
|
208
297
|
response = self.execute('GET', path=
|
209
298
|
f'/external_tickets/ticket_by_sla/{ticket_type}/{uuid_customer}',
|
210
299
|
warm_start=warm_start, params=params, **kwargs)
|
@@ -226,6 +315,10 @@ class ExternalTickets(ApiManager):
|
|
226
315
|
kwargs = dict()
|
227
316
|
kwargs, params = handling_single_page_methods(kwargs=kwargs, params
|
228
317
|
=params)
|
318
|
+
official_params_list = ['date_start', 'date_end']
|
319
|
+
params.get('date_start'), params.get('date_end')
|
320
|
+
warning_wrong_parameters(self.external_tickets_ticket_by_date.
|
321
|
+
__name__, params, official_params_list)
|
229
322
|
response = self.execute('GET', path=
|
230
323
|
f'/external_tickets/ticket_by_date/{uuid_customer}', warm_start
|
231
324
|
=warm_start, params=params, **kwargs)
|
@@ -248,6 +341,11 @@ class ExternalTickets(ApiManager):
|
|
248
341
|
kwargs = dict()
|
249
342
|
kwargs, params = handling_single_page_methods(kwargs=kwargs, params
|
250
343
|
=params)
|
344
|
+
official_params_list = ['date_start', 'date_end']
|
345
|
+
params.get('date_start'), params.get('date_end')
|
346
|
+
warning_wrong_parameters(self.
|
347
|
+
external_tickets_ticket_by_params_customers_filtering.__name__,
|
348
|
+
params, official_params_list)
|
251
349
|
response = self.execute('GET', path=
|
252
350
|
f'/external_tickets/ticket_by_params/customers_filtering/{ticket_type}/'
|
253
351
|
, warm_start=warm_start, params=params, **kwargs)
|
@@ -270,6 +368,11 @@ class ExternalTickets(ApiManager):
|
|
270
368
|
kwargs = dict()
|
271
369
|
kwargs, params = handling_single_page_methods(kwargs=kwargs, params
|
272
370
|
=params)
|
371
|
+
official_params_list = ['date_start', 'date_end']
|
372
|
+
params.get('date_start'), params.get('date_end')
|
373
|
+
warning_wrong_parameters(self.
|
374
|
+
external_tickets_ticket_by_sla_customers_filtering.__name__,
|
375
|
+
params, official_params_list)
|
273
376
|
response = self.execute('GET', path=
|
274
377
|
f'/external_tickets/ticket_by_sla/customers_filtering/{ticket_type}/'
|
275
378
|
, warm_start=warm_start, params=params, **kwargs)
|
@@ -290,6 +393,11 @@ class ExternalTickets(ApiManager):
|
|
290
393
|
kwargs = dict()
|
291
394
|
kwargs, params = handling_single_page_methods(kwargs=kwargs, params
|
292
395
|
=params)
|
396
|
+
official_params_list = ['date_start', 'date_end']
|
397
|
+
params.get('date_start'), params.get('date_end')
|
398
|
+
warning_wrong_parameters(self.
|
399
|
+
external_tickets_ticket_by_date_customers_filtering.__name__,
|
400
|
+
params, official_params_list)
|
293
401
|
response = self.execute('GET', path=
|
294
402
|
f'/external_tickets/ticket_by_date/customers_filtering/',
|
295
403
|
warm_start=warm_start, params=params, **kwargs)
|
@@ -319,6 +427,10 @@ class ExternalTickets(ApiManager):
|
|
319
427
|
Returns: list"""
|
320
428
|
if kwargs is None:
|
321
429
|
kwargs = dict()
|
430
|
+
official_params_list = ['join']
|
431
|
+
params.get('join')
|
432
|
+
warning_wrong_parameters(self.external_tickets_bulk.__name__,
|
433
|
+
params, official_params_list)
|
322
434
|
response = self.execute('POST', path=
|
323
435
|
f'/external_tickets/bulk/read/', single_page=single_page,
|
324
436
|
page_size=page_size, warm_start=warm_start, params=params,
|
@@ -372,6 +484,10 @@ class ExternalTickets(ApiManager):
|
|
372
484
|
Returns: list"""
|
373
485
|
if kwargs is None:
|
374
486
|
kwargs = dict()
|
487
|
+
official_params_list = ['best_effort']
|
488
|
+
params.get('best_effort')
|
489
|
+
warning_wrong_parameters(self.external_tickets_create_bulk.__name__,
|
490
|
+
params, official_params_list)
|
375
491
|
response = self.execute('POST', path=
|
376
492
|
f'/external_tickets/bulk/create/', single_page=single_page,
|
377
493
|
page_size=page_size, params=params, payload=payload, **kwargs)
|
@@ -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 FirmwareUpdates(ApiManager):
|
@@ -33,6 +33,17 @@ class FirmwareUpdates(ApiManager):
|
|
33
33
|
Returns: list"""
|
34
34
|
if kwargs is None:
|
35
35
|
kwargs = dict()
|
36
|
+
official_params_list = ['sort_by', 'code', 'uuid_customer',
|
37
|
+
'uuid_metric', 'model', 'type', 'firmware', 'status',
|
38
|
+
'date_start', 'date_end', 'skip', 'limit', 'like', 'join', 'count']
|
39
|
+
params.get('sort_by'), params.get('code'), params.get('uuid_customer'
|
40
|
+
), params.get('uuid_metric'), params.get('model'), params.get(
|
41
|
+
'type'), params.get('firmware'), params.get('status'), params.get(
|
42
|
+
'date_start'), params.get('date_end'), params.get('skip'
|
43
|
+
), params.get('limit'), params.get('like'), params.get('join'
|
44
|
+
), params.get('count')
|
45
|
+
warning_wrong_parameters(self.firmware_updates.__name__, params,
|
46
|
+
official_params_list)
|
36
47
|
response = self.execute('GET', path=f'/firmware_updates/',
|
37
48
|
single_page=single_page, page_size=page_size, warm_start=
|
38
49
|
warm_start, params=params, **kwargs)
|
@@ -61,6 +72,14 @@ class FirmwareUpdates(ApiManager):
|
|
61
72
|
kwargs = dict()
|
62
73
|
kwargs, params = handling_single_page_methods(kwargs=kwargs, params
|
63
74
|
=params)
|
75
|
+
official_params_list = ['column', 'code', 'uuid_metric', 'model',
|
76
|
+
'type', 'firmware', 'status', 'date_start', 'date_end']
|
77
|
+
params.get('column'), params.get('code'), params.get('uuid_metric'
|
78
|
+
), params.get('model'), params.get('type'), params.get('firmware'
|
79
|
+
), params.get('status'), params.get('date_start'), params.get(
|
80
|
+
'date_end')
|
81
|
+
warning_wrong_parameters(self.firmware_updates_grouped.__name__,
|
82
|
+
params, official_params_list)
|
64
83
|
response = self.execute('GET', path=
|
65
84
|
f'/firmware_updates/{uuid_customer}/grouped/', warm_start=
|
66
85
|
warm_start, params=params, **kwargs)
|