Class ActivityLogAlertLeafCondition
java.lang.Object
com.azure.resourcemanager.monitor.models.ActivityLogAlertLeafCondition
An Activity Log alert condition that is met by comparing an activity log field and value.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionequals()Get the equals property: The field value will be compared to this value (case-insensitive) to determine if the condition is met.field()Get the field property: The name of the field that this condition will examine.voidvalidate()Validates the instance.withEquals(String equals) Set the equals property: The field value will be compared to this value (case-insensitive) to determine if the condition is met.Set the field property: The name of the field that this condition will examine.
-
Constructor Details
-
ActivityLogAlertLeafCondition
public ActivityLogAlertLeafCondition()
-
-
Method Details
-
field
Get the field property: 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.'.- Returns:
- the field value.
-
withField
Set the field property: 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.'.- Parameters:
field- the field value to set.- Returns:
- the ActivityLogAlertLeafCondition object itself.
-
equals
Get the equals property: The field value will be compared to this value (case-insensitive) to determine if the condition is met.- Returns:
- the equals value.
-
withEquals
Set the equals property: The field value will be compared to this value (case-insensitive) to determine if the condition is met.- Parameters:
equals- the equals value to set.- Returns:
- the ActivityLogAlertLeafCondition object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-