Interface ActivityLogAlert.DefinitionStages.WithCriteriaDefinition
- All Known Subinterfaces:
ActivityLogAlert.Definition,ActivityLogAlert.DefinitionStages.WithCreate
- Enclosing interface:
ActivityLogAlert.DefinitionStages
public static interface ActivityLogAlert.DefinitionStages.WithCriteriaDefinition
The stage of the definition which specifies condition that will cause this alert to activate.
-
Method Summary
Modifier and TypeMethodDescriptionwithEqualsCondition(String field, String equals) Adds a condition that will cause this alert to activate.withEqualsConditions(Map<String, String> fieldEqualsMap) Sets all the conditions that will cause this alert to activate.
-
Method Details
-
withEqualsCondition
Adds a condition that will cause this alert to activate.- Parameters:
field- Set the name of the 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- Set the field value will be compared to this value (case-insensitive) to determine if the condition is met.- Returns:
- the next stage of activity log alert definition.
-
withEqualsConditions
ActivityLogAlert.DefinitionStages.WithCreate withEqualsConditions(Map<String, String> fieldEqualsMap) Sets all the conditions that will cause this alert to activate.- Parameters:
fieldEqualsMap- Set the names of the field that this condition will examine and their values to be compared to.- Returns:
- the next stage of activity log alert definition.
-