/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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. Manage scaling policies: PutScalingPolicy (auto-scaling)
* DescribeScalingPolicies (auto-scaling)
* DeleteScalingPolicy (auto-scaling) Manage
* fleet actions:
See Also:
AWS
* API Reference
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).
*/ inline double GetTargetValue() const{ return m_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).
*/ inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; } /** *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).
*/ inline void SetTargetValue(double value) { m_targetValueHasBeenSet = true; m_targetValue = value; } /** *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).
*/ inline TargetConfiguration& WithTargetValue(double value) { SetTargetValue(value); return *this;} private: double m_targetValue; bool m_targetValueHasBeenSet; }; } // namespace Model } // namespace GameLift } // namespace Aws