public static interface ScaleRule.ParentUpdateDefinitionStages.WithScaleAction
| Modifier and Type | Method and Description |
|---|---|
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.
|
ScaleRule.ParentUpdateDefinitionStages.WithAttach withScaleAction(ScaleDirection direction, ScaleType type, int instanceCountChange, Duration cooldown)
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.Copyright © 2020 Microsoft Corporation. All rights reserved.