xautomata-hive 3.23.0__tar.gz → 3.24.0__tar.gz

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.
Files changed (86) hide show
  1. {xautomata_hive-3.23.0/xautomata_hive.egg-info → xautomata_hive-3.24.0}/PKG-INFO +1 -1
  2. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/api.py +2 -1
  3. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/metrics.py +94 -0
  4. xautomata_hive-3.24.0/hive/cookbook/tests.py +32 -0
  5. xautomata_hive-3.24.0/hive/version.py +1 -0
  6. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0/xautomata_hive.egg-info}/PKG-INFO +1 -1
  7. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/xautomata_hive.egg-info/SOURCES.txt +1 -0
  8. xautomata_hive-3.23.0/hive/version.py +0 -1
  9. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/LICENSE +0 -0
  10. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/README.md +0 -0
  11. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/__init__.py +0 -0
  12. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/__init__.py +0 -0
  13. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/acl_docs.py +0 -0
  14. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/acl_overrides.py +0 -0
  15. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/analytics.py +0 -0
  16. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/anomalies.py +0 -0
  17. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/apple.py +0 -0
  18. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/automata_ingest.py +0 -0
  19. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/calendars.py +0 -0
  20. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/contacts.py +0 -0
  21. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/cost_tagging.py +0 -0
  22. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/cost_tags.py +0 -0
  23. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/cost_tree_nodes.py +0 -0
  24. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/cost_tree_resources.py +0 -0
  25. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/cost_views.py +0 -0
  26. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/customers.py +0 -0
  27. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/dashboards.py +0 -0
  28. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/dispatchers.py +0 -0
  29. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/downtimes.py +0 -0
  30. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/external_tickets.py +0 -0
  31. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/features.py +0 -0
  32. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/files.py +0 -0
  33. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/firmware_updates.py +0 -0
  34. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/google.py +0 -0
  35. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/groups.py +0 -0
  36. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/jobs.py +0 -0
  37. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/last_object_status.py +0 -0
  38. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/last_status.py +0 -0
  39. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/last_status_v2.py +0 -0
  40. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/login.py +0 -0
  41. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/messages.py +0 -0
  42. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/metric_ingest.py +0 -0
  43. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/metric_types.py +0 -0
  44. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/microsoft.py +0 -0
  45. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/notification_provider_types.py +0 -0
  46. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/notification_providers.py +0 -0
  47. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/objects.py +0 -0
  48. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/opening_reasons.py +0 -0
  49. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/probe_types.py +0 -0
  50. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/probes.py +0 -0
  51. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/probes_log_ingest.py +0 -0
  52. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/profile_topics.py +0 -0
  53. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/qr_code.py +0 -0
  54. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/questions.py +0 -0
  55. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/reason_for_closure.py +0 -0
  56. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/retention_rules.py +0 -0
  57. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/schedules.py +0 -0
  58. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/services.py +0 -0
  59. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/sites.py +0 -0
  60. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/terms_and_conditions.py +0 -0
  61. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/tree_hierarchy.py +0 -0
  62. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/tree_hierarchy_v2.py +0 -0
  63. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/ts_automata_state.py +0 -0
  64. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/ts_cost_azure_raw.py +0 -0
  65. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/ts_cost_management.py +0 -0
  66. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/ts_cost_management_v2.py +0 -0
  67. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/ts_metric_status.py +0 -0
  68. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/ts_metric_value.py +0 -0
  69. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/ts_ntop_flows.py +0 -0
  70. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/ts_service_status.py +0 -0
  71. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/ts_service_value.py +0 -0
  72. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/users.py +0 -0
  73. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/users_notifications.py +0 -0
  74. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/virtual_domains.py +0 -0
  75. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/webhooks.py +0 -0
  76. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/widget_groups.py +0 -0
  77. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/cookbook/widgets.py +0 -0
  78. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/decorators.py +0 -0
  79. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/exceptions.py +0 -0
  80. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/infrastrucure_keys.py +0 -0
  81. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/hive/tools.py +0 -0
  82. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/setup.cfg +0 -0
  83. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/setup.py +0 -0
  84. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/xautomata_hive.egg-info/dependency_links.txt +0 -0
  85. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/xautomata_hive.egg-info/requires.txt +0 -0
  86. {xautomata_hive-3.23.0 → xautomata_hive-3.24.0}/xautomata_hive.egg-info/top_level.txt +0 -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:
@@ -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
  """
@@ -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
@@ -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
@@ -0,0 +1 @@
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:
@@ -58,6 +58,7 @@ hive/cookbook/schedules.py
58
58
  hive/cookbook/services.py
59
59
  hive/cookbook/sites.py
60
60
  hive/cookbook/terms_and_conditions.py
61
+ hive/cookbook/tests.py
61
62
  hive/cookbook/tree_hierarchy.py
62
63
  hive/cookbook/tree_hierarchy_v2.py
63
64
  hive/cookbook/ts_automata_state.py
@@ -1 +0,0 @@
1
- version = '3.23.0'
File without changes