Dela via


AverageServiceLoadScalingTrigger Class

Definition

Represents a scaling policy related to an average load of a metric/resource of a service.

public class AverageServiceLoadScalingTrigger : Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceScalingTrigger, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ServiceFabricManagedClusters.Models.AverageServiceLoadScalingTrigger>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ServiceFabricManagedClusters.Models.AverageServiceLoadScalingTrigger>
type AverageServiceLoadScalingTrigger = class
    inherit ManagedServiceScalingTrigger
    interface IJsonModel<AverageServiceLoadScalingTrigger>
    interface IPersistableModel<AverageServiceLoadScalingTrigger>
Public Class AverageServiceLoadScalingTrigger
Inherits ManagedServiceScalingTrigger
Implements IJsonModel(Of AverageServiceLoadScalingTrigger), IPersistableModel(Of AverageServiceLoadScalingTrigger)
Inheritance
AverageServiceLoadScalingTrigger
Implements

Constructors

AverageServiceLoadScalingTrigger(String, Double, Double, String, Boolean)

Initializes a new instance of AverageServiceLoadScalingTrigger.

Properties

LowerLoadThreshold

The lower limit of the load below which a scale in operation should be performed.

MetricName

The name of the metric for which usage should be tracked.

ScaleInterval

The period in seconds on which a decision is made whether to scale or not. This property should come in ISO 8601 format "hh:mm:ss".

UpperLoadThreshold

The upper limit of the load beyond which a scale out operation should be performed.

UseOnlyPrimaryLoad

Flag determines whether only the load of primary replica should be considered for scaling. If set to true, then trigger will only consider the load of primary replicas of stateful service. If set to false, trigger will consider load of all replicas. This parameter cannot be set to true for stateless service.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from ManagedServiceScalingTrigger)

Explicit Interface Implementations

IJsonModel<AverageServiceLoadScalingTrigger>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<AverageServiceLoadScalingTrigger>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IJsonModel<ManagedServiceScalingTrigger>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

(Inherited from ManagedServiceScalingTrigger)
IJsonModel<ManagedServiceScalingTrigger>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from ManagedServiceScalingTrigger)
IPersistableModel<AverageServiceLoadScalingTrigger>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AverageServiceLoadScalingTrigger>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<AverageServiceLoadScalingTrigger>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IPersistableModel<ManagedServiceScalingTrigger>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from ManagedServiceScalingTrigger)
IPersistableModel<ManagedServiceScalingTrigger>.GetFormatFromOptions(ModelReaderWriterOptions)

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

(Inherited from ManagedServiceScalingTrigger)
IPersistableModel<ManagedServiceScalingTrigger>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from ManagedServiceScalingTrigger)

Applies to