AverageServiceLoadScalingTriggerArgs

data class AverageServiceLoadScalingTriggerArgs(val kind: Output<String>, val lowerLoadThreshold: Output<Double>, val metricName: Output<String>, val scaleInterval: Output<String>, val upperLoadThreshold: Output<Double>, val useOnlyPrimaryLoad: Output<Boolean>) : ConvertibleToJava<AverageServiceLoadScalingTriggerArgs>

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

Constructors

Link copied to clipboard
constructor(kind: Output<String>, lowerLoadThreshold: Output<Double>, metricName: Output<String>, scaleInterval: Output<String>, upperLoadThreshold: Output<Double>, useOnlyPrimaryLoad: Output<Boolean>)

Properties

Link copied to clipboard
val kind: Output<String>

Enumerates the ways that a service can be partitioned. Expected value is 'AverageServiceLoadTrigger'.

Link copied to clipboard

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

Link copied to clipboard
val metricName: Output<String>

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

Link copied to clipboard
val scaleInterval: Output<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".

Link copied to clipboard

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

Link copied to clipboard

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.

Functions

Link copied to clipboard
open override fun toJava(): AverageServiceLoadScalingTriggerArgs