xautomata-hive 3.22.3__py3-none-any.whl → 3.23.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 +1 -1
- hive/cookbook/services.py +90 -90
- hive/version.py +1 -1
- {xautomata_hive-3.22.3.dist-info → xautomata_hive-3.23.0.dist-info}/METADATA +1 -1
- {xautomata_hive-3.22.3.dist-info → xautomata_hive-3.23.0.dist-info}/RECORD +8 -8
- {xautomata_hive-3.22.3.dist-info → xautomata_hive-3.23.0.dist-info}/WHEEL +0 -0
- {xautomata_hive-3.22.3.dist-info → xautomata_hive-3.23.0.dist-info}/licenses/LICENSE +0 -0
- {xautomata_hive-3.22.3.dist-info → xautomata_hive-3.23.0.dist-info}/top_level.txt +0 -0
hive/api.py
CHANGED
@@ -121,7 +121,7 @@ class ApiManager:
|
|
121
121
|
bulk = True if path == '/probes_log_ingest/' else bulk # il metric_ingest e' una bulk ma non compare nel nome
|
122
122
|
read = True if 'read' in path else False # verifico dalla path se è una api get, valido solo per le bulk
|
123
123
|
query = True if 'query' in path else False # verifico dalla path se è una api get, valido solo per le bulk
|
124
|
-
query = True if path == '/last_status
|
124
|
+
query = True if path == '/last_status' and mode == 'POST' else query # caso specifico della last_status che non ha features riconoscibili
|
125
125
|
|
126
126
|
authentication = {'Authorization': f'Bearer {self.token}'}
|
127
127
|
_headers_ = headers.copy().update(authentication) if headers else authentication
|
hive/cookbook/services.py
CHANGED
@@ -854,96 +854,96 @@ class Services(ApiManager):
|
|
854
854
|
warm_start, params=params, **kwargs)
|
855
855
|
return response
|
856
856
|
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
857
|
+
def services_last_status_query_bulk(self, payload: dict = False,
|
858
|
+
warm_start: bool = False, single_page: bool = False,
|
859
|
+
page_size: int = 5000, kwargs: dict = None, **params) -> list:
|
860
|
+
"""Service Query Last Status List
|
861
|
+
|
862
|
+
Args:
|
863
|
+
payload (dict, optional): additional parameters for the API.
|
864
|
+
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.
|
865
|
+
single_page (bool, optional): se False la risposta viene ottenuta a step per non appesantire le API. Default to False.
|
866
|
+
page_size (int, optional): Numero di oggetti per pagina se single_page == False. Default to 5000.
|
867
|
+
kwargs (dict, optional): additional parameters for execute. Default to None.
|
868
|
+
**params: additional parameters for the API.
|
869
|
+
|
870
|
+
Keyword Args:
|
871
|
+
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
|
872
|
+
null_fields (string optional): additional filter - parameter
|
873
|
+
timestamp_start (string optional): additional filter - parameter
|
874
|
+
timestamp_end (string optional): additional filter - parameter
|
875
|
+
database_timestamp_start (string optional): additional filter - parameter
|
876
|
+
database_timestamp_end (string optional): additional filter - parameter
|
877
|
+
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
878
|
+
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
879
|
+
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
|
880
|
+
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
|
881
|
+
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
|
882
|
+
|
883
|
+
Examples:
|
884
|
+
payload =
|
885
|
+
{
|
886
|
+
"uuid_customer": "array", optional
|
887
|
+
"customer_code": "array", optional
|
888
|
+
"customer_status": "array", optional
|
889
|
+
"uuid_site": "array", optional
|
890
|
+
"site_code": "array", optional
|
891
|
+
"site_description": "array", optional
|
892
|
+
"site_address": "array", optional
|
893
|
+
"site_zip_code": "array", optional
|
894
|
+
"site_city": "array", optional
|
895
|
+
"site_country": "array", optional
|
896
|
+
"site_state_province": "array", optional
|
897
|
+
"site_status": "array", optional
|
898
|
+
"uuid_group": "array", optional
|
899
|
+
"group_name": "array", optional
|
900
|
+
"group_status": "array", optional
|
901
|
+
"group_type": "array", optional
|
902
|
+
"group_uuid_virtual_domain": "array", optional
|
903
|
+
"uuid_object": "array", optional
|
904
|
+
"object_name": "array", optional
|
905
|
+
"object_status": "array", optional
|
906
|
+
"object_profile": "array", optional
|
907
|
+
"uuid_metric_type": "array", optional
|
908
|
+
"metric_type_name": "array", optional
|
909
|
+
"metric_type_status": "array", optional
|
910
|
+
"uuid_metric": "array", optional
|
911
|
+
"metric_name": "array", optional
|
912
|
+
"metric_status": "array", optional
|
913
|
+
"metric_profile": "array", optional
|
914
|
+
"service_uuid_parent": "array", optional
|
915
|
+
"uuid_service": "array", optional
|
916
|
+
"service_profile": "array", optional
|
917
|
+
"service_name": "array", optional
|
918
|
+
"service_description": "array", optional
|
919
|
+
"service_status": "array", optional
|
920
|
+
"service_automata_domain": "array", optional
|
921
|
+
"service_uuid_customer": "array", optional
|
922
|
+
"status": "array", optional
|
923
|
+
"ranking": "array", optional
|
924
|
+
"description": "array", optional
|
925
|
+
"unit": "array", optional
|
926
|
+
"value": "array", optional
|
927
|
+
}
|
928
|
+
|
929
|
+
Returns: list"""
|
930
|
+
if kwargs is None:
|
931
|
+
kwargs = dict()
|
932
|
+
official_params_list = ['sort_by', 'null_fields', 'timestamp_start',
|
933
|
+
'timestamp_end', 'database_timestamp_start',
|
934
|
+
'database_timestamp_end', 'skip', 'limit', 'like', 'join', 'count']
|
935
|
+
params.get('sort_by'), params.get('null_fields'), params.get(
|
936
|
+
'timestamp_start'), params.get('timestamp_end'), params.get(
|
937
|
+
'database_timestamp_start'), params.get('database_timestamp_end'
|
938
|
+
), params.get('skip'), params.get('limit'), params.get('like'
|
939
|
+
), params.get('join'), params.get('count')
|
940
|
+
if not self._silence_warning:
|
941
|
+
warning_wrong_parameters(self.services_last_status_query_bulk.
|
942
|
+
__name__, params, official_params_list)
|
943
|
+
response = self.execute('POST', path=f'/services/query/last_status',
|
944
|
+
single_page=single_page, page_size=page_size, warm_start=
|
945
|
+
warm_start, params=params, payload=payload, **kwargs)
|
946
|
+
return response
|
947
947
|
|
948
948
|
def services_check_rules_create(self, params: dict = False,
|
949
949
|
kwargs: dict = None, **payload) -> list:
|
hive/version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
version = '3.
|
1
|
+
version = '3.23.0'
|
@@ -1,10 +1,10 @@
|
|
1
1
|
hive/__init__.py,sha256=UjH5QfSfRGu2FR5_StfVbEtL_fuGS2Z_iZXmf1nx4AE,68
|
2
|
-
hive/api.py,sha256
|
2
|
+
hive/api.py,sha256=-vqYY9k8oRN5LCM54UJ8aC10aPF04erWongiQEaEcN4,42111
|
3
3
|
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=n8DzVlmd2BgHdffhx8kgHFqVDhH8K4bA-JYzkSDmymc,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
|
@@ -52,7 +52,7 @@ 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=
|
55
|
+
hive/cookbook/services.py,sha256=kRnkasGlUVnu6QD3CWjt9F4HVNCR9XaWb1dVLbSt_Sw,73265
|
56
56
|
hive/cookbook/sites.py,sha256=WLXdnxrMYkT3bCM2Mz5sjQzZzqRDmCGiMl4BtEWJ1WU,33383
|
57
57
|
hive/cookbook/terms_and_conditions.py,sha256=cc01N2N41yAbFa5HCvY2Ur4nujSQb1VnEbsrWVq1znY,4669
|
58
58
|
hive/cookbook/tree_hierarchy.py,sha256=ldJ1hMFQcghA6P2gRHheLjG74X8B6Z1JaupeAW9vg9s,23749
|
@@ -72,8 +72,8 @@ hive/cookbook/virtual_domains.py,sha256=N3dp3pjkO-5jni3KBcCukRqcmVqAFYCDV6dgVXrH
|
|
72
72
|
hive/cookbook/webhooks.py,sha256=6ZSJfAiEjuh4Y4pfkUNjUYquBwxhD2KVkcVU3BcNkDc,7572
|
73
73
|
hive/cookbook/widget_groups.py,sha256=GY7mBh72HzI9RRMCwnmJ-fildtZ3w4BrPDUdNfNoVyk,16018
|
74
74
|
hive/cookbook/widgets.py,sha256=0Maw5gRAnph1Mu9ZlgzPT2Di_kJFeGKOOkhCGCjnelc,23497
|
75
|
-
xautomata_hive-3.
|
76
|
-
xautomata_hive-3.
|
77
|
-
xautomata_hive-3.
|
78
|
-
xautomata_hive-3.
|
79
|
-
xautomata_hive-3.
|
75
|
+
xautomata_hive-3.23.0.dist-info/licenses/LICENSE,sha256=CFT1oIPm4kciOjwep2r1LQnpATugddSy3D839fsmgFs,1065
|
76
|
+
xautomata_hive-3.23.0.dist-info/METADATA,sha256=YplTSCZLCFG_URZeo4qmtNAIDy3B11snOuwm657IT70,10924
|
77
|
+
xautomata_hive-3.23.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
78
|
+
xautomata_hive-3.23.0.dist-info/top_level.txt,sha256=pLpVAuviHGk3pzaFXU-4GKttxGTGAbFoWK8JvUl1jHQ,5
|
79
|
+
xautomata_hive-3.23.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|