Interface ActivityLogAlert.UpdateStages.WithActivityLogUpdate
- All Known Subinterfaces:
ActivityLogAlert.Update
- Enclosing interface:
ActivityLogAlert.UpdateStages
public static interface ActivityLogAlert.UpdateStages.WithActivityLogUpdate
The stage of a activity log alerts update allowing to modify settings.
-
Method Summary
Modifier and TypeMethodDescriptionwithActionGroups(String... actionGroupId) Sets the actions that will activate when the condition is met.withDescription(String description) Sets description for activity log alert.withEqualsCondition(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.withoutActionGroup(String actionGroupId) Removes the specified action group from the actions list.withoutEqualsCondition(String field) Removes a condition from the list of conditions.Sets activity log alert as disabled.Sets activity log alert as enabled.
-
Method Details
-
withDescription
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
Sets the actions that will activate when the condition is met.- Parameters:
actionGroupId- resource Ids of theActionGroup.- Returns:
- the next stage of the activity log alert update.
-
withoutActionGroup
Removes the specified action group from the actions list.- Parameters:
actionGroupId- resource Id of theActionGroupto remove.- Returns:
- the next stage of the activity log alert update.
-
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 the activity log alert update.
-
withEqualsConditions
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
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.
-