ManagedServiceScalingPolicy Constructor

Definition

Initializes a new instance of ManagedServiceScalingPolicy.

public ManagedServiceScalingPolicy (Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceScalingMechanism scalingMechanism, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceScalingTrigger scalingTrigger);
new Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceScalingPolicy : Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceScalingMechanism * Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceScalingTrigger -> Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceScalingPolicy
Public Sub New (scalingMechanism As ManagedServiceScalingMechanism, scalingTrigger As ManagedServiceScalingTrigger)

Parameters

scalingMechanism
ManagedServiceScalingMechanism

Specifies the mechanism associated with this scaling policy Please note ManagedServiceScalingMechanism is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include NamedPartitionAddOrRemoveScalingMechanism and PartitionInstanceCountScalingMechanism.

scalingTrigger
ManagedServiceScalingTrigger

Specifies the trigger associated with this scaling policy. Please note ManagedServiceScalingTrigger is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include AveragePartitionLoadScalingTrigger and AverageServiceLoadScalingTrigger.

Exceptions

scalingMechanism or scalingTrigger is null.

Applies to