This data source provides the list of Alert Policy Rules in Oracle Cloud Infrastructure Data Safe service.
Lists the rules of the specified alert policy. The alert policy is said to be satisfied when all rules in the policy evaulate to true. If there are three rules: rule1,rule2 and rule3, the policy is satisfied if rule1 AND rule2 AND rule3 is True.
data "oci_data_safe_alert_policy_rules" "test_alert_policy_rules" {
#Required
alert_policy_id = oci_data_safe_alert_policy.test_alert_policy.id
}
The following arguments are supported:
alert_policy_id
- (Required) The OCID of the alert policy.The following attributes are exported:
alert_policy_rule_collection
- The list of alert_policy_rule_collection.The following attributes are exported:
items
- Array of alert policy rules summary
description
- Describes the alert policy rule.expression
- The conditional expression of the alert policy rule which evaluates to boolean value.key
- The unique key of the alert policy rule.