ManagedServiceScalingPolicy Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Azure SDK for .NET