azure-docs-sdk-java/legacy/docs-ref-autogen/com.microsoft.azure.managem...

39 строки
3.5 KiB
YAML

### YamlMime:JavaType
uid: "com.microsoft.azure.management.monitor.ScaleRule.ParentUpdateDefinitionStages.WithScaleAction"
fullName: "com.microsoft.azure.management.monitor.ScaleRule.ParentUpdateDefinitionStages.WithScaleAction"
name: "ScaleRule.ParentUpdateDefinitionStages.WithScaleAction"
nameWithType: "ScaleRule.ParentUpdateDefinitionStages.WithScaleAction"
summary: "The stage of the definition which specifies action to take when the metric alert will be triggered."
syntax: "public static interface **ScaleRule.ParentUpdateDefinitionStages.WithScaleAction**"
methods:
- uid: "com.microsoft.azure.management.monitor.ScaleRule.ParentUpdateDefinitionStages.WithScaleAction.withScaleAction(com.microsoft.azure.management.monitor.ScaleDirection,com.microsoft.azure.management.monitor.ScaleType,int,org.joda.time.Period)"
fullName: "com.microsoft.azure.management.monitor.ScaleRule.ParentUpdateDefinitionStages.WithScaleAction.withScaleAction(ScaleDirection direction, ScaleType type, int instanceCountChange, Period cooldown)"
name: "withScaleAction(ScaleDirection direction, ScaleType type, int instanceCountChange, Period cooldown)"
nameWithType: "ScaleRule.ParentUpdateDefinitionStages.WithScaleAction.withScaleAction(ScaleDirection direction, ScaleType type, int instanceCountChange, Period cooldown)"
summary: "Sets the action to be performed when the scale rule will be active."
modifiers:
- "abstract"
parameters:
- description: "the scale direction. Whether the scaling action increases or decreases the number of instances. Possible values include: 'None', 'Increase', 'Decrease'."
name: "direction"
type: "<xref href=\"com.microsoft.azure.management.monitor.ScaleDirection?alt=com.microsoft.azure.management.monitor.ScaleDirection&text=ScaleDirection\" data-throw-if-not-resolved=\"False\" />"
- description: "the type of action that should occur when the scale rule fires. Possible values include: 'ChangeCount', 'PercentChangeCount', 'ExactCount'."
name: "type"
type: "<xref href=\"com.microsoft.azure.management.monitor.ScaleType?alt=com.microsoft.azure.management.monitor.ScaleType&text=ScaleType\" data-throw-if-not-resolved=\"False\" />"
- description: "the number of instances that are involved in the scaling action."
name: "instanceCountChange"
type: "<xref href=\"int?alt=int&text=int\" data-throw-if-not-resolved=\"False\" />"
- description: "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."
name: "cooldown"
type: "<xref href=\"org.joda.time.Period?alt=org.joda.time.Period&text=Period\" data-throw-if-not-resolved=\"False\" />"
syntax: "public abstract ScaleRule.ParentUpdateDefinitionStages.WithAttach withScaleAction(ScaleDirection direction, ScaleType type, int instanceCountChange, Period cooldown)"
desc: "Sets the action to be performed when the scale rule will be active."
returns:
description: "the next stage of the definition."
type: "<xref href=\"com.microsoft.azure.management.monitor.ScaleRule.ParentUpdateDefinitionStages.WithAttach?alt=com.microsoft.azure.management.monitor.ScaleRule.ParentUpdateDefinitionStages.WithAttach&text=WithAttach\" data-throw-if-not-resolved=\"False\" />"
type: "interface"
desc: "The stage of the definition which specifies action to take when the metric alert will be triggered."
metadata: {}
package: "com.microsoft.azure.management.monitor"
artifact: com.microsoft.azure:azure-mgmt-monitor:1.41.4