ContainerFleetScalingPolicy

data class ContainerFleetScalingPolicy(val comparisonOperator: ContainerFleetScalingPolicyComparisonOperator? = null, val evaluationPeriods: Int? = null, val metricName: ContainerFleetScalingPolicyMetricName, val name: String, val policyType: ContainerFleetScalingPolicyPolicyType? = null, val scalingAdjustment: Int? = null, val scalingAdjustmentType: ContainerFleetScalingPolicyScalingAdjustmentType? = null, val targetConfiguration: ContainerFleetTargetConfiguration? = null, val threshold: Double? = null)

Rule that controls how a fleet is scaled. Scaling policies are uniquely identified by the combination of name and fleet ID.

Constructors

Link copied to clipboard
constructor(comparisonOperator: ContainerFleetScalingPolicyComparisonOperator? = null, evaluationPeriods: Int? = null, metricName: ContainerFleetScalingPolicyMetricName, name: String, policyType: ContainerFleetScalingPolicyPolicyType? = null, scalingAdjustment: Int? = null, scalingAdjustmentType: ContainerFleetScalingPolicyScalingAdjustmentType? = null, targetConfiguration: ContainerFleetTargetConfiguration? = null, threshold: Double? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Comparison operator to use when measuring a metric against the threshold value.

Link copied to clipboard
val evaluationPeriods: Int? = null

Length of time (in minutes) the metric must be at or beyond the threshold before a scaling event is triggered.

Link copied to clipboard

Name of the Amazon GameLift-defined metric that is used to trigger a scaling adjustment.

Link copied to clipboard

A descriptive label that is associated with a fleet's scaling policy. Policy names do not need to be unique.

Link copied to clipboard

The type of scaling policy to create. For a target-based policy, set the parameter MetricName to 'PercentAvailableGameSessions' and specify a TargetConfiguration. For a rule-based policy set the following parameters: MetricName, ComparisonOperator, Threshold, EvaluationPeriods, ScalingAdjustmentType, and ScalingAdjustment.

Link copied to clipboard
val scalingAdjustment: Int? = null

Amount of adjustment to make, based on the scaling adjustment type.

Link copied to clipboard

The type of adjustment to make to a fleet's instance count.

Link copied to clipboard

An object that contains settings for a target-based scaling policy.

Link copied to clipboard
val threshold: Double? = null

Metric value used to trigger a scaling event.