Dela via


ScalingRule Class

Definition

The scaling rule.

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

Constructors

ScalingRule(ScaleActionType, Int32, String, HDInsightComparisonRule)

Initializes a new instance of ScalingRule.

Properties

ActionType

The action type.

ComparisonRule

The comparison rule.

EvaluationCount

This is an evaluation count for a scaling condition, the number of times a trigger condition should be successful, before scaling activity is triggered.

ScalingMetric

Metrics name for individual workloads. For example: cpu.

Explicit Interface Implementations

IJsonModel<ScalingRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ScalingRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ScalingRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ScalingRule>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ScalingRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to