/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include This data type is used with the Amazon GameLift FleetIQ and game server
* groups. Configuration settings for intelligent automatic scaling
* that uses target tracking. These settings are used to add an Auto Scaling policy
* when creating the corresponding Auto Scaling group. After the Auto Scaling group
* is created, all updates to Auto Scaling policies, including changing this policy
* and adding or removing other policies, is done directly on the Auto Scaling
* group. See Also:
AWS
* API Reference
Length of time, in seconds, it takes for a new instance to start new game * server processes and register with Amazon GameLift FleetIQ. Specifying a warm-up * time can be useful, particularly with game servers that take a long time to * start up, because it avoids prematurely starting new instances.
*/ inline int GetEstimatedInstanceWarmup() const{ return m_estimatedInstanceWarmup; } /** *Length of time, in seconds, it takes for a new instance to start new game * server processes and register with Amazon GameLift FleetIQ. Specifying a warm-up * time can be useful, particularly with game servers that take a long time to * start up, because it avoids prematurely starting new instances.
*/ inline bool EstimatedInstanceWarmupHasBeenSet() const { return m_estimatedInstanceWarmupHasBeenSet; } /** *Length of time, in seconds, it takes for a new instance to start new game * server processes and register with Amazon GameLift FleetIQ. Specifying a warm-up * time can be useful, particularly with game servers that take a long time to * start up, because it avoids prematurely starting new instances.
*/ inline void SetEstimatedInstanceWarmup(int value) { m_estimatedInstanceWarmupHasBeenSet = true; m_estimatedInstanceWarmup = value; } /** *Length of time, in seconds, it takes for a new instance to start new game * server processes and register with Amazon GameLift FleetIQ. Specifying a warm-up * time can be useful, particularly with game servers that take a long time to * start up, because it avoids prematurely starting new instances.
*/ inline GameServerGroupAutoScalingPolicy& WithEstimatedInstanceWarmup(int value) { SetEstimatedInstanceWarmup(value); return *this;} /** *Settings for a target-based scaling policy applied to Auto Scaling group.
* These settings are used to create a target-based policy that tracks the Amazon
* GameLift FleetIQ metric "PercentUtilizedGameServers"
and specifies
* a target value for the metric. As player usage changes, the policy triggers to
* adjust the game server group capacity so that the metric returns to the target
* value.
Settings for a target-based scaling policy applied to Auto Scaling group.
* These settings are used to create a target-based policy that tracks the Amazon
* GameLift FleetIQ metric "PercentUtilizedGameServers"
and specifies
* a target value for the metric. As player usage changes, the policy triggers to
* adjust the game server group capacity so that the metric returns to the target
* value.
Settings for a target-based scaling policy applied to Auto Scaling group.
* These settings are used to create a target-based policy that tracks the Amazon
* GameLift FleetIQ metric "PercentUtilizedGameServers"
and specifies
* a target value for the metric. As player usage changes, the policy triggers to
* adjust the game server group capacity so that the metric returns to the target
* value.
Settings for a target-based scaling policy applied to Auto Scaling group.
* These settings are used to create a target-based policy that tracks the Amazon
* GameLift FleetIQ metric "PercentUtilizedGameServers"
and specifies
* a target value for the metric. As player usage changes, the policy triggers to
* adjust the game server group capacity so that the metric returns to the target
* value.
Settings for a target-based scaling policy applied to Auto Scaling group.
* These settings are used to create a target-based policy that tracks the Amazon
* GameLift FleetIQ metric "PercentUtilizedGameServers"
and specifies
* a target value for the metric. As player usage changes, the policy triggers to
* adjust the game server group capacity so that the metric returns to the target
* value.
Settings for a target-based scaling policy applied to Auto Scaling group.
* These settings are used to create a target-based policy that tracks the Amazon
* GameLift FleetIQ metric "PercentUtilizedGameServers"
and specifies
* a target value for the metric. As player usage changes, the policy triggers to
* adjust the game server group capacity so that the metric returns to the target
* value.