Interface ScaleRule.ParentUpdateDefinitionStages.WithScaleAction
-
- All Known Subinterfaces:
ScaleRule.ParentUpdateDefinition
- Enclosing interface:
- ScaleRule.ParentUpdateDefinitionStages
public static interface ScaleRule.ParentUpdateDefinitionStages.WithScaleActionThe stage of the definition which specifies action to take when the metric alert will be triggered.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ScaleRule.ParentUpdateDefinitionStages.WithAttachwithScaleAction(ScaleDirection direction, ScaleType type, int instanceCountChange, Duration cooldown)Sets the action to be performed when the scale rule will be active.
-
-
-
Method Detail
-
withScaleAction
ScaleRule.ParentUpdateDefinitionStages.WithAttach withScaleAction(ScaleDirection direction, ScaleType type, int instanceCountChange, Duration cooldown)
Sets the action to be performed when the scale rule will be active.- Parameters:
direction- the scale direction. Whether the scaling action increases or decreases the number of instances. Possible values include: 'None', 'Increase', 'Decrease'.type- the type of action that should occur when the scale rule fires. Possible values include: 'ChangeCount', 'PercentChangeCount', 'ExactCount'.instanceCountChange- the number of instances that are involved in the scaling action.cooldown- the amount of time to wait since the last scaling action before this action occurs. It must be between 1 week and 1 minute in ISO 8601 format.- Returns:
- the next stage of the definition.
-
-