thousandeyes-sdk-python/thousandeyes-sdk-tests/docs/AlertRule.md
Miguel Pragosa 49b6b28368
[GitHub Bot] Generated python SDK (#44)
Co-authored-by: API Team <api-team@thousandeyes.com>
2024-08-13 22:44:54 +01:00

2.3 KiB

AlertRule

Properties

Name Type Description Notes
rule_id str Unique ID of the rule. [optional] [readonly]
rule_name str Name of the alert rule [optional] [readonly]
expression str String expression of alert rule [optional] [readonly]
direction AlertDirection [optional]
is_default bool Alert rules allow up to 1 alert rule to be selected as a default for each type. By checking the default option, this alert rule will be automatically included on subsequently created tests that test a metric used in alerting here [optional] [readonly]
alert_type AlertType [optional]
minimum_sources int The minimum number of agents or monitors that must meet the specified criteria in order to trigger the alert [optional] [readonly]
minimum_sources_pct int the minimum percentage of all assigned agents or monitors that must meet the specified criteria in order to trigger the alert [optional] [readonly]
rounds_violating_mode AlertRoundsViolationMode [optional]
rounds_violating_out_of int Specifies the divisor (y value) for the “X of Y times” condition. [optional] [readonly]
rounds_violating_required int Specifies the numerator (x value) for the “X of Y times” condition [optional] [readonly]
sensitivity_level SensitivityLevel [optional]
severity Severity [optional]

Example

from thousandeyes_sdk.tests.models.alert_rule import AlertRule

# TODO update the JSON string below
json = "{}"
# create an instance of AlertRule from a JSON string
alert_rule_instance = AlertRule.from_json(json)
# print the JSON string representation of the object
print(AlertRule.to_json())

# convert the object into a dict
alert_rule_dict = alert_rule_instance.to_dict()
# create an instance of AlertRule from a dict
alert_rule_from_dict = AlertRule.from_dict(alert_rule_dict)

[Back to Model list] [Back to API list] [Back to README]