You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logging.error("There is no data_queries defined.")
832
832
raiseValueError
833
833
834
834
deftest_datasource_uid_rule(
835
835
self,
836
836
expr: str,
837
837
condition: str,
838
-
data_query: list,
838
+
data_queries: list,
839
839
datasource_uid: str="grafana",
840
840
) ->dict:
841
841
"""The method includes a functionality to test a datasource uid rule specified by the expr, the condition, a list of data queries and the datasource_uid
842
842
843
843
Args:
844
844
expr (str): Specify a list of datasource rule query objects
845
845
condition (str): Specify the condition
846
-
data_query (list): Specify a list of datasource rule query objects
846
+
data_queries (list): Specify a list of datasource rule query objects
847
847
datasource_uid (str): Specify the datasource uid or recipient of the alerts (default grafana)
"""The class includes all necessary variables to generate an Alertmanager config object that is necessary to communicate and set up the Grafana Alertmanager endpoint
439
441
440
442
Args:
441
-
global_config (dict): Specify the global config of the Alertmanager
442
-
inhibit_rules (list): Specify the inhibit rules of the Alertmanager
443
-
mute_time_intervals (list): Specify the mute time intervals of the Alertmanager
443
+
global_config (Union[dict, None]): Specify the global config of the Alertmanager
444
+
inhibit_rules (Union[list, None]): Specify the inhibit rules of the Alertmanager
445
+
mute_time_intervals (Union[list, None]): Specify the mute time intervals of the Alertmanager
444
446
receivers (list): Specify the receiver's of the Alertmanager
445
447
route (dict): Specify the route of the Alertmanager
446
-
templates (list): Specify an Alertmanager template
448
+
templates (Union[list, None]): Specify an Alertmanager template
447
449
"""
448
450
449
-
global_config: dict
450
-
inhibit_rules: list
451
-
mute_time_intervals: list
451
+
global_config: Union[dict, None]
452
+
inhibit_rules: Union[list, None]
453
+
mute_time_intervals: Union[list, None]
452
454
receivers: list
453
455
route: dict
454
-
templates: list
456
+
templates: Union[list, None]
455
457
456
458
457
459
@dataclass
@@ -460,28 +462,29 @@ class AlertmanagerReceivers:
460
462
461
463
Args:
462
464
name (str): Specify the name of the receiver
463
-
email_configs (list): Specify the email configuration of the receiver's
465
+
email_configs (Union[list, None]): Specify the email configuration of the receiver's
464
466
grafana_managed_receiver_configs (list): Specify the Grafana managed receiver configuration of the receiver's
465
-
opsgenie_configs (list): Specify the ops genie configuration of the receiver's
466
-
pagerduty_configs (dict): Specify the pager duty configuration of the receiver's
467
-
pushover_configs (list): Specify the push over configuration of the receiver's
468
-
slack_configs (list): Specify the Slack configuration of the receiver's
469
-
victorops_configs (list): Specify the victor ops configuration of the receiver's
470
-
webhook_configs (list): Specify the webhook configuration of the receiver's
471
-
wechat_configs (list): Specify the wechaty configuration of the receiver's
467
+
opsgenie_configs (Union[list, None]): Specify the ops genie configuration of the receiver's
468
+
pagerduty_configs (Union[list, None]): Specify the pager duty configuration of the receiver's
469
+
pushover_configs (Union[list, None]): Specify the push over configuration of the receiver's
470
+
slack_configs (Union[list, None]): Specify the Slack configuration of the receiver's
471
+
sns_configs (Union[list, None]): Specify the SNS configuration of the receiver's
472
+
victorops_configs (Union[list, None]): Specify the victor ops configuration of the receiver's
473
+
webhook_configs (Union[list, None]): Specify the webhook configuration of the receiver's
474
+
wechat_configs (Union[list, None]): Specify the wechaty configuration of the receiver's
0 commit comments