Share via


AverageServiceLoadScalingTrigger Constructor

Definition

Initializes a new instance of AverageServiceLoadScalingTrigger.

public AverageServiceLoadScalingTrigger (string metricName, double lowerLoadThreshold, double upperLoadThreshold, string scaleInterval, bool useOnlyPrimaryLoad);
new Azure.ResourceManager.ServiceFabricManagedClusters.Models.AverageServiceLoadScalingTrigger : string * double * double * string * bool -> Azure.ResourceManager.ServiceFabricManagedClusters.Models.AverageServiceLoadScalingTrigger
Public Sub New (metricName As String, lowerLoadThreshold As Double, upperLoadThreshold As Double, scaleInterval As String, useOnlyPrimaryLoad As Boolean)

Parameters

metricName
String

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

lowerLoadThreshold
Double

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

upperLoadThreshold
Double

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

scaleInterval
String

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".

useOnlyPrimaryLoad
Boolean

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.

Exceptions

metricName or scaleInterval is null.

Applies to