Interface ActivityLogAlert.UpdateStages.WithActivityLogUpdate
-
- All Known Subinterfaces:
ActivityLogAlert.Update
- Enclosing interface:
- ActivityLogAlert.UpdateStages
public static interface ActivityLogAlert.UpdateStages.WithActivityLogUpdateThe stage of a activity log alerts update allowing to modify settings.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ActivityLogAlert.UpdatewithActionGroups(String... actionGroupId)Sets the actions that will activate when the condition is met.ActivityLogAlert.UpdatewithDescription(String description)Sets description for activity log alert.ActivityLogAlert.UpdatewithEqualsCondition(String field, String equals)Adds a condition that will cause this alert to activate.ActivityLogAlert.UpdatewithEqualsConditions(Map<String,String> fieldEqualsMap)Sets all the conditions that will cause this alert to activate.ActivityLogAlert.UpdatewithoutActionGroup(String actionGroupId)Removes the specified action group from the actions list.ActivityLogAlert.UpdatewithoutEqualsCondition(String field)Removes a condition from the list of conditions.ActivityLogAlert.UpdatewithRuleDisabled()Sets activity log alert as disabled.ActivityLogAlert.UpdatewithRuleEnabled()Sets activity log alert as enabled.
-
-
-
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 theActionGroup.- 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 theActionGroupto 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.
-
-