/AWS1/CL_GMLTARGETCONF¶
Settings for a target-based scaling policy. 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.
CONSTRUCTOR
¶
IMPORTING¶
Required arguments:¶
IV_TARGETVALUE
TYPE /AWS1/RT_DOUBLE_AS_STRING
/AWS1/RT_DOUBLE_AS_STRING
¶
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).
Queryable Attributes¶
TargetValue¶
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).
Accessible with the following methods¶
Method | Description |
---|---|
GET_TARGETVALUE() |
Getter for TARGETVALUE, with configurable default |
ASK_TARGETVALUE() |
Getter for TARGETVALUE w/ exceptions if field has no value |
STR_TARGETVALUE() |
String format for TARGETVALUE, with configurable default |
HAS_TARGETVALUE() |
Determine if TARGETVALUE has a value |