Interface ScaleRule.UpdateDefinitionStages.WithScaleAction

    • Method Detail

      • withScaleAction

        ScaleRule.UpdateDefinitionStages.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.