Interface ActivityLogAlert.UpdateStages.WithActivityLogUpdate

    • Method Detail

      • withDescription

        ActivityLogAlert.Update withDescription​(String description)
        Sets description for activity log alert.
        Parameters:
        description - Human readable text description of the activity log alert.
        Returns:
        the next stage of the activity log alert update.
      • withRuleEnabled

        ActivityLogAlert.Update withRuleEnabled()
        Sets activity log alert as enabled.
        Returns:
        the next stage of the activity log alert update.
      • withRuleDisabled

        ActivityLogAlert.Update withRuleDisabled()
        Sets activity log alert as disabled.
        Returns:
        the next stage of the activity log alert update.
      • withActionGroups

        ActivityLogAlert.Update withActionGroups​(String... actionGroupId)
        Sets the actions that will activate when the condition is met.
        Parameters:
        actionGroupId - resource Ids of the ActionGroup.
        Returns:
        the next stage of the activity log alert update.
      • withoutActionGroup

        ActivityLogAlert.Update withoutActionGroup​(String actionGroupId)
        Removes the specified action group from the actions list.
        Parameters:
        actionGroupId - resource Id of the ActionGroup to remove.
        Returns:
        the next stage of the activity log alert update.
      • withEqualsCondition

        ActivityLogAlert.Update withEqualsCondition​(String field,
                                                    String equals)
        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 the activity log alert update.
      • withEqualsConditions

        ActivityLogAlert.Update 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 the activity log alert update.
      • withoutEqualsCondition

        ActivityLogAlert.Update withoutEqualsCondition​(String field)
        Removes a condition from the list of conditions.
        Parameters:
        field - the name of the field that was used for condition examination.
        Returns:
        the next stage of the activity log alert update.