다음을 통해 공유


AutoscaleRule Class

Definition

A rule that provide the triggers and parameters for the scaling action.

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

Constructors

AutoscaleRule(MetricTrigger, MonitorScaleAction)

Initializes a new instance of AutoscaleRule.

Properties

MetricTrigger

the trigger that results in a scaling action.

ScaleAction

the parameters for the scaling action.

Explicit Interface Implementations

IJsonModel<AutoscaleRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<AutoscaleRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AutoscaleRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AutoscaleRule>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<AutoscaleRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to