AverageServiceLoadScalingTrigger Class

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

All required parameters must be populated in order to send to Azure.

Inheritance
azure.servicefabric.models._models_py3.ScalingTriggerDescription
AverageServiceLoadScalingTrigger

Constructor

AverageServiceLoadScalingTrigger(*, metric_name: str, lower_load_threshold: str, upper_load_threshold: str, scale_interval_in_seconds: int, use_only_primary_load: bool, **kwargs)

Parameters

kind
str
Required

Required. Constant filled by server.

metric_name
str
Required

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

lower_load_threshold
str
Required

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

upper_load_threshold
str
Required

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

scale_interval_in_seconds
<xref:long>
Required

Required. The period in seconds on which a decision is made whether to scale or not.

use_only_primary_load
bool
Required

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