Compartilhar via


ScaleAction Class

Definition

The parameters for the scaling action.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleActionTypeConverter))]
public class ScaleAction : Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IScaleAction
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleActionTypeConverter))>]
type ScaleAction = class
    interface IScaleAction
    interface IJsonSerializable
Public Class ScaleAction
Implements IScaleAction
Inheritance
ScaleAction
Attributes
Implements

Constructors

ScaleAction()

Creates an new ScaleAction instance.

Properties

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.

Direction

the scale direction. Whether the scaling action increases or decreases the number of instances.

Type

the type of action that should occur when the scale rule fires.

Value

the number of instances that are involved in the scaling action. This value must be 1 or greater. The default value is 1.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ScaleAction.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ScaleAction.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IScaleAction.

FromJsonString(String)

Creates a new instance of ScaleAction, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of ScaleAction into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to