xautomata-hive 3.23.0__py3-none-any.whl → 3.24.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 CHANGED
@@ -527,6 +527,7 @@ from hive.cookbook.sites import Sites
527
527
  from hive.cookbook.last_status import LastStatus
528
528
  from hive.cookbook.last_object_status import LastObjectStatus
529
529
  from hive.cookbook.terms_and_conditions import TermsAndConditions
530
+ from hive.cookbook.tests import Tests
530
531
  from hive.cookbook.tree_hierarchy import TreeHierarchy
531
532
  from hive.cookbook.ts_automata_state import TsAutomataState
532
533
  from hive.cookbook.ts_cost_azure_raw import TsCostAzureRaw
@@ -545,7 +546,7 @@ from hive.cookbook.widget_groups import WidgetGroups
545
546
  # hive imports stop
546
547
 
547
548
 
548
- class XautomataApi(AclDocs, AclOverrides, Analytics, Anomalies, Calendars, CostTagging, CostTags, CostViews, CostTreeNodes, CostTreeResources, Contacts, Customers, Dashboards, Dispatchers, Downtimes, ExternalTickets, Features, Files, FirmwareUpdates, Groups, AutomataIngest, MetricIngest, Microsoft, Google, Apple, Login, QrCode, Jobs, Messages, Metrics, ProbesLogIngest, MetricTypes, NotificationProviders, NotificationProviderTypes, Objects, OpeningReasons, Probes, ProbeTypes, ProfileTopics, Questions, ReasonForClosure, RetentionRules, Schedules, Services, Sites, LastStatus, LastObjectStatus, TermsAndConditions, TreeHierarchy, TsAutomataState, TsCostAzureRaw, TsCostManagement, TsMetricStatus, TsMetricValue, TsNtopFlows, TsServiceStatus, TsServiceValue, Users, UsersNotifications, VirtualDomains, Widgets, Webhooks, WidgetGroups):
549
+ class XautomataApi(AclDocs, AclOverrides, Analytics, Anomalies, Calendars, CostTagging, CostTags, CostViews, CostTreeNodes, CostTreeResources, Contacts, Customers, Dashboards, Dispatchers, Downtimes, ExternalTickets, Features, Files, FirmwareUpdates, Groups, AutomataIngest, MetricIngest, Microsoft, Google, Apple, Login, QrCode, Jobs, Messages, Metrics, ProbesLogIngest, MetricTypes, NotificationProviders, NotificationProviderTypes, Objects, OpeningReasons, Probes, ProbeTypes, ProfileTopics, Questions, ReasonForClosure, RetentionRules, Schedules, Services, Sites, LastStatus, LastObjectStatus, TermsAndConditions, Tests, TreeHierarchy, TsAutomataState, TsCostAzureRaw, TsCostManagement, TsMetricStatus, TsMetricValue, TsNtopFlows, TsServiceStatus, TsServiceValue, Users, UsersNotifications, VirtualDomains, Widgets, Webhooks, WidgetGroups):
549
550
  """
550
551
  Class with each specific API, based on the ApiManager Class created for a more general interaction with Xautomata API
551
552
  """
hive/cookbook/metrics.py CHANGED
@@ -752,6 +752,55 @@ class Metrics(ApiManager):
752
752
  warm_start, params=params, **kwargs)
753
753
  return response
754
754
 
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
+
755
804
  def metrics_downtimes_create(self, uuid: str, uuid_downtime: str,
756
805
  kwargs: dict = None) -> list:
757
806
  """Add Downtime
@@ -828,6 +877,51 @@ class Metrics(ApiManager):
828
877
  warm_start, params=params, **kwargs)
829
878
  return response
830
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
+ Args:
886
+ uuid (str, required): uuid
887
+ 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.
888
+ single_page (bool, optional): se False la risposta viene ottenuta a step per non appesantire le API. Default to False.
889
+ page_size (int, optional): Numero di oggetti per pagina se single_page == False. Default to 5000.
890
+ kwargs (dict, optional): additional parameters for execute. Default to None.
891
+ **params: additional parameters for the API.
892
+
893
+ Keyword Args:
894
+ not_in (boolean optional): additional filter - parameter
895
+ code (string optional): additional filter - parameter
896
+ status (string optional): additional filter - parameter
897
+ fetch_all (boolean optional): additional filter - parameter
898
+ only_actives (boolean optional): additional filter - parameter
899
+ active_at_timestamp (string optional): additional filter - parameter
900
+ skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
901
+ limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
902
+ 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
903
+ 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
904
+ 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
905
+
906
+ Returns: list"""
907
+ if kwargs is None:
908
+ kwargs = dict()
909
+ official_params_list = ['not_in', 'code', 'status', 'fetch_all',
910
+ 'only_actives', 'active_at_timestamp', 'skip', 'limit', 'like',
911
+ 'join', 'count']
912
+ params.get('not_in'), params.get('code'), params.get('status'
913
+ ), params.get('fetch_all'), params.get('only_actives'), params.get(
914
+ 'active_at_timestamp'), params.get('skip'), params.get('limit'
915
+ ), params.get('like'), params.get('join'), params.get('count')
916
+ if not self._silence_warning:
917
+ warning_wrong_parameters(self.metrics_dispatchers_v2.__name__,
918
+ params, official_params_list)
919
+ response = self.execute('GET', path=
920
+ f'/metrics/{uuid}/dispatchers/v2', single_page=single_page,
921
+ page_size=page_size, warm_start=warm_start, params=params, **kwargs
922
+ )
923
+ return response
924
+
831
925
  def metrics_dispatchers_create(self, uuid: str, uuid_dispatcher: str,
832
926
  kwargs: dict = None) -> list:
833
927
  """Add Dispatcher
hive/cookbook/tests.py ADDED
@@ -0,0 +1,32 @@
1
+ from hive.api import ApiManager, handling_single_page_methods, warning_wrong_parameters
2
+
3
+
4
+ class Tests(ApiManager):
5
+ """Class that handles all the XAutomata tests APIs"""
6
+
7
+ def tests_last_values(self, warm_start: bool = False,
8
+ kwargs: dict = None, **params) -> list:
9
+ """Check Queues Or Ts Status
10
+
11
+ Args:
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.
13
+ kwargs (dict, optional): additional parameters for execute. Default to None.
14
+ **params: additional parameters for the API.
15
+
16
+ Keyword Args:
17
+ source (None required): additional filter - parameter
18
+ ts_start (string optional): additional filter - parameter
19
+
20
+ Returns: list"""
21
+ if kwargs is None:
22
+ kwargs = dict()
23
+ kwargs, params = handling_single_page_methods(kwargs=kwargs, params
24
+ =params)
25
+ official_params_list = ['source', 'ts_start']
26
+ params.get('source'), params.get('ts_start')
27
+ if not self._silence_warning:
28
+ warning_wrong_parameters(self.tests_last_values.__name__,
29
+ params, official_params_list)
30
+ response = self.execute('GET', path=f'/tests/last_values',
31
+ warm_start=warm_start, params=params, **kwargs)
32
+ return response
hive/version.py CHANGED
@@ -1 +1 @@
1
- version = '3.23.0'
1
+ version = '3.24.0'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xautomata-hive
3
- Version: 3.23.0
3
+ Version: 3.24.0
4
4
  Home-page: https://github.com/sherlogic/xautomata-hive.git
5
5
  Author: Enrico Ferro - Andrea Jacassi
6
6
  Author-email:
@@ -1,10 +1,10 @@
1
1
  hive/__init__.py,sha256=UjH5QfSfRGu2FR5_StfVbEtL_fuGS2Z_iZXmf1nx4AE,68
2
- hive/api.py,sha256=-vqYY9k8oRN5LCM54UJ8aC10aPF04erWongiQEaEcN4,42111
2
+ hive/api.py,sha256=Tn6Bxg-KEgX5iD_mT070BiYw3nLNTvVJ9lQPg_B2P1Y,42156
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=n8DzVlmd2BgHdffhx8kgHFqVDhH8K4bA-JYzkSDmymc,18
7
+ hive/version.py,sha256=KhFNAs3xtCAItzNPXTdhbONM3YRVeR-nX4rmJs2DAfs,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
@@ -37,7 +37,7 @@ hive/cookbook/login.py,sha256=KDC_4Pp49H0YjUaS-F7O9goriCquurPC8-TpG7ugT6U,25618
37
37
  hive/cookbook/messages.py,sha256=dD9QQlqR9Zyu8Kg8yJev-EZQOo0poQTsFwLEIvmyNbo,15285
38
38
  hive/cookbook/metric_ingest.py,sha256=V6JH_ZpePM_3GBRoVc5U7hHZul45Yyf2CRcXEXNJgMI,2519
39
39
  hive/cookbook/metric_types.py,sha256=6iy2-cB4kL9cJpaGz49EDonsT5vD3AKLGXp89y3XftI,28704
40
- hive/cookbook/metrics.py,sha256=kgb4qkgmUgleFdr9d73JWhtHaKYV6Kn9UHUIw5nZbcs,69419
40
+ hive/cookbook/metrics.py,sha256=-X_vXRgHYdv3D3FXts9PfvKKcxZhp3Rf7th5d0zVhI0,76008
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
@@ -55,6 +55,7 @@ hive/cookbook/schedules.py,sha256=ldI-hpOx-EpCy3oSOVczk8114QL2bS_2rsjNI6TEMjc,69
55
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
+ hive/cookbook/tests.py,sha256=MS9KsrquXKL3TY-1-EQ1TjwNELuNPDWkL4yl8Rido2o,1416
58
59
  hive/cookbook/tree_hierarchy.py,sha256=ldJ1hMFQcghA6P2gRHheLjG74X8B6Z1JaupeAW9vg9s,23749
59
60
  hive/cookbook/tree_hierarchy_v2.py,sha256=r2aYianO9sUQa2-cec9wA3j7iWLGSLHBVSM1n3Vh8sA,23805
60
61
  hive/cookbook/ts_automata_state.py,sha256=51CXpeq3Km5Lg8OJbyEvnGRpJT9CvB3v_IV0jiXOp1Q,6260
@@ -72,8 +73,8 @@ hive/cookbook/virtual_domains.py,sha256=N3dp3pjkO-5jni3KBcCukRqcmVqAFYCDV6dgVXrH
72
73
  hive/cookbook/webhooks.py,sha256=6ZSJfAiEjuh4Y4pfkUNjUYquBwxhD2KVkcVU3BcNkDc,7572
73
74
  hive/cookbook/widget_groups.py,sha256=GY7mBh72HzI9RRMCwnmJ-fildtZ3w4BrPDUdNfNoVyk,16018
74
75
  hive/cookbook/widgets.py,sha256=0Maw5gRAnph1Mu9ZlgzPT2Di_kJFeGKOOkhCGCjnelc,23497
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,,
76
+ xautomata_hive-3.24.0.dist-info/licenses/LICENSE,sha256=CFT1oIPm4kciOjwep2r1LQnpATugddSy3D839fsmgFs,1065
77
+ xautomata_hive-3.24.0.dist-info/METADATA,sha256=fILJcGCA9MXuwfDW363lVwSL0fxVxvQz_sbvC7ZXSyc,10924
78
+ xautomata_hive-3.24.0.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
79
+ xautomata_hive-3.24.0.dist-info/top_level.txt,sha256=pLpVAuviHGk3pzaFXU-4GKttxGTGAbFoWK8JvUl1jHQ,5
80
+ xautomata_hive-3.24.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (78.1.0)
2
+ Generator: setuptools (80.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5