Share via


MonitorScaleAction Class

Definition

The parameters for the scaling action.

public class MonitorScaleAction : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Monitor.Models.MonitorScaleAction>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Monitor.Models.MonitorScaleAction>
public class MonitorScaleAction
type MonitorScaleAction = class
    interface IJsonModel<MonitorScaleAction>
    interface IPersistableModel<MonitorScaleAction>
type MonitorScaleAction = class
Public Class MonitorScaleAction
Implements IJsonModel(Of MonitorScaleAction), IPersistableModel(Of MonitorScaleAction)
Public Class MonitorScaleAction
Inheritance
MonitorScaleAction
Implements

Constructors

MonitorScaleAction(MonitorScaleDirection, MonitorScaleType, TimeSpan)

Initializes a new instance of MonitorScaleAction.

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.

ScaleType

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.

Explicit Interface Implementations

IJsonModel<MonitorScaleAction>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<MonitorScaleAction>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MonitorScaleAction>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MonitorScaleAction>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<MonitorScaleAction>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to