AlertRuleAnyOfOrLeafCondition Class
An Activity Log Alert rule condition that is met when all its member conditions are met. Each condition can be of one of the following types: Important: Each type has its unique subset of properties. Properties from different types CANNOT exist in one condition.
Leaf Condition - must contain 'field' and either 'equals' or 'containsAny'. Please note, 'anyOf' should not be set in a Leaf Condition.
- AnyOf Condition - must contain only 'anyOf' (which is an array of Leaf Conditions). *Please note, 'field', 'equals' and 'containsAny' should not be set in an AnyOf
Condition.*.
Constructor
AlertRuleAnyOfOrLeafCondition(*, field: str | None = None, equals: str | None = None, contains_any: List[str] | None = None, any_of: List[_models.AlertRuleLeafCondition] | None = None, **kwargs: Any)
Keyword-Only Parameters
| Name | Description |
|---|---|
|
field
|
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'. Default value: None
|
|
equals
|
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met. Default value: None
|
|
contains_any
|
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met. Default value: None
|
|
any_of
|
An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met. Default value: None
|
Variables
| Name | Description |
|---|---|
|
field
|
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'. |
|
equals
|
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met. |
|
contains_any
|
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met. |
|
any_of
|
An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met. |