xautomata-hive 3.25.0__py3-none-any.whl → 3.26.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/cookbook/calendars.py +9 -9
- hive/cookbook/customers.py +1 -1
- hive/cookbook/groups.py +31 -66
- hive/cookbook/metric_types.py +15 -56
- hive/cookbook/metrics.py +45 -109
- hive/cookbook/objects.py +17 -57
- hive/cookbook/probes.py +19 -20
- hive/cookbook/services.py +0 -177
- hive/cookbook/sites.py +15 -14
- hive/cookbook/tree_hierarchy.py +87 -0
- hive/version.py +1 -1
- {xautomata_hive-3.25.0.dist-info → xautomata_hive-3.26.0.dist-info}/METADATA +1 -1
- {xautomata_hive-3.25.0.dist-info → xautomata_hive-3.26.0.dist-info}/RECORD +16 -16
- {xautomata_hive-3.25.0.dist-info → xautomata_hive-3.26.0.dist-info}/WHEEL +0 -0
- {xautomata_hive-3.25.0.dist-info → xautomata_hive-3.26.0.dist-info}/licenses/LICENSE +0 -0
- {xautomata_hive-3.25.0.dist-info → xautomata_hive-3.26.0.dist-info}/top_level.txt +0 -0
hive/cookbook/calendars.py
CHANGED
@@ -136,8 +136,8 @@ class Calendars(ApiManager):
|
|
136
136
|
sun_int1_end (string optional): additional filter - payload
|
137
137
|
sun_int2_start (string optional): additional filter - payload
|
138
138
|
sun_int2_end (string optional): additional filter - payload
|
139
|
-
type (None optional): additional filter - payload
|
140
139
|
ical (string optional): additional filter - payload
|
140
|
+
type (None optional): additional filter - payload
|
141
141
|
|
142
142
|
Returns: list"""
|
143
143
|
if kwargs is None:
|
@@ -152,7 +152,7 @@ class Calendars(ApiManager):
|
|
152
152
|
'fri_int1_end', 'fri_int2_start', 'fri_int2_end',
|
153
153
|
'sat_int1_start', 'sat_int1_end', 'sat_int2_start',
|
154
154
|
'sat_int2_end', 'sun_int1_start', 'sun_int1_end',
|
155
|
-
'sun_int2_start', 'sun_int2_end', '
|
155
|
+
'sun_int2_start', 'sun_int2_end', 'ical', 'type']
|
156
156
|
payload.get('name'), payload.get('timezone'), payload.get(
|
157
157
|
'local_public_holidays'), payload.get('mon_int1_start'
|
158
158
|
), payload.get('mon_int1_end'), payload.get('mon_int2_start'
|
@@ -168,8 +168,8 @@ class Calendars(ApiManager):
|
|
168
168
|
), payload.get('sat_int1_end'), payload.get('sat_int2_start'
|
169
169
|
), payload.get('sat_int2_end'), payload.get('sun_int1_start'
|
170
170
|
), payload.get('sun_int1_end'), payload.get('sun_int2_start'
|
171
|
-
), payload.get('sun_int2_end'), payload.get('
|
172
|
-
'
|
171
|
+
), payload.get('sun_int2_end'), payload.get('ical'), payload.get(
|
172
|
+
'type')
|
173
173
|
if not self._silence_warning:
|
174
174
|
warning_wrong_parameters(self.calendars_create.__name__,
|
175
175
|
payload, official_payload_list)
|
@@ -233,8 +233,8 @@ class Calendars(ApiManager):
|
|
233
233
|
sun_int1_end (string optional): additional filter - payload
|
234
234
|
sun_int2_start (string optional): additional filter - payload
|
235
235
|
sun_int2_end (string optional): additional filter - payload
|
236
|
-
type (None optional): additional filter - payload
|
237
236
|
ical (string optional): additional filter - payload
|
237
|
+
type (None optional): additional filter - payload
|
238
238
|
|
239
239
|
Returns: list"""
|
240
240
|
if kwargs is None:
|
@@ -249,7 +249,7 @@ class Calendars(ApiManager):
|
|
249
249
|
'fri_int1_end', 'fri_int2_start', 'fri_int2_end',
|
250
250
|
'sat_int1_start', 'sat_int1_end', 'sat_int2_start',
|
251
251
|
'sat_int2_end', 'sun_int1_start', 'sun_int1_end',
|
252
|
-
'sun_int2_start', 'sun_int2_end', '
|
252
|
+
'sun_int2_start', 'sun_int2_end', 'ical', 'type']
|
253
253
|
payload.get('name'), payload.get('timezone'), payload.get(
|
254
254
|
'local_public_holidays'), payload.get('mon_int1_start'
|
255
255
|
), payload.get('mon_int1_end'), payload.get('mon_int2_start'
|
@@ -265,8 +265,8 @@ class Calendars(ApiManager):
|
|
265
265
|
), payload.get('sat_int1_end'), payload.get('sat_int2_start'
|
266
266
|
), payload.get('sat_int2_end'), payload.get('sun_int1_start'
|
267
267
|
), payload.get('sun_int1_end'), payload.get('sun_int2_start'
|
268
|
-
), payload.get('sun_int2_end'), payload.get('
|
269
|
-
'
|
268
|
+
), payload.get('sun_int2_end'), payload.get('ical'), payload.get(
|
269
|
+
'type')
|
270
270
|
if not self._silence_warning:
|
271
271
|
warning_wrong_parameters(self.calendars_put.__name__, payload,
|
272
272
|
official_payload_list)
|
@@ -399,8 +399,8 @@ class Calendars(ApiManager):
|
|
399
399
|
"sun_int1_end": "string", optional
|
400
400
|
"sun_int2_start": "string", optional
|
401
401
|
"sun_int2_end": "string", optional
|
402
|
-
"type": "None", optional
|
403
402
|
"ical": "string", optional
|
403
|
+
"type": "None", optional
|
404
404
|
}
|
405
405
|
]
|
406
406
|
|
hive/cookbook/customers.py
CHANGED
@@ -261,7 +261,7 @@ class Customers(ApiManager):
|
|
261
261
|
def customers_groups(self, uuid: str, warm_start: bool = False,
|
262
262
|
single_page: bool = False, page_size: int = 5000,
|
263
263
|
kwargs: dict = None, **params) -> list:
|
264
|
-
"""List Groups
|
264
|
+
"""List Groups
|
265
265
|
|
266
266
|
Args:
|
267
267
|
uuid (str, required): uuid
|
hive/cookbook/groups.py
CHANGED
@@ -6,7 +6,7 @@ class Groups(ApiManager):
|
|
6
6
|
|
7
7
|
def groups(self, warm_start: bool = False, single_page: bool = False,
|
8
8
|
page_size: int = 5000, kwargs: dict = None, **params) -> list:
|
9
|
-
"""Read Groups
|
9
|
+
"""Read Groups
|
10
10
|
|
11
11
|
Args:
|
12
12
|
warm_start (bool, optional): salva la risposta in un file e se viene richiamata la stessa funzione con gli stessi argomenti restituisce il contenuto del file. Default to False.
|
@@ -18,6 +18,7 @@ class Groups(ApiManager):
|
|
18
18
|
Keyword Args:
|
19
19
|
sort_by (string optional): Stringa separata da virgole di campi su cui ordinare. Si indica uno o piu campi della risposta e si puo chiedere di ottenere i valori di quei campi in ordine ascendente o discendente. Esempio "Customer:Desc". Default to "". - parameter
|
20
20
|
null_fields (string optional): additional filter - parameter
|
21
|
+
not_fields (string optional): additional filter - parameter
|
21
22
|
uuid_parent (string optional): additional filter - parameter
|
22
23
|
uuid_site (string optional): additional filter - parameter
|
23
24
|
uuid_virtual_domain (string optional): additional filter - parameter
|
@@ -37,17 +38,19 @@ class Groups(ApiManager):
|
|
37
38
|
Returns: list"""
|
38
39
|
if kwargs is None:
|
39
40
|
kwargs = dict()
|
40
|
-
official_params_list = ['sort_by', 'null_fields', '
|
41
|
-
'
|
42
|
-
'
|
43
|
-
'severity', 'skip', 'limit', 'like', 'join',
|
41
|
+
official_params_list = ['sort_by', 'null_fields', 'not_fields',
|
42
|
+
'uuid_parent', 'uuid_site', 'uuid_virtual_domain', 'type',
|
43
|
+
'name', 'description', 'status', 'extract_severity',
|
44
|
+
'count_children', 'severity', 'skip', 'limit', 'like', 'join',
|
45
|
+
'count']
|
44
46
|
params.get('sort_by'), params.get('null_fields'), params.get(
|
45
|
-
'
|
46
|
-
|
47
|
-
), params.get('
|
48
|
-
'
|
49
|
-
'
|
50
|
-
'
|
47
|
+
'not_fields'), params.get('uuid_parent'), params.get('uuid_site'
|
48
|
+
), params.get('uuid_virtual_domain'), params.get('type'
|
49
|
+
), params.get('name'), params.get('description'), params.get(
|
50
|
+
'status'), params.get('extract_severity'), params.get(
|
51
|
+
'count_children'), params.get('severity'), params.get('skip'
|
52
|
+
), params.get('limit'), params.get('like'), params.get('join'
|
53
|
+
), params.get('count')
|
51
54
|
if not self._silence_warning:
|
52
55
|
warning_wrong_parameters(self.groups.__name__, params,
|
53
56
|
official_params_list)
|
@@ -168,7 +171,7 @@ class Groups(ApiManager):
|
|
168
171
|
def groups_objects(self, uuid: str, warm_start: bool = False,
|
169
172
|
single_page: bool = False, page_size: int = 5000,
|
170
173
|
kwargs: dict = None, **params) -> list:
|
171
|
-
"""List Objects
|
174
|
+
"""List Objects
|
172
175
|
|
173
176
|
Args:
|
174
177
|
uuid (str, required): uuid
|
@@ -180,6 +183,7 @@ class Groups(ApiManager):
|
|
180
183
|
|
181
184
|
Keyword Args:
|
182
185
|
sort_by (string optional): Stringa separata da virgole di campi su cui ordinare. Si indica uno o piu campi della risposta e si puo chiedere di ottenere i valori di quei campi in ordine ascendente o discendente. Esempio "Customer:Desc". Default to "". - parameter
|
186
|
+
not_fields (string optional): additional filter - parameter
|
183
187
|
not_in (boolean optional): additional filter - parameter
|
184
188
|
name (string optional): additional filter - parameter
|
185
189
|
profile (string optional): additional filter - parameter
|
@@ -187,6 +191,7 @@ class Groups(ApiManager):
|
|
187
191
|
count_children (boolean optional): additional filter - parameter
|
188
192
|
object_profile (string optional): additional filter - parameter
|
189
193
|
severity (None optional): additional filter - parameter
|
194
|
+
status (string optional): additional filter - parameter
|
190
195
|
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
191
196
|
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
192
197
|
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
|
@@ -196,14 +201,16 @@ class Groups(ApiManager):
|
|
196
201
|
Returns: list"""
|
197
202
|
if kwargs is None:
|
198
203
|
kwargs = dict()
|
199
|
-
official_params_list = ['sort_by', '
|
200
|
-
'
|
201
|
-
'
|
202
|
-
|
203
|
-
|
204
|
-
), params.get('
|
205
|
-
|
206
|
-
|
204
|
+
official_params_list = ['sort_by', 'not_fields', 'not_in', 'name',
|
205
|
+
'profile', 'extract_severity', 'count_children',
|
206
|
+
'object_profile', 'severity', 'status', 'skip', 'limit', 'like',
|
207
|
+
'join', 'count']
|
208
|
+
params.get('sort_by'), params.get('not_fields'), params.get('not_in'
|
209
|
+
), params.get('name'), params.get('profile'), params.get(
|
210
|
+
'extract_severity'), params.get('count_children'), params.get(
|
211
|
+
'object_profile'), params.get('severity'), params.get('status'
|
212
|
+
), params.get('skip'), params.get('limit'), params.get('like'
|
213
|
+
), params.get('join'), params.get('count')
|
207
214
|
if not self._silence_warning:
|
208
215
|
warning_wrong_parameters(self.groups_objects.__name__, params,
|
209
216
|
official_params_list)
|
@@ -398,47 +405,6 @@ class Groups(ApiManager):
|
|
398
405
|
kwargs: dict = None, **params) -> list:
|
399
406
|
"""List Dispatchers
|
400
407
|
|
401
|
-
Args:
|
402
|
-
uuid (str, required): uuid
|
403
|
-
warm_start (bool, optional): salva la risposta in un file e se viene richiamata la stessa funzione con gli stessi argomenti restituisce il contenuto del file. Default to False.
|
404
|
-
single_page (bool, optional): se False la risposta viene ottenuta a step per non appesantire le API. Default to False.
|
405
|
-
page_size (int, optional): Numero di oggetti per pagina se single_page == False. Default to 5000.
|
406
|
-
kwargs (dict, optional): additional parameters for execute. Default to None.
|
407
|
-
**params: additional parameters for the API.
|
408
|
-
|
409
|
-
Keyword Args:
|
410
|
-
not_in (boolean optional): additional filter - parameter
|
411
|
-
code (string optional): additional filter - parameter
|
412
|
-
status (string optional): additional filter - parameter
|
413
|
-
active_at_timestamp (string optional): additional filter - parameter
|
414
|
-
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
415
|
-
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
416
|
-
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
|
417
|
-
join (boolean optional): Se join = true, ogni riga restituita conterra' chiavi aggiuntive che fanno riferimento ad altre entita', con cui la riga ha relazioni 1:1. Default to False - parameter
|
418
|
-
count (boolean optional): Se True nel header della risposta e' presente la dimensione massima a db della chiamata fatta, sconsigliabile perche raddoppia il tempo per chiamata. Default to False. - parameter
|
419
|
-
|
420
|
-
Returns: list"""
|
421
|
-
if kwargs is None:
|
422
|
-
kwargs = dict()
|
423
|
-
official_params_list = ['not_in', 'code', 'status',
|
424
|
-
'active_at_timestamp', 'skip', 'limit', 'like', 'join', 'count']
|
425
|
-
params.get('not_in'), params.get('code'), params.get('status'
|
426
|
-
), params.get('active_at_timestamp'), params.get('skip'
|
427
|
-
), params.get('limit'), params.get('like'), params.get('join'
|
428
|
-
), params.get('count')
|
429
|
-
if not self._silence_warning:
|
430
|
-
warning_wrong_parameters(self.groups_dispatchers.__name__,
|
431
|
-
params, official_params_list)
|
432
|
-
response = self.execute('GET', path=f'/groups/{uuid}/dispatchers',
|
433
|
-
single_page=single_page, page_size=page_size, warm_start=
|
434
|
-
warm_start, params=params, **kwargs)
|
435
|
-
return response
|
436
|
-
|
437
|
-
def groups_dispatchers_v2(self, uuid: str, warm_start: bool = False,
|
438
|
-
single_page: bool = False, page_size: int = 5000,
|
439
|
-
kwargs: dict = None, **params) -> list:
|
440
|
-
"""List Dispatchers V2
|
441
|
-
|
442
408
|
Args:
|
443
409
|
uuid (str, required): uuid
|
444
410
|
warm_start (bool, optional): salva la risposta in un file e se viene richiamata la stessa funzione con gli stessi argomenti restituisce il contenuto del file. Default to False.
|
@@ -474,12 +440,11 @@ class Groups(ApiManager):
|
|
474
440
|
'limit'), params.get('like'), params.get('join'), params.get(
|
475
441
|
'count')
|
476
442
|
if not self._silence_warning:
|
477
|
-
warning_wrong_parameters(self.
|
443
|
+
warning_wrong_parameters(self.groups_dispatchers.__name__,
|
478
444
|
params, official_params_list)
|
479
|
-
response = self.execute('GET', path=
|
480
|
-
|
481
|
-
|
482
|
-
)
|
445
|
+
response = self.execute('GET', path=f'/groups/{uuid}/dispatchers',
|
446
|
+
single_page=single_page, page_size=page_size, warm_start=
|
447
|
+
warm_start, params=params, **kwargs)
|
483
448
|
return response
|
484
449
|
|
485
450
|
def groups_dispatchers_create(self, uuid: str, uuid_dispatcher: str,
|
hive/cookbook/metric_types.py
CHANGED
@@ -7,7 +7,7 @@ class MetricTypes(ApiManager):
|
|
7
7
|
def metric_types(self, warm_start: bool = False,
|
8
8
|
single_page: bool = False, page_size: int = 5000,
|
9
9
|
kwargs: dict = None, **params) -> list:
|
10
|
-
"""Read Metric Types
|
10
|
+
"""Read Metric Types
|
11
11
|
|
12
12
|
Args:
|
13
13
|
warm_start (bool, optional): salva la risposta in un file e se viene richiamata la stessa funzione con gli stessi argomenti restituisce il contenuto del file. Default to False.
|
@@ -19,6 +19,7 @@ class MetricTypes(ApiManager):
|
|
19
19
|
Keyword Args:
|
20
20
|
sort_by (string optional): Stringa separata da virgole di campi su cui ordinare. Si indica uno o piu campi della risposta e si puo chiedere di ottenere i valori di quei campi in ordine ascendente o discendente. Esempio "Customer:Desc". Default to "". - parameter
|
21
21
|
null_fields (string optional): additional filter - parameter
|
22
|
+
not_fields (string optional): additional filter - parameter
|
22
23
|
uuid_object (string optional): additional filter - parameter
|
23
24
|
name (string optional): additional filter - parameter
|
24
25
|
description (string optional): additional filter - parameter
|
@@ -37,17 +38,17 @@ class MetricTypes(ApiManager):
|
|
37
38
|
Returns: list"""
|
38
39
|
if kwargs is None:
|
39
40
|
kwargs = dict()
|
40
|
-
official_params_list = ['sort_by', 'null_fields', '
|
41
|
-
'
|
42
|
-
'
|
43
|
-
'skip', 'limit', 'like', 'join', 'count']
|
41
|
+
official_params_list = ['sort_by', 'null_fields', 'not_fields',
|
42
|
+
'uuid_object', 'name', 'description', 'feedback_for_operator',
|
43
|
+
'profile', 'status', 'severity', 'extract_severity',
|
44
|
+
'count_children', 'skip', 'limit', 'like', 'join', 'count']
|
44
45
|
params.get('sort_by'), params.get('null_fields'), params.get(
|
45
|
-
'
|
46
|
-
), params.get('
|
47
|
-
), params.get('
|
48
|
-
'
|
49
|
-
'
|
50
|
-
), params.get('count')
|
46
|
+
'not_fields'), params.get('uuid_object'), params.get('name'
|
47
|
+
), params.get('description'), params.get('feedback_for_operator'
|
48
|
+
), params.get('profile'), params.get('status'), params.get(
|
49
|
+
'severity'), params.get('extract_severity'), params.get(
|
50
|
+
'count_children'), params.get('skip'), params.get('limit'
|
51
|
+
), params.get('like'), params.get('join'), params.get('count')
|
51
52
|
if not self._silence_warning:
|
52
53
|
warning_wrong_parameters(self.metric_types.__name__, params,
|
53
54
|
official_params_list)
|
@@ -290,48 +291,6 @@ class MetricTypes(ApiManager):
|
|
290
291
|
kwargs: dict = None, **params) -> list:
|
291
292
|
"""List Dispatchers
|
292
293
|
|
293
|
-
Args:
|
294
|
-
uuid (str, required): uuid
|
295
|
-
warm_start (bool, optional): salva la risposta in un file e se viene richiamata la stessa funzione con gli stessi argomenti restituisce il contenuto del file. Default to False.
|
296
|
-
single_page (bool, optional): se False la risposta viene ottenuta a step per non appesantire le API. Default to False.
|
297
|
-
page_size (int, optional): Numero di oggetti per pagina se single_page == False. Default to 5000.
|
298
|
-
kwargs (dict, optional): additional parameters for execute. Default to None.
|
299
|
-
**params: additional parameters for the API.
|
300
|
-
|
301
|
-
Keyword Args:
|
302
|
-
not_in (boolean optional): additional filter - parameter
|
303
|
-
code (string optional): additional filter - parameter
|
304
|
-
status (string optional): additional filter - parameter
|
305
|
-
active_at_timestamp (string optional): additional filter - parameter
|
306
|
-
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
307
|
-
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
308
|
-
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
|
309
|
-
join (boolean optional): Se join = true, ogni riga restituita conterra' chiavi aggiuntive che fanno riferimento ad altre entita', con cui la riga ha relazioni 1:1. Default to False - parameter
|
310
|
-
count (boolean optional): Se True nel header della risposta e' presente la dimensione massima a db della chiamata fatta, sconsigliabile perche raddoppia il tempo per chiamata. Default to False. - parameter
|
311
|
-
|
312
|
-
Returns: list"""
|
313
|
-
if kwargs is None:
|
314
|
-
kwargs = dict()
|
315
|
-
official_params_list = ['not_in', 'code', 'status',
|
316
|
-
'active_at_timestamp', 'skip', 'limit', 'like', 'join', 'count']
|
317
|
-
params.get('not_in'), params.get('code'), params.get('status'
|
318
|
-
), params.get('active_at_timestamp'), params.get('skip'
|
319
|
-
), params.get('limit'), params.get('like'), params.get('join'
|
320
|
-
), params.get('count')
|
321
|
-
if not self._silence_warning:
|
322
|
-
warning_wrong_parameters(self.metric_types_dispatchers.__name__,
|
323
|
-
params, official_params_list)
|
324
|
-
response = self.execute('GET', path=
|
325
|
-
f'/metric_types/{uuid}/dispatchers', single_page=single_page,
|
326
|
-
page_size=page_size, warm_start=warm_start, params=params, **kwargs
|
327
|
-
)
|
328
|
-
return response
|
329
|
-
|
330
|
-
def metric_types_dispatchers_v2(self, uuid: str,
|
331
|
-
warm_start: bool = False, single_page: bool = False,
|
332
|
-
page_size: int = 5000, kwargs: dict = None, **params) -> list:
|
333
|
-
"""List Dispatchers V2
|
334
|
-
|
335
294
|
Args:
|
336
295
|
uuid (str, required): uuid
|
337
296
|
warm_start (bool, optional): salva la risposta in un file e se viene richiamata la stessa funzione con gli stessi argomenti restituisce il contenuto del file. Default to False.
|
@@ -367,10 +326,10 @@ class MetricTypes(ApiManager):
|
|
367
326
|
'limit'), params.get('like'), params.get('join'), params.get(
|
368
327
|
'count')
|
369
328
|
if not self._silence_warning:
|
370
|
-
warning_wrong_parameters(self.
|
371
|
-
|
329
|
+
warning_wrong_parameters(self.metric_types_dispatchers.__name__,
|
330
|
+
params, official_params_list)
|
372
331
|
response = self.execute('GET', path=
|
373
|
-
f'/metric_types/{uuid}/dispatchers
|
332
|
+
f'/metric_types/{uuid}/dispatchers', single_page=single_page,
|
374
333
|
page_size=page_size, warm_start=warm_start, params=params, **kwargs
|
375
334
|
)
|
376
335
|
return response
|
hive/cookbook/metrics.py
CHANGED
@@ -6,7 +6,7 @@ class Metrics(ApiManager):
|
|
6
6
|
|
7
7
|
def metrics(self, warm_start: bool = False, single_page: bool = False,
|
8
8
|
page_size: int = 5000, kwargs: dict = None, **params) -> list:
|
9
|
-
"""Read Metrics
|
9
|
+
"""Read Metrics
|
10
10
|
|
11
11
|
Args:
|
12
12
|
warm_start (bool, optional): salva la risposta in un file e se viene richiamata la stessa funzione con gli stessi argomenti restituisce il contenuto del file. Default to False.
|
@@ -18,6 +18,7 @@ class Metrics(ApiManager):
|
|
18
18
|
Keyword Args:
|
19
19
|
sort_by (string optional): Stringa separata da virgole di campi su cui ordinare. Si indica uno o piu campi della risposta e si puo chiedere di ottenere i valori di quei campi in ordine ascendente o discendente. Esempio "Customer:Desc". Default to "". - parameter
|
20
20
|
null_fields (string optional): additional filter - parameter
|
21
|
+
not_fields (string optional): additional filter - parameter
|
21
22
|
uuid_metric_type (string optional): additional filter - parameter
|
22
23
|
name (string optional): additional filter - parameter
|
23
24
|
description (string optional): additional filter - parameter
|
@@ -35,16 +36,17 @@ class Metrics(ApiManager):
|
|
35
36
|
Returns: list"""
|
36
37
|
if kwargs is None:
|
37
38
|
kwargs = dict()
|
38
|
-
official_params_list = ['sort_by', 'null_fields',
|
39
|
+
official_params_list = ['sort_by', 'null_fields', 'not_fields',
|
39
40
|
'uuid_metric_type', 'name', 'description',
|
40
41
|
'feedback_for_operator', 'profile', 'status', 'severity',
|
41
42
|
'extract_severity', 'skip', 'limit', 'like', 'join', 'count']
|
42
43
|
params.get('sort_by'), params.get('null_fields'), params.get(
|
43
|
-
'
|
44
|
-
), params.get('
|
45
|
-
), params.get('
|
46
|
-
'
|
47
|
-
), params.get('
|
44
|
+
'not_fields'), params.get('uuid_metric_type'), params.get('name'
|
45
|
+
), params.get('description'), params.get('feedback_for_operator'
|
46
|
+
), params.get('profile'), params.get('status'), params.get(
|
47
|
+
'severity'), params.get('extract_severity'), params.get('skip'
|
48
|
+
), params.get('limit'), params.get('like'), params.get('join'
|
49
|
+
), params.get('count')
|
48
50
|
if not self._silence_warning:
|
49
51
|
warning_wrong_parameters(self.metrics.__name__, params,
|
50
52
|
official_params_list)
|
@@ -195,6 +197,7 @@ class Metrics(ApiManager):
|
|
195
197
|
not_in (boolean optional): additional filter - parameter
|
196
198
|
name (string optional): additional filter - parameter
|
197
199
|
status (string optional): additional filter - parameter
|
200
|
+
not_fields (string optional): additional filter - parameter
|
198
201
|
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
199
202
|
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
200
203
|
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
|
@@ -204,11 +207,11 @@ class Metrics(ApiManager):
|
|
204
207
|
Returns: list"""
|
205
208
|
if kwargs is None:
|
206
209
|
kwargs = dict()
|
207
|
-
official_params_list = ['not_in', 'name', 'status', '
|
208
|
-
'like', 'join', 'count']
|
210
|
+
official_params_list = ['not_in', 'name', 'status', 'not_fields',
|
211
|
+
'skip', 'limit', 'like', 'join', 'count']
|
209
212
|
params.get('not_in'), params.get('name'), params.get('status'
|
210
|
-
), params.get('
|
211
|
-
), params.get('join'), params.get('count')
|
213
|
+
), params.get('not_fields'), params.get('skip'), params.get('limit'
|
214
|
+
), params.get('like'), params.get('join'), params.get('count')
|
212
215
|
if not self._silence_warning:
|
213
216
|
warning_wrong_parameters(self.metrics_services.__name__, params,
|
214
217
|
official_params_list)
|
@@ -752,55 +755,6 @@ class Metrics(ApiManager):
|
|
752
755
|
warm_start, params=params, **kwargs)
|
753
756
|
return response
|
754
757
|
|
755
|
-
def metrics_downtimes_v2(self, uuid: str, warm_start: bool = False,
|
756
|
-
single_page: bool = False, page_size: int = 5000,
|
757
|
-
kwargs: dict = None, **params) -> list:
|
758
|
-
"""List Downtimes V2
|
759
|
-
|
760
|
-
Args:
|
761
|
-
uuid (str, required): uuid
|
762
|
-
warm_start (bool, optional): salva la risposta in un file e se viene richiamata la stessa funzione con gli stessi argomenti restituisce il contenuto del file. Default to False.
|
763
|
-
single_page (bool, optional): se False la risposta viene ottenuta a step per non appesantire le API. Default to False.
|
764
|
-
page_size (int, optional): Numero di oggetti per pagina se single_page == False. Default to 5000.
|
765
|
-
kwargs (dict, optional): additional parameters for execute. Default to None.
|
766
|
-
**params: additional parameters for the API.
|
767
|
-
|
768
|
-
Keyword Args:
|
769
|
-
not_in (boolean optional): additional filter - parameter
|
770
|
-
code (string optional): additional filter - parameter
|
771
|
-
status (string optional): additional filter - parameter
|
772
|
-
fetch_all (boolean optional): additional filter - parameter
|
773
|
-
only_actives (boolean optional): additional filter - parameter
|
774
|
-
active_at_timestamp (string optional): additional filter - parameter
|
775
|
-
active_after_timestamp (string optional): additional filter - parameter
|
776
|
-
active_at_or_after_timestamp (string optional): additional filter - parameter
|
777
|
-
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
778
|
-
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
779
|
-
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
|
780
|
-
join (boolean optional): Se join = true, ogni riga restituita conterra' chiavi aggiuntive che fanno riferimento ad altre entita', con cui la riga ha relazioni 1:1. Default to False - parameter
|
781
|
-
count (boolean optional): Se True nel header della risposta e' presente la dimensione massima a db della chiamata fatta, sconsigliabile perche raddoppia il tempo per chiamata. Default to False. - parameter
|
782
|
-
|
783
|
-
Returns: list"""
|
784
|
-
if kwargs is None:
|
785
|
-
kwargs = dict()
|
786
|
-
official_params_list = ['not_in', 'code', 'status', 'fetch_all',
|
787
|
-
'only_actives', 'active_at_timestamp', 'active_after_timestamp',
|
788
|
-
'active_at_or_after_timestamp', 'skip', 'limit', 'like', 'join',
|
789
|
-
'count']
|
790
|
-
params.get('not_in'), params.get('code'), params.get('status'
|
791
|
-
), params.get('fetch_all'), params.get('only_actives'), params.get(
|
792
|
-
'active_at_timestamp'), params.get('active_after_timestamp'
|
793
|
-
), params.get('active_at_or_after_timestamp'), params.get('skip'
|
794
|
-
), params.get('limit'), params.get('like'), params.get('join'
|
795
|
-
), params.get('count')
|
796
|
-
if not self._silence_warning:
|
797
|
-
warning_wrong_parameters(self.metrics_downtimes_v2.__name__,
|
798
|
-
params, official_params_list)
|
799
|
-
response = self.execute('GET', path=f'/metrics/{uuid}/downtimes/v2',
|
800
|
-
single_page=single_page, page_size=page_size, warm_start=
|
801
|
-
warm_start, params=params, **kwargs)
|
802
|
-
return response
|
803
|
-
|
804
758
|
def metrics_downtimes_create(self, uuid: str, uuid_downtime: str,
|
805
759
|
kwargs: dict = None) -> list:
|
806
760
|
"""Add Downtime
|
@@ -838,50 +792,6 @@ class Metrics(ApiManager):
|
|
838
792
|
kwargs: dict = None, **params) -> list:
|
839
793
|
"""List Dispatchers
|
840
794
|
|
841
|
-
Args:
|
842
|
-
uuid (str, required): uuid
|
843
|
-
warm_start (bool, optional): salva la risposta in un file e se viene richiamata la stessa funzione con gli stessi argomenti restituisce il contenuto del file. Default to False.
|
844
|
-
single_page (bool, optional): se False la risposta viene ottenuta a step per non appesantire le API. Default to False.
|
845
|
-
page_size (int, optional): Numero di oggetti per pagina se single_page == False. Default to 5000.
|
846
|
-
kwargs (dict, optional): additional parameters for execute. Default to None.
|
847
|
-
**params: additional parameters for the API.
|
848
|
-
|
849
|
-
Keyword Args:
|
850
|
-
not_in (boolean optional): additional filter - parameter
|
851
|
-
code (string optional): additional filter - parameter
|
852
|
-
status (string optional): additional filter - parameter
|
853
|
-
fetch_all (boolean optional): additional filter - parameter
|
854
|
-
only_actives (boolean optional): additional filter - parameter
|
855
|
-
active_at_timestamp (string optional): additional filter - parameter
|
856
|
-
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
857
|
-
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
858
|
-
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
|
859
|
-
join (boolean optional): Se join = true, ogni riga restituita conterra' chiavi aggiuntive che fanno riferimento ad altre entita', con cui la riga ha relazioni 1:1. Default to False - parameter
|
860
|
-
count (boolean optional): Se True nel header della risposta e' presente la dimensione massima a db della chiamata fatta, sconsigliabile perche raddoppia il tempo per chiamata. Default to False. - parameter
|
861
|
-
|
862
|
-
Returns: list"""
|
863
|
-
if kwargs is None:
|
864
|
-
kwargs = dict()
|
865
|
-
official_params_list = ['not_in', 'code', 'status', 'fetch_all',
|
866
|
-
'only_actives', 'active_at_timestamp', 'skip', 'limit', 'like',
|
867
|
-
'join', 'count']
|
868
|
-
params.get('not_in'), params.get('code'), params.get('status'
|
869
|
-
), params.get('fetch_all'), params.get('only_actives'), params.get(
|
870
|
-
'active_at_timestamp'), params.get('skip'), params.get('limit'
|
871
|
-
), params.get('like'), params.get('join'), params.get('count')
|
872
|
-
if not self._silence_warning:
|
873
|
-
warning_wrong_parameters(self.metrics_dispatchers.__name__,
|
874
|
-
params, official_params_list)
|
875
|
-
response = self.execute('GET', path=f'/metrics/{uuid}/dispatchers',
|
876
|
-
single_page=single_page, page_size=page_size, warm_start=
|
877
|
-
warm_start, params=params, **kwargs)
|
878
|
-
return response
|
879
|
-
|
880
|
-
def metrics_dispatchers_v2(self, uuid: str, warm_start: bool = False,
|
881
|
-
single_page: bool = False, page_size: int = 5000,
|
882
|
-
kwargs: dict = None, **params) -> list:
|
883
|
-
"""List Dispatchers V2
|
884
|
-
|
885
795
|
Args:
|
886
796
|
uuid (str, required): uuid
|
887
797
|
warm_start (bool, optional): salva la risposta in un file e se viene richiamata la stessa funzione con gli stessi argomenti restituisce il contenuto del file. Default to False.
|
@@ -919,12 +829,11 @@ class Metrics(ApiManager):
|
|
919
829
|
), params.get('limit'), params.get('like'), params.get('join'
|
920
830
|
), params.get('count')
|
921
831
|
if not self._silence_warning:
|
922
|
-
warning_wrong_parameters(self.
|
832
|
+
warning_wrong_parameters(self.metrics_dispatchers.__name__,
|
923
833
|
params, official_params_list)
|
924
|
-
response = self.execute('GET', path=
|
925
|
-
|
926
|
-
|
927
|
-
)
|
834
|
+
response = self.execute('GET', path=f'/metrics/{uuid}/dispatchers',
|
835
|
+
single_page=single_page, page_size=page_size, warm_start=
|
836
|
+
warm_start, params=params, **kwargs)
|
928
837
|
return response
|
929
838
|
|
930
839
|
def metrics_dispatchers_create(self, uuid: str, uuid_dispatcher: str,
|
@@ -1309,3 +1218,30 @@ class Metrics(ApiManager):
|
|
1309
1218
|
f'/metrics/bulk/delete/services', single_page=single_page,
|
1310
1219
|
page_size=page_size, payload=payload, **kwargs)
|
1311
1220
|
return response
|
1221
|
+
|
1222
|
+
def metrics_topic_consumer(self, warm_start: bool = False,
|
1223
|
+
kwargs: dict = None, **params) -> list:
|
1224
|
+
"""Kafka Consumer
|
1225
|
+
|
1226
|
+
Args:
|
1227
|
+
warm_start (bool, optional): salva la risposta in un file e se viene richiamata la stessa funzione con gli stessi argomenti restituisce il contenuto del file. Default to False.
|
1228
|
+
kwargs (dict, optional): additional parameters for execute. Default to None.
|
1229
|
+
**params: additional parameters for the API.
|
1230
|
+
|
1231
|
+
Keyword Args:
|
1232
|
+
num_messages (integer optional): additional filter - parameter
|
1233
|
+
group (string optional): additional filter - parameter
|
1234
|
+
|
1235
|
+
Returns: list"""
|
1236
|
+
if kwargs is None:
|
1237
|
+
kwargs = dict()
|
1238
|
+
kwargs, params = handling_single_page_methods(kwargs=kwargs, params
|
1239
|
+
=params)
|
1240
|
+
official_params_list = ['num_messages', 'group']
|
1241
|
+
params.get('num_messages'), params.get('group')
|
1242
|
+
if not self._silence_warning:
|
1243
|
+
warning_wrong_parameters(self.metrics_topic_consumer.__name__,
|
1244
|
+
params, official_params_list)
|
1245
|
+
response = self.execute('GET', path=f'/metrics/topic/consumer',
|
1246
|
+
warm_start=warm_start, params=params, **kwargs)
|
1247
|
+
return response
|
hive/cookbook/objects.py
CHANGED
@@ -6,7 +6,7 @@ class Objects(ApiManager):
|
|
6
6
|
|
7
7
|
def objects(self, warm_start: bool = False, single_page: bool = False,
|
8
8
|
page_size: int = 5000, kwargs: dict = None, **params) -> list:
|
9
|
-
"""Read Objects
|
9
|
+
"""Read Objects
|
10
10
|
|
11
11
|
Args:
|
12
12
|
warm_start (bool, optional): salva la risposta in un file e se viene richiamata la stessa funzione con gli stessi argomenti restituisce il contenuto del file. Default to False.
|
@@ -18,6 +18,7 @@ class Objects(ApiManager):
|
|
18
18
|
Keyword Args:
|
19
19
|
sort_by (string optional): Stringa separata da virgole di campi su cui ordinare. Si indica uno o piu campi della risposta e si puo chiedere di ottenere i valori di quei campi in ordine ascendente o discendente. Esempio "Customer:Desc". Default to "". - parameter
|
20
20
|
null_fields (string optional): additional filter - parameter
|
21
|
+
not_fields (string optional): additional filter - parameter
|
21
22
|
name (string optional): additional filter - parameter
|
22
23
|
description (string optional): additional filter - parameter
|
23
24
|
feedback_for_operator (string optional): additional filter - parameter
|
@@ -35,16 +36,17 @@ class Objects(ApiManager):
|
|
35
36
|
Returns: list"""
|
36
37
|
if kwargs is None:
|
37
38
|
kwargs = dict()
|
38
|
-
official_params_list = ['sort_by', 'null_fields', '
|
39
|
-
'
|
40
|
-
'
|
41
|
-
'limit', 'like', 'join', 'count']
|
42
|
-
params.get('sort_by'), params.get('null_fields'), params.get(
|
43
|
-
), params.get('
|
44
|
-
), params.get('
|
45
|
-
|
46
|
-
|
47
|
-
'
|
39
|
+
official_params_list = ['sort_by', 'null_fields', 'not_fields',
|
40
|
+
'name', 'description', 'feedback_for_operator', 'profile',
|
41
|
+
'status', 'extract_severity', 'count_children', 'severity',
|
42
|
+
'skip', 'limit', 'like', 'join', 'count']
|
43
|
+
params.get('sort_by'), params.get('null_fields'), params.get(
|
44
|
+
'not_fields'), params.get('name'), params.get('description'
|
45
|
+
), params.get('feedback_for_operator'), params.get('profile'
|
46
|
+
), params.get('status'), params.get('extract_severity'
|
47
|
+
), params.get('count_children'), params.get('severity'
|
48
|
+
), params.get('skip'), params.get('limit'), params.get('like'
|
49
|
+
), params.get('join'), params.get('count')
|
48
50
|
if not self._silence_warning:
|
49
51
|
warning_wrong_parameters(self.objects.__name__, params,
|
50
52
|
official_params_list)
|
@@ -456,47 +458,6 @@ class Objects(ApiManager):
|
|
456
458
|
kwargs: dict = None, **params) -> list:
|
457
459
|
"""List Dispatchers
|
458
460
|
|
459
|
-
Args:
|
460
|
-
uuid (str, required): uuid
|
461
|
-
warm_start (bool, optional): salva la risposta in un file e se viene richiamata la stessa funzione con gli stessi argomenti restituisce il contenuto del file. Default to False.
|
462
|
-
single_page (bool, optional): se False la risposta viene ottenuta a step per non appesantire le API. Default to False.
|
463
|
-
page_size (int, optional): Numero di oggetti per pagina se single_page == False. Default to 5000.
|
464
|
-
kwargs (dict, optional): additional parameters for execute. Default to None.
|
465
|
-
**params: additional parameters for the API.
|
466
|
-
|
467
|
-
Keyword Args:
|
468
|
-
not_in (boolean optional): additional filter - parameter
|
469
|
-
code (string optional): additional filter - parameter
|
470
|
-
status (string optional): additional filter - parameter
|
471
|
-
active_at_timestamp (string optional): additional filter - parameter
|
472
|
-
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
473
|
-
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
474
|
-
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
|
475
|
-
join (boolean optional): Se join = true, ogni riga restituita conterra' chiavi aggiuntive che fanno riferimento ad altre entita', con cui la riga ha relazioni 1:1. Default to False - parameter
|
476
|
-
count (boolean optional): Se True nel header della risposta e' presente la dimensione massima a db della chiamata fatta, sconsigliabile perche raddoppia il tempo per chiamata. Default to False. - parameter
|
477
|
-
|
478
|
-
Returns: list"""
|
479
|
-
if kwargs is None:
|
480
|
-
kwargs = dict()
|
481
|
-
official_params_list = ['not_in', 'code', 'status',
|
482
|
-
'active_at_timestamp', 'skip', 'limit', 'like', 'join', 'count']
|
483
|
-
params.get('not_in'), params.get('code'), params.get('status'
|
484
|
-
), params.get('active_at_timestamp'), params.get('skip'
|
485
|
-
), params.get('limit'), params.get('like'), params.get('join'
|
486
|
-
), params.get('count')
|
487
|
-
if not self._silence_warning:
|
488
|
-
warning_wrong_parameters(self.objects_dispatchers.__name__,
|
489
|
-
params, official_params_list)
|
490
|
-
response = self.execute('GET', path=f'/objects/{uuid}/dispatchers',
|
491
|
-
single_page=single_page, page_size=page_size, warm_start=
|
492
|
-
warm_start, params=params, **kwargs)
|
493
|
-
return response
|
494
|
-
|
495
|
-
def objects_dispatchers_v2(self, uuid: str, warm_start: bool = False,
|
496
|
-
single_page: bool = False, page_size: int = 5000,
|
497
|
-
kwargs: dict = None, **params) -> list:
|
498
|
-
"""List Dispatchers V2
|
499
|
-
|
500
461
|
Args:
|
501
462
|
uuid (str, required): uuid
|
502
463
|
warm_start (bool, optional): salva la risposta in un file e se viene richiamata la stessa funzione con gli stessi argomenti restituisce il contenuto del file. Default to False.
|
@@ -532,12 +493,11 @@ class Objects(ApiManager):
|
|
532
493
|
'limit'), params.get('like'), params.get('join'), params.get(
|
533
494
|
'count')
|
534
495
|
if not self._silence_warning:
|
535
|
-
warning_wrong_parameters(self.
|
496
|
+
warning_wrong_parameters(self.objects_dispatchers.__name__,
|
536
497
|
params, official_params_list)
|
537
|
-
response = self.execute('GET', path=
|
538
|
-
|
539
|
-
|
540
|
-
)
|
498
|
+
response = self.execute('GET', path=f'/objects/{uuid}/dispatchers',
|
499
|
+
single_page=single_page, page_size=page_size, warm_start=
|
500
|
+
warm_start, params=params, **kwargs)
|
541
501
|
return response
|
542
502
|
|
543
503
|
def objects_dispatchers_create(self, uuid: str, uuid_dispatcher: str,
|
hive/cookbook/probes.py
CHANGED
@@ -18,6 +18,7 @@ class Probes(ApiManager):
|
|
18
18
|
Keyword Args:
|
19
19
|
sort_by (string optional): Stringa separata da virgole di campi su cui ordinare. Si indica uno o piu campi della risposta e si puo chiedere di ottenere i valori di quei campi in ordine ascendente o discendente. Esempio "Customer:Desc". Default to "". - parameter
|
20
20
|
null_fields (string optional): additional filter - parameter
|
21
|
+
not_fields (string optional): additional filter - parameter
|
21
22
|
uuid_virtual_domain (string optional): additional filter - parameter
|
22
23
|
uuid_probe_type (string optional): additional filter - parameter
|
23
24
|
uuid_host (string optional): additional filter - parameter
|
@@ -36,17 +37,17 @@ class Probes(ApiManager):
|
|
36
37
|
Returns: list"""
|
37
38
|
if kwargs is None:
|
38
39
|
kwargs = dict()
|
39
|
-
official_params_list = ['sort_by', 'null_fields',
|
40
|
+
official_params_list = ['sort_by', 'null_fields', 'not_fields',
|
40
41
|
'uuid_virtual_domain', 'uuid_probe_type', 'uuid_host', 'name',
|
41
42
|
'description', 'notes', 'status', 'extract_severity',
|
42
43
|
'severity', 'skip', 'limit', 'like', 'join', 'count']
|
43
44
|
params.get('sort_by'), params.get('null_fields'), params.get(
|
44
|
-
'
|
45
|
-
'
|
46
|
-
), params.get('
|
47
|
-
'
|
48
|
-
), params.get('
|
49
|
-
), params.get('count')
|
45
|
+
'not_fields'), params.get('uuid_virtual_domain'), params.get(
|
46
|
+
'uuid_probe_type'), params.get('uuid_host'), params.get('name'
|
47
|
+
), params.get('description'), params.get('notes'), params.get(
|
48
|
+
'status'), params.get('extract_severity'), params.get('severity'
|
49
|
+
), params.get('skip'), params.get('limit'), params.get('like'
|
50
|
+
), params.get('join'), params.get('count')
|
50
51
|
if not self._silence_warning:
|
51
52
|
warning_wrong_parameters(self.probes.__name__, params,
|
52
53
|
official_params_list)
|
@@ -71,18 +72,17 @@ class Probes(ApiManager):
|
|
71
72
|
data_profile (array object required): additional filter - payload
|
72
73
|
notes (string optional): additional filter - payload
|
73
74
|
status (string required): additional filter - payload
|
74
|
-
data_profile_backup (array object optional): additional filter - payload
|
75
75
|
|
76
76
|
Returns: list"""
|
77
77
|
if kwargs is None:
|
78
78
|
kwargs = dict()
|
79
79
|
official_payload_list = ['uuid_virtual_domain', 'uuid_probe_type',
|
80
80
|
'uuid_host', 'name', 'description', 'data_profile', 'notes',
|
81
|
-
'status'
|
81
|
+
'status']
|
82
82
|
payload.get('uuid_virtual_domain'), payload.get('uuid_probe_type'
|
83
83
|
), payload.get('uuid_host'), payload.get('name'), payload.get(
|
84
84
|
'description'), payload.get('data_profile'), payload.get('notes'
|
85
|
-
), payload.get('status')
|
85
|
+
), payload.get('status')
|
86
86
|
if not self._silence_warning:
|
87
87
|
warning_wrong_parameters(self.probes_create.__name__, payload,
|
88
88
|
official_payload_list)
|
@@ -92,7 +92,7 @@ class Probes(ApiManager):
|
|
92
92
|
|
93
93
|
def probe(self, uuid: str, warm_start: bool = False,
|
94
94
|
kwargs: dict = None, **params) -> list:
|
95
|
-
"""Read Probe
|
95
|
+
"""Read Probe
|
96
96
|
|
97
97
|
Args:
|
98
98
|
uuid (str, required): uuid
|
@@ -135,7 +135,6 @@ class Probes(ApiManager):
|
|
135
135
|
data_profile (array object optional): additional filter - payload
|
136
136
|
notes (string optional): additional filter - payload
|
137
137
|
status (string optional): additional filter - payload
|
138
|
-
data_profile_backup (array object optional): additional filter - payload
|
139
138
|
last_seen (string optional): additional filter - payload
|
140
139
|
ingest_frequency (number optional): additional filter - payload
|
141
140
|
|
@@ -144,12 +143,12 @@ class Probes(ApiManager):
|
|
144
143
|
kwargs = dict()
|
145
144
|
official_payload_list = ['uuid_virtual_domain', 'uuid_probe_type',
|
146
145
|
'uuid_host', 'name', 'description', 'data_profile', 'notes',
|
147
|
-
'status', '
|
146
|
+
'status', 'last_seen', 'ingest_frequency']
|
148
147
|
payload.get('uuid_virtual_domain'), payload.get('uuid_probe_type'
|
149
148
|
), payload.get('uuid_host'), payload.get('name'), payload.get(
|
150
149
|
'description'), payload.get('data_profile'), payload.get('notes'
|
151
|
-
), payload.get('status'), payload.get('
|
152
|
-
|
150
|
+
), payload.get('status'), payload.get('last_seen'), payload.get(
|
151
|
+
'ingest_frequency')
|
153
152
|
if not self._silence_warning:
|
154
153
|
warning_wrong_parameters(self.probes_put.__name__, payload,
|
155
154
|
official_payload_list)
|
@@ -223,6 +222,7 @@ class Probes(ApiManager):
|
|
223
222
|
not_in (boolean optional): additional filter - parameter
|
224
223
|
name (string optional): additional filter - parameter
|
225
224
|
status (string optional): additional filter - parameter
|
225
|
+
profile (string optional): additional filter - parameter
|
226
226
|
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
227
227
|
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
228
228
|
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
|
@@ -232,11 +232,11 @@ class Probes(ApiManager):
|
|
232
232
|
Returns: list"""
|
233
233
|
if kwargs is None:
|
234
234
|
kwargs = dict()
|
235
|
-
official_params_list = ['not_in', 'name', 'status', '
|
236
|
-
'like', 'join', 'count']
|
235
|
+
official_params_list = ['not_in', 'name', 'status', 'profile',
|
236
|
+
'skip', 'limit', 'like', 'join', 'count']
|
237
237
|
params.get('not_in'), params.get('name'), params.get('status'
|
238
|
-
), params.get('
|
239
|
-
), params.get('join'), params.get('count')
|
238
|
+
), params.get('profile'), params.get('skip'), params.get('limit'
|
239
|
+
), params.get('like'), params.get('join'), params.get('count')
|
240
240
|
if not self._silence_warning:
|
241
241
|
warning_wrong_parameters(self.probes_objects.__name__, params,
|
242
242
|
official_params_list)
|
@@ -338,7 +338,6 @@ class Probes(ApiManager):
|
|
338
338
|
"data_profile": "array object", required
|
339
339
|
"notes": "string", optional
|
340
340
|
"status": "string", required
|
341
|
-
"data_profile_backup": "array object", optional
|
342
341
|
}
|
343
342
|
]
|
344
343
|
|
hive/cookbook/services.py
CHANGED
@@ -560,183 +560,6 @@ class Services(ApiManager):
|
|
560
560
|
warm_start, params=params, payload=payload, **kwargs)
|
561
561
|
return response
|
562
562
|
|
563
|
-
def services_v2_query(self, warm_start: bool = False,
|
564
|
-
single_page: bool = False, page_size: int = 5000,
|
565
|
-
kwargs: dict = None, **params) -> list:
|
566
|
-
"""Service Query V2
|
567
|
-
|
568
|
-
Args:
|
569
|
-
warm_start (bool, optional): salva la risposta in un file e se viene richiamata la stessa funzione con gli stessi argomenti restituisce il contenuto del file. Default to False.
|
570
|
-
single_page (bool, optional): se False la risposta viene ottenuta a step per non appesantire le API. Default to False.
|
571
|
-
page_size (int, optional): Numero di oggetti per pagina se single_page == False. Default to 5000.
|
572
|
-
kwargs (dict, optional): additional parameters for execute. Default to None.
|
573
|
-
**params: additional parameters for the API.
|
574
|
-
|
575
|
-
Keyword Args:
|
576
|
-
sort_by (string optional): Stringa separata da virgole di campi su cui ordinare. Si indica uno o piu campi della risposta e si puo chiedere di ottenere i valori di quei campi in ordine ascendente o discendente. Esempio "Customer:Desc". Default to "". - parameter
|
577
|
-
null_fields (string optional): additional filter - parameter
|
578
|
-
uuid_customer (string optional): additional filter - parameter
|
579
|
-
customer_code (string optional): additional filter - parameter
|
580
|
-
customer_status (string optional): additional filter - parameter
|
581
|
-
uuid_site (string optional): additional filter - parameter
|
582
|
-
site_code (string optional): additional filter - parameter
|
583
|
-
site_description (string optional): additional filter - parameter
|
584
|
-
site_address (string optional): additional filter - parameter
|
585
|
-
site_zip_code (string optional): additional filter - parameter
|
586
|
-
site_city (string optional): additional filter - parameter
|
587
|
-
site_country (string optional): additional filter - parameter
|
588
|
-
site_state_province (string optional): additional filter - parameter
|
589
|
-
site_status (string optional): additional filter - parameter
|
590
|
-
uuid_group (string optional): additional filter - parameter
|
591
|
-
group_name (string optional): additional filter - parameter
|
592
|
-
group_status (string optional): additional filter - parameter
|
593
|
-
group_type (string optional): additional filter - parameter
|
594
|
-
uuid_object (string optional): additional filter - parameter
|
595
|
-
object_name (string optional): additional filter - parameter
|
596
|
-
object_status (string optional): additional filter - parameter
|
597
|
-
object_profile (string optional): additional filter - parameter
|
598
|
-
uuid_metric_type (string optional): additional filter - parameter
|
599
|
-
metric_type_name (string optional): additional filter - parameter
|
600
|
-
metric_type_status (string optional): additional filter - parameter
|
601
|
-
uuid_metric (string optional): additional filter - parameter
|
602
|
-
metric_name (string optional): additional filter - parameter
|
603
|
-
metric_status (string optional): additional filter - parameter
|
604
|
-
metric_profile (string optional): additional filter - parameter
|
605
|
-
service_uuid_parent (string optional): additional filter - parameter
|
606
|
-
uuid_service (string optional): additional filter - parameter
|
607
|
-
service_profile (string optional): additional filter - parameter
|
608
|
-
service_name (string optional): additional filter - parameter
|
609
|
-
service_description (string optional): additional filter - parameter
|
610
|
-
service_status (string optional): additional filter - parameter
|
611
|
-
service_automata_domain (string optional): additional filter - parameter
|
612
|
-
service_uuid_customer (string optional): additional filter - parameter
|
613
|
-
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
614
|
-
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
615
|
-
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
|
616
|
-
join (boolean optional): Se join = true, ogni riga restituita conterra' chiavi aggiuntive che fanno riferimento ad altre entita', con cui la riga ha relazioni 1:1. Default to False - parameter
|
617
|
-
count (boolean optional): Se True nel header della risposta e' presente la dimensione massima a db della chiamata fatta, sconsigliabile perche raddoppia il tempo per chiamata. Default to False. - parameter
|
618
|
-
|
619
|
-
Returns: list"""
|
620
|
-
if kwargs is None:
|
621
|
-
kwargs = dict()
|
622
|
-
official_params_list = ['sort_by', 'null_fields', 'uuid_customer',
|
623
|
-
'customer_code', 'customer_status', 'uuid_site', 'site_code',
|
624
|
-
'site_description', 'site_address', 'site_zip_code',
|
625
|
-
'site_city', 'site_country', 'site_state_province',
|
626
|
-
'site_status', 'uuid_group', 'group_name', 'group_status',
|
627
|
-
'group_type', 'uuid_object', 'object_name', 'object_status',
|
628
|
-
'object_profile', 'uuid_metric_type', 'metric_type_name',
|
629
|
-
'metric_type_status', 'uuid_metric', 'metric_name',
|
630
|
-
'metric_status', 'metric_profile', 'service_uuid_parent',
|
631
|
-
'uuid_service', 'service_profile', 'service_name',
|
632
|
-
'service_description', 'service_status',
|
633
|
-
'service_automata_domain', 'service_uuid_customer', 'skip',
|
634
|
-
'limit', 'like', 'join', 'count']
|
635
|
-
params.get('sort_by'), params.get('null_fields'), params.get(
|
636
|
-
'uuid_customer'), params.get('customer_code'), params.get(
|
637
|
-
'customer_status'), params.get('uuid_site'), params.get('site_code'
|
638
|
-
), params.get('site_description'), params.get('site_address'
|
639
|
-
), params.get('site_zip_code'), params.get('site_city'
|
640
|
-
), params.get('site_country'), params.get('site_state_province'
|
641
|
-
), params.get('site_status'), params.get('uuid_group'), params.get(
|
642
|
-
'group_name'), params.get('group_status'), params.get('group_type'
|
643
|
-
), params.get('uuid_object'), params.get('object_name'
|
644
|
-
), params.get('object_status'), params.get('object_profile'
|
645
|
-
), params.get('uuid_metric_type'), params.get('metric_type_name'
|
646
|
-
), params.get('metric_type_status'), params.get('uuid_metric'
|
647
|
-
), params.get('metric_name'), params.get('metric_status'
|
648
|
-
), params.get('metric_profile'), params.get('service_uuid_parent'
|
649
|
-
), params.get('uuid_service'), params.get('service_profile'
|
650
|
-
), params.get('service_name'), params.get('service_description'
|
651
|
-
), params.get('service_status'), params.get(
|
652
|
-
'service_automata_domain'), params.get('service_uuid_customer'
|
653
|
-
), params.get('skip'), params.get('limit'), params.get('like'
|
654
|
-
), params.get('join'), params.get('count')
|
655
|
-
if not self._silence_warning:
|
656
|
-
warning_wrong_parameters(self.services_v2_query.__name__,
|
657
|
-
params, official_params_list)
|
658
|
-
response = self.execute('GET', path=f'/services/query/v2',
|
659
|
-
single_page=single_page, page_size=page_size, warm_start=
|
660
|
-
warm_start, params=params, **kwargs)
|
661
|
-
return response
|
662
|
-
|
663
|
-
def services_v2_query_bulk(self, payload: dict = False,
|
664
|
-
warm_start: bool = False, single_page: bool = False,
|
665
|
-
page_size: int = 5000, kwargs: dict = None, **params) -> list:
|
666
|
-
"""Service Query Lists V2
|
667
|
-
|
668
|
-
Args:
|
669
|
-
payload (dict, optional): additional parameters for the API.
|
670
|
-
warm_start (bool, optional): salva la risposta in un file e se viene richiamata la stessa funzione con gli stessi argomenti restituisce il contenuto del file. Default to False.
|
671
|
-
single_page (bool, optional): se False la risposta viene ottenuta a step per non appesantire le API. Default to False.
|
672
|
-
page_size (int, optional): Numero di oggetti per pagina se single_page == False. Default to 5000.
|
673
|
-
kwargs (dict, optional): additional parameters for execute. Default to None.
|
674
|
-
**params: additional parameters for the API.
|
675
|
-
|
676
|
-
Keyword Args:
|
677
|
-
sort_by (string optional): Stringa separata da virgole di campi su cui ordinare. Si indica uno o piu campi della risposta e si puo chiedere di ottenere i valori di quei campi in ordine ascendente o discendente. Esempio "Customer:Desc". Default to "". - parameter
|
678
|
-
null_fields (string optional): additional filter - parameter
|
679
|
-
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
680
|
-
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
681
|
-
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
|
682
|
-
join (boolean optional): Se join = true, ogni riga restituita conterra' chiavi aggiuntive che fanno riferimento ad altre entita', con cui la riga ha relazioni 1:1. Default to False - parameter
|
683
|
-
count (boolean optional): Se True nel header della risposta e' presente la dimensione massima a db della chiamata fatta, sconsigliabile perche raddoppia il tempo per chiamata. Default to False. - parameter
|
684
|
-
|
685
|
-
Examples:
|
686
|
-
payload =
|
687
|
-
{
|
688
|
-
"uuid_customer": "array", optional
|
689
|
-
"customer_code": "array", optional
|
690
|
-
"customer_status": "array", optional
|
691
|
-
"uuid_site": "array", optional
|
692
|
-
"site_code": "array", optional
|
693
|
-
"site_description": "array", optional
|
694
|
-
"site_address": "array", optional
|
695
|
-
"site_zip_code": "array", optional
|
696
|
-
"site_city": "array", optional
|
697
|
-
"site_country": "array", optional
|
698
|
-
"site_state_province": "array", optional
|
699
|
-
"site_status": "array", optional
|
700
|
-
"uuid_group": "array", optional
|
701
|
-
"group_name": "array", optional
|
702
|
-
"group_status": "array", optional
|
703
|
-
"group_type": "array", optional
|
704
|
-
"uuid_object": "array", optional
|
705
|
-
"object_name": "array", optional
|
706
|
-
"object_status": "array", optional
|
707
|
-
"object_profile": "array", optional
|
708
|
-
"uuid_metric_type": "array", optional
|
709
|
-
"metric_type_name": "array", optional
|
710
|
-
"metric_type_status": "array", optional
|
711
|
-
"uuid_metric": "array", optional
|
712
|
-
"metric_name": "array", optional
|
713
|
-
"metric_status": "array", optional
|
714
|
-
"metric_profile": "array", optional
|
715
|
-
"service_uuid_parent": "array", optional
|
716
|
-
"uuid_service": "array", optional
|
717
|
-
"service_profile": "array", optional
|
718
|
-
"service_name": "array", optional
|
719
|
-
"service_description": "array", optional
|
720
|
-
"service_status": "array", optional
|
721
|
-
"service_uuid_customer": "array", optional
|
722
|
-
}
|
723
|
-
|
724
|
-
Returns: list"""
|
725
|
-
if kwargs is None:
|
726
|
-
kwargs = dict()
|
727
|
-
official_params_list = ['sort_by', 'null_fields', 'skip', 'limit',
|
728
|
-
'like', 'join', 'count']
|
729
|
-
params.get('sort_by'), params.get('null_fields'), params.get('skip'
|
730
|
-
), params.get('limit'), params.get('like'), params.get('join'
|
731
|
-
), params.get('count')
|
732
|
-
if not self._silence_warning:
|
733
|
-
warning_wrong_parameters(self.services_v2_query_bulk.__name__,
|
734
|
-
params, official_params_list)
|
735
|
-
response = self.execute('POST', path=f'/services/query/v2',
|
736
|
-
single_page=single_page, page_size=page_size, warm_start=
|
737
|
-
warm_start, params=params, payload=payload, **kwargs)
|
738
|
-
return response
|
739
|
-
|
740
563
|
def services_last_status_query(self, warm_start: bool = False,
|
741
564
|
single_page: bool = False, page_size: int = 5000,
|
742
565
|
kwargs: dict = None, **params) -> list:
|
hive/cookbook/sites.py
CHANGED
@@ -6,7 +6,7 @@ class Sites(ApiManager):
|
|
6
6
|
|
7
7
|
def sites(self, warm_start: bool = False, single_page: bool = False,
|
8
8
|
page_size: int = 5000, kwargs: dict = None, **params) -> list:
|
9
|
-
"""Read Sites
|
9
|
+
"""Read Sites
|
10
10
|
|
11
11
|
Args:
|
12
12
|
warm_start (bool, optional): salva la risposta in un file e se viene richiamata la stessa funzione con gli stessi argomenti restituisce il contenuto del file. Default to False.
|
@@ -18,6 +18,7 @@ class Sites(ApiManager):
|
|
18
18
|
Keyword Args:
|
19
19
|
sort_by (string optional): Stringa separata da virgole di campi su cui ordinare. Si indica uno o piu campi della risposta e si puo chiedere di ottenere i valori di quei campi in ordine ascendente o discendente. Esempio "Customer:Desc". Default to "". - parameter
|
20
20
|
null_fields (string optional): additional filter - parameter
|
21
|
+
not_fields (string optional): additional filter - parameter
|
21
22
|
uuid_customer (string optional): additional filter - parameter
|
22
23
|
type (string optional): additional filter - parameter
|
23
24
|
code (string optional): additional filter - parameter
|
@@ -42,20 +43,20 @@ class Sites(ApiManager):
|
|
42
43
|
Returns: list"""
|
43
44
|
if kwargs is None:
|
44
45
|
kwargs = dict()
|
45
|
-
official_params_list = ['sort_by', 'null_fields', '
|
46
|
-
'type', 'code', 'description', 'address',
|
47
|
-
'
|
48
|
-
'
|
49
|
-
'skip', 'limit', 'like', 'join', 'count']
|
46
|
+
official_params_list = ['sort_by', 'null_fields', 'not_fields',
|
47
|
+
'uuid_customer', 'type', 'code', 'description', 'address',
|
48
|
+
'zip_code', 'city', 'country', 'notes', 'state_province',
|
49
|
+
'status', 'severity', 'filter_group_types', 'count_children',
|
50
|
+
'extract_severity', 'skip', 'limit', 'like', 'join', 'count']
|
50
51
|
params.get('sort_by'), params.get('null_fields'), params.get(
|
51
|
-
'
|
52
|
-
), params.get('
|
53
|
-
'
|
54
|
-
'
|
55
|
-
), params.get('
|
56
|
-
), params.get('count_children'), params.get(
|
57
|
-
), params.get('skip'), params.get('limit'
|
58
|
-
), params.get('join'), params.get('count')
|
52
|
+
'not_fields'), params.get('uuid_customer'), params.get('type'
|
53
|
+
), params.get('code'), params.get('description'), params.get(
|
54
|
+
'address'), params.get('zip_code'), params.get('city'), params.get(
|
55
|
+
'country'), params.get('notes'), params.get('state_province'
|
56
|
+
), params.get('status'), params.get('severity'), params.get(
|
57
|
+
'filter_group_types'), params.get('count_children'), params.get(
|
58
|
+
'extract_severity'), params.get('skip'), params.get('limit'
|
59
|
+
), params.get('like'), params.get('join'), params.get('count')
|
59
60
|
if not self._silence_warning:
|
60
61
|
warning_wrong_parameters(self.sites.__name__, params,
|
61
62
|
official_params_list)
|
hive/cookbook/tree_hierarchy.py
CHANGED
@@ -317,3 +317,90 @@ class TreeHierarchy(ApiManager):
|
|
317
317
|
single_page=single_page, page_size=page_size, warm_start=
|
318
318
|
warm_start, params=params, **kwargs)
|
319
319
|
return response
|
320
|
+
|
321
|
+
def tree_hierarchy_metrics_average(self, warm_start: bool = False,
|
322
|
+
single_page: bool = False, page_size: int = 5000,
|
323
|
+
kwargs: dict = None, **params) -> list:
|
324
|
+
"""Tree Hierarchy Metrics Average
|
325
|
+
|
326
|
+
Args:
|
327
|
+
warm_start (bool, optional): salva la risposta in un file e se viene richiamata la stessa funzione con gli stessi argomenti restituisce il contenuto del file. Default to False.
|
328
|
+
single_page (bool, optional): se False la risposta viene ottenuta a step per non appesantire le API. Default to False.
|
329
|
+
page_size (int, optional): Numero di oggetti per pagina se single_page == False. Default to 5000.
|
330
|
+
kwargs (dict, optional): additional parameters for execute. Default to None.
|
331
|
+
**params: additional parameters for the API.
|
332
|
+
|
333
|
+
Keyword Args:
|
334
|
+
sort_by (string optional): Stringa separata da virgole di campi su cui ordinare. Si indica uno o piu campi della risposta e si puo chiedere di ottenere i valori di quei campi in ordine ascendente o discendente. Esempio "Customer:Desc". Default to "". - parameter
|
335
|
+
null_fields (string optional): additional filter - parameter
|
336
|
+
ts_start (string optional): additional filter - parameter
|
337
|
+
ts_end (string optional): additional filter - parameter
|
338
|
+
uuid_customer (string optional): additional filter - parameter
|
339
|
+
customer_code (string optional): additional filter - parameter
|
340
|
+
customer_status (string optional): additional filter - parameter
|
341
|
+
uuid_site (string optional): additional filter - parameter
|
342
|
+
site_code (string optional): additional filter - parameter
|
343
|
+
site_description (string optional): additional filter - parameter
|
344
|
+
site_address (string optional): additional filter - parameter
|
345
|
+
site_zip_code (string optional): additional filter - parameter
|
346
|
+
site_city (string optional): additional filter - parameter
|
347
|
+
site_country (string optional): additional filter - parameter
|
348
|
+
site_state_province (string optional): additional filter - parameter
|
349
|
+
site_status (string optional): additional filter - parameter
|
350
|
+
uuid_group (string optional): additional filter - parameter
|
351
|
+
group_name (string optional): additional filter - parameter
|
352
|
+
group_status (string optional): additional filter - parameter
|
353
|
+
group_type (string optional): additional filter - parameter
|
354
|
+
uuid_object (string optional): additional filter - parameter
|
355
|
+
object_name (string optional): additional filter - parameter
|
356
|
+
object_status (string optional): additional filter - parameter
|
357
|
+
object_profile (string optional): additional filter - parameter
|
358
|
+
metric_type_name (string optional): additional filter - parameter
|
359
|
+
metric_type_status (string optional): additional filter - parameter
|
360
|
+
uuid_metric (string optional): additional filter - parameter
|
361
|
+
metric_name (string optional): additional filter - parameter
|
362
|
+
metric_status (string optional): additional filter - parameter
|
363
|
+
metric_profile (string optional): additional filter - parameter
|
364
|
+
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
365
|
+
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
366
|
+
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
|
367
|
+
join (boolean optional): Se join = true, ogni riga restituita conterra' chiavi aggiuntive che fanno riferimento ad altre entita', con cui la riga ha relazioni 1:1. Default to False - parameter
|
368
|
+
count (boolean optional): Se True nel header della risposta e' presente la dimensione massima a db della chiamata fatta, sconsigliabile perche raddoppia il tempo per chiamata. Default to False. - parameter
|
369
|
+
|
370
|
+
Returns: list"""
|
371
|
+
if kwargs is None:
|
372
|
+
kwargs = dict()
|
373
|
+
official_params_list = ['sort_by', 'null_fields', 'ts_start',
|
374
|
+
'ts_end', 'uuid_customer', 'customer_code', 'customer_status',
|
375
|
+
'uuid_site', 'site_code', 'site_description', 'site_address',
|
376
|
+
'site_zip_code', 'site_city', 'site_country',
|
377
|
+
'site_state_province', 'site_status', 'uuid_group',
|
378
|
+
'group_name', 'group_status', 'group_type', 'uuid_object',
|
379
|
+
'object_name', 'object_status', 'object_profile',
|
380
|
+
'metric_type_name', 'metric_type_status', 'uuid_metric',
|
381
|
+
'metric_name', 'metric_status', 'metric_profile', 'skip',
|
382
|
+
'limit', 'like', 'join', 'count']
|
383
|
+
params.get('sort_by'), params.get('null_fields'), params.get('ts_start'
|
384
|
+
), params.get('ts_end'), params.get('uuid_customer'), params.get(
|
385
|
+
'customer_code'), params.get('customer_status'), params.get(
|
386
|
+
'uuid_site'), params.get('site_code'), params.get(
|
387
|
+
'site_description'), params.get('site_address'), params.get(
|
388
|
+
'site_zip_code'), params.get('site_city'), params.get(
|
389
|
+
'site_country'), params.get('site_state_province'), params.get(
|
390
|
+
'site_status'), params.get('uuid_group'), params.get('group_name'
|
391
|
+
), params.get('group_status'), params.get('group_type'
|
392
|
+
), params.get('uuid_object'), params.get('object_name'
|
393
|
+
), params.get('object_status'), params.get('object_profile'
|
394
|
+
), params.get('metric_type_name'), params.get('metric_type_status'
|
395
|
+
), params.get('uuid_metric'), params.get('metric_name'
|
396
|
+
), params.get('metric_status'), params.get('metric_profile'
|
397
|
+
), params.get('skip'), params.get('limit'), params.get('like'
|
398
|
+
), params.get('join'), params.get('count')
|
399
|
+
if not self._silence_warning:
|
400
|
+
warning_wrong_parameters(self.tree_hierarchy_metrics_average.
|
401
|
+
__name__, params, official_params_list)
|
402
|
+
response = self.execute('GET', path=
|
403
|
+
f'/tree_hierarchy/metrics/average/', single_page=single_page,
|
404
|
+
page_size=page_size, warm_start=warm_start, params=params, **kwargs
|
405
|
+
)
|
406
|
+
return response
|
hive/version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
version = '3.
|
1
|
+
version = '3.26.0'
|
@@ -4,7 +4,7 @@ hive/decorators.py,sha256=qvXBMfkzmJ3nHzpnX96thrTdZjWuw4WAqYaxsJCfRug,12110
|
|
4
4
|
hive/exceptions.py,sha256=kTJSPMViU2ZhF_ENbL_i-skU3YEv_ViJH2PpUQ6ums8,136
|
5
5
|
hive/infrastrucure_keys.py,sha256=UzgXex6tQsglowhKeb45e7vw4u7kh2wM0YscQPorodU,4095
|
6
6
|
hive/tools.py,sha256=Oi_d6wphtAS4f1wOhFzdXZj8Au1nwZ-UrRvIJDBQLMo,1371
|
7
|
-
hive/version.py,sha256=
|
7
|
+
hive/version.py,sha256=_nwLfdhtxlGEaH6NRTFkaMnUi40r5CdZrFiyqBQ3M9s,18
|
8
8
|
hive/cookbook/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
9
|
hive/cookbook/acl_docs.py,sha256=0xr7Vb9121vhsiZjQaKvuAt4gKlXOO4aUJM472HeARw,786
|
10
10
|
hive/cookbook/acl_overrides.py,sha256=1maKXIE-Ny4qqX5zZkWaB-Syrh8wNkQzEMpZFvueJW4,9910
|
@@ -12,14 +12,14 @@ hive/cookbook/analytics.py,sha256=1OMwo0vUuOAtT8WNz6HY6NJ-JTLpru4vTlYtdiczDrg,35
|
|
12
12
|
hive/cookbook/anomalies.py,sha256=VnuIWGH0om2XuFiz9jlFjQWWWcIdbr3fmUECfiqvM0A,11208
|
13
13
|
hive/cookbook/apple.py,sha256=1Fpp8KCCBWs9-ZOMiLktxm9VthI7N8L5DwXQYTQ8CMs,1170
|
14
14
|
hive/cookbook/automata_ingest.py,sha256=LFwpT8NXJActB2iDShm2G8iwim72MEZBs2GA1OlvOzg,1954
|
15
|
-
hive/cookbook/calendars.py,sha256=
|
15
|
+
hive/cookbook/calendars.py,sha256=xouySHqDfciqg15jFkJXClEcvx3AiDliy-OdEk-Pd2g,24807
|
16
16
|
hive/cookbook/contacts.py,sha256=vhkBjaxFoQA5P-GSGLsgtcvo3rbAPfHOCiB87tXtQsM,39183
|
17
17
|
hive/cookbook/cost_tagging.py,sha256=wwLgo3YaDI4Xm7QcQVlf4kXxz8kPP7J7Qh4ddzuaDro,7779
|
18
18
|
hive/cookbook/cost_tags.py,sha256=cMfcUJTThH-Rba6pC71cs_JouruiLAQ8pf7YLwkHqSc,10038
|
19
19
|
hive/cookbook/cost_tree_nodes.py,sha256=62YYjkTjkL7ob3hql7-PF9r_hnqDWcBL59aDxd28ECg,14256
|
20
20
|
hive/cookbook/cost_tree_resources.py,sha256=dWYkRNpkQ4nhg0zM8mIy0HymTHSMZm2G_Stnjvv9jSs,14732
|
21
21
|
hive/cookbook/cost_views.py,sha256=oPi-RA07W4SmZjdGhqSzVNoop9U6rZPLGJImS4hyqa8,11945
|
22
|
-
hive/cookbook/customers.py,sha256=
|
22
|
+
hive/cookbook/customers.py,sha256=D7QVjUfHJLKRhW2HGjxO4P3xLy42MbMwvVfFHEjwA7g,81479
|
23
23
|
hive/cookbook/dashboards.py,sha256=oiv_yR6WKLd-JS7S54KCxh7OWnhCiT5v1axWcZFH4fI,33600
|
24
24
|
hive/cookbook/dispatchers.py,sha256=HpAWumJg-Clb_D0-EqXV7RvLpe9D9qFztcj3pnHAY-8,59735
|
25
25
|
hive/cookbook/downtimes.py,sha256=NHA_W64tJk1YO9GmshyNstROzPHYJHAAwZnIFfjZh_I,48511
|
@@ -28,7 +28,7 @@ hive/cookbook/features.py,sha256=XkIkZb1_-ybEnJ6Dx9WdVkvtLt8Ys8AitL9aNNy7o_s,130
|
|
28
28
|
hive/cookbook/files.py,sha256=xPQcEsThYGVu2CSEm_GK0yjbzOeJSyV2fNFOh9-xKoo,4759
|
29
29
|
hive/cookbook/firmware_updates.py,sha256=2N4dwLWWOq6it0f3SbLYixzAkATZ0O9v5lX-6gQwMZE,5996
|
30
30
|
hive/cookbook/google.py,sha256=fxequ6Vsd7kzWyP2VV2xs8JmLUJCiw_8P7gsuYZDoM0,1430
|
31
|
-
hive/cookbook/groups.py,sha256=
|
31
|
+
hive/cookbook/groups.py,sha256=n1QxPzqHVv3k2KKfthBlkA-_VnWSHhnFQd1WRQLFrFk,42009
|
32
32
|
hive/cookbook/jobs.py,sha256=VlmqbBNMx-dBMsaolHIlxJcuFTGIbPfoNOOBYhFOsnQ,4105
|
33
33
|
hive/cookbook/last_object_status.py,sha256=hVXt2fBxzkuGCXg-Q_ovhIEk1Zx5irv2yV8d9GKjjQk,15407
|
34
34
|
hive/cookbook/last_status.py,sha256=TvDp6wvpZTpTfTZAAkQWwUdTrB2tHBOylxlZPQboAls,13161
|
@@ -36,15 +36,15 @@ hive/cookbook/last_status_v2.py,sha256=Busbt6O1PWno81IdZRa6v8mQjDfj32Y2qMz1xFzyP
|
|
36
36
|
hive/cookbook/login.py,sha256=KDC_4Pp49H0YjUaS-F7O9goriCquurPC8-TpG7ugT6U,25618
|
37
37
|
hive/cookbook/messages.py,sha256=i9zVVj2wQ0Sk81hhNbEZtOURdbqryLh6oIUC97ScNWE,15503
|
38
38
|
hive/cookbook/metric_ingest.py,sha256=V6JH_ZpePM_3GBRoVc5U7hHZul45Yyf2CRcXEXNJgMI,2519
|
39
|
-
hive/cookbook/metric_types.py,sha256=
|
40
|
-
hive/cookbook/metrics.py,sha256=
|
39
|
+
hive/cookbook/metric_types.py,sha256=XzwMCy2YkIaigKiQKhuVYyw0RC-QxmBxJcJBMJdczg4,29177
|
40
|
+
hive/cookbook/metrics.py,sha256=kAHR6-e2n5mqfJBjBHAuEwH1muUazo3vT1lkTsKSKcU,71264
|
41
41
|
hive/cookbook/microsoft.py,sha256=X8Q9FGw7WbnsMyTdWUuB8R5cAk-AJ8AZVLDpC0vGrt4,1453
|
42
42
|
hive/cookbook/notification_provider_types.py,sha256=tpSeAoluy6QQSnR4JtJQfH3O_qwcSE-lF04dWFle9yo,13463
|
43
43
|
hive/cookbook/notification_providers.py,sha256=6dKi_wDv99HzIybTi6isLjnNNKGNpb4rnhiJzhRRYH8,11095
|
44
|
-
hive/cookbook/objects.py,sha256=
|
44
|
+
hive/cookbook/objects.py,sha256=b-TmyC9LLp1ag-Gv4hdqZOgh_auvgFpXq2icO1q1qlU,46776
|
45
45
|
hive/cookbook/opening_reasons.py,sha256=fwq0E51Qs-hnyUMY242GYf8Vr5YtcJZy2SZtjZVXTE8,11928
|
46
46
|
hive/cookbook/probe_types.py,sha256=isKPKbMr19_DVtI_0Erk4i3g6Hh_yWxOo6RbTCOkCxw,12992
|
47
|
-
hive/cookbook/probes.py,sha256=
|
47
|
+
hive/cookbook/probes.py,sha256=0MfDnsKqednB-MZ6APqQDy5QGTk1eJBMkOEF3O8o25g,23860
|
48
48
|
hive/cookbook/probes_log_ingest.py,sha256=0D5szbqHOujPbGQ_nyZZZpob4damvWjo1FSw9iDf0fM,1661
|
49
49
|
hive/cookbook/profile_topics.py,sha256=Wp209fmSsrEZ3jnn6AYHjX7jJ12zfFDV-T9liGUHuXI,10253
|
50
50
|
hive/cookbook/qr_code.py,sha256=Ra4hk5hHEiyhVwFIFmtDphn_cvS7TUGECnDqLEl48zA,779
|
@@ -52,11 +52,11 @@ hive/cookbook/questions.py,sha256=VMf1WWHYFfegujy5bpI7kxVlokOpHraKW7JRppoPvYQ,80
|
|
52
52
|
hive/cookbook/reason_for_closure.py,sha256=PqDleTYc6RJmhPrJ7q-A9RgCc6GEC05x_hU9R2sXIFE,11012
|
53
53
|
hive/cookbook/retention_rules.py,sha256=brW64MqYrl4XNYN7ZxojVDWXpdBV4fRpR7a2A1ya2zM,7958
|
54
54
|
hive/cookbook/schedules.py,sha256=ldI-hpOx-EpCy3oSOVczk8114QL2bS_2rsjNI6TEMjc,6916
|
55
|
-
hive/cookbook/services.py,sha256=
|
56
|
-
hive/cookbook/sites.py,sha256=
|
55
|
+
hive/cookbook/services.py,sha256=DSqXKZ_YrZ2hjW3wqPz3VA2l6hK6HM7OmhThvAXUnzM,61253
|
56
|
+
hive/cookbook/sites.py,sha256=avG1K6vc4pxrY3wDo_U9Xs9-gZVRE8_XnCggi7DyZVI,33492
|
57
57
|
hive/cookbook/terms_and_conditions.py,sha256=cc01N2N41yAbFa5HCvY2Ur4nujSQb1VnEbsrWVq1znY,4669
|
58
58
|
hive/cookbook/tests.py,sha256=MS9KsrquXKL3TY-1-EQ1TjwNELuNPDWkL4yl8Rido2o,1416
|
59
|
-
hive/cookbook/tree_hierarchy.py,sha256=
|
59
|
+
hive/cookbook/tree_hierarchy.py,sha256=jsFBbfOtZQNYpiSw9f761mFWPeHGE2H9NFePwQ5JVD4,30172
|
60
60
|
hive/cookbook/tree_hierarchy_v2.py,sha256=r2aYianO9sUQa2-cec9wA3j7iWLGSLHBVSM1n3Vh8sA,23805
|
61
61
|
hive/cookbook/ts_automata_state.py,sha256=51CXpeq3Km5Lg8OJbyEvnGRpJT9CvB3v_IV0jiXOp1Q,6260
|
62
62
|
hive/cookbook/ts_cost_azure_raw.py,sha256=XILGs9zAePOz4mCjpbZIpjgT2yd1P0Adg8lymmwm83o,36355
|
@@ -73,8 +73,8 @@ hive/cookbook/virtual_domains.py,sha256=N3dp3pjkO-5jni3KBcCukRqcmVqAFYCDV6dgVXrH
|
|
73
73
|
hive/cookbook/webhooks.py,sha256=6ZSJfAiEjuh4Y4pfkUNjUYquBwxhD2KVkcVU3BcNkDc,7572
|
74
74
|
hive/cookbook/widget_groups.py,sha256=GY7mBh72HzI9RRMCwnmJ-fildtZ3w4BrPDUdNfNoVyk,16018
|
75
75
|
hive/cookbook/widgets.py,sha256=0Maw5gRAnph1Mu9ZlgzPT2Di_kJFeGKOOkhCGCjnelc,23497
|
76
|
-
xautomata_hive-3.
|
77
|
-
xautomata_hive-3.
|
78
|
-
xautomata_hive-3.
|
79
|
-
xautomata_hive-3.
|
80
|
-
xautomata_hive-3.
|
76
|
+
xautomata_hive-3.26.0.dist-info/licenses/LICENSE,sha256=CFT1oIPm4kciOjwep2r1LQnpATugddSy3D839fsmgFs,1065
|
77
|
+
xautomata_hive-3.26.0.dist-info/METADATA,sha256=135Vk5Wmq6oTaSGE79PcI0gE1gWa91E_f-xYud990uk,10924
|
78
|
+
xautomata_hive-3.26.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
79
|
+
xautomata_hive-3.26.0.dist-info/top_level.txt,sha256=pLpVAuviHGk3pzaFXU-4GKttxGTGAbFoWK8JvUl1jHQ,5
|
80
|
+
xautomata_hive-3.26.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|