TargetConfiguration class
Settings for a target-based scaling policy (see ScalingPolicy. A target-based policy tracks a particular fleet metric specifies a target value for the metric. As player usage changes, the policy triggers Amazon GameLift to adjust capacity so that the metric returns to the target value. The target configuration specifies settings as needed for the target based policy, including the target value.
- DescribeFleetCapacity
- UpdateFleetCapacity
- DescribeEC2InstanceLimits
-
Manage scaling policies:
- PutScalingPolicy (auto-scaling)
- DescribeScalingPolicies (auto-scaling)
- DeleteScalingPolicy (auto-scaling)
- Manage fleet actions:
Constructors
- TargetConfiguration({required double targetValue})
-
TargetConfiguration.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- targetValue → double
-
Desired value to use with a target-based scaling policy. The value must be
relevant for whatever metric the scaling policy is using. For example, in a
policy using the metric PercentAvailableGameSessions, the target value
should be the preferred size of the fleet's buffer (the percent of capacity
that should be idle and ready for new game sessions).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited