Class ActivityLogAlertLeafCondition


  • public final class ActivityLogAlertLeafCondition
    extends Object
    An Activity Log alert condition that is met by comparing an activity log field and value.
    • Constructor Detail

      • ActivityLogAlertLeafCondition

        public ActivityLogAlertLeafCondition()
    • Method Detail

      • field

        public String 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

        public ActivityLogAlertLeafCondition withField​(String field)
        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

        public String 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

        public ActivityLogAlertLeafCondition 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.
        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.