AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Rule that controls how a fleet is scaled. Scaling policies are uniquely identified by the combination of name and fleet ID.
Namespace: Amazon.GameLift.Model
Assembly: AWSSDK.GameLift.dll
Version: 3.x.y.z
public class ScalingPolicy
The ScalingPolicy type exposes the following members
| Name | Description | |
|---|---|---|
|
ScalingPolicy() |
| Name | Type | Description | |
|---|---|---|---|
|
ComparisonOperator | Amazon.GameLift.ComparisonOperatorType |
Gets and sets the property ComparisonOperator. Comparison operator to use when measuring a metric against the threshold value. |
|
EvaluationPeriods | System.Nullable<System.Int32> |
Gets and sets the property EvaluationPeriods. Length of time (in minutes) the metric must be at or beyond the threshold before a scaling event is triggered. |
|
FleetArn | System.String |
Gets and sets the property FleetArn.
The Amazon Resource Name (ARN)
that is assigned to a Amazon GameLift Servers fleet resource and uniquely identifies
it. ARNs are unique across all Regions. Format is |
|
FleetId | System.String |
Gets and sets the property FleetId. A unique identifier for the fleet that is associated with this scaling policy. |
|
Location | System.String |
Gets and sets the property Location. The fleet location. |
|
MetricName | Amazon.GameLift.MetricName |
Gets and sets the property MetricName. Name of the Amazon GameLift Servers-defined metric that is used to trigger a scaling adjustment. For detailed descriptions of fleet metrics, see Monitor Amazon GameLift Servers with Amazon CloudWatch.
|
|
Name | System.String |
Gets and sets the property Name. A descriptive label that is associated with a fleet's scaling policy. Policy names do not need to be unique. |
|
PolicyType | Amazon.GameLift.PolicyType |
Gets and sets the property PolicyType. 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. |
|
ScalingAdjustment | System.Nullable<System.Int32> |
Gets and sets the property ScalingAdjustment. Amount of adjustment to make, based on the scaling adjustment type. |
|
ScalingAdjustmentType | Amazon.GameLift.ScalingAdjustmentType |
Gets and sets the property ScalingAdjustmentType. The type of adjustment to make to a fleet's instance count.
|
|
Status | Amazon.GameLift.ScalingStatusType |
Gets and sets the property Status.
Current status of the scaling policy. The scaling policy can be in force only when
in an
|
|
TargetConfiguration | Amazon.GameLift.Model.TargetConfiguration |
Gets and sets the property TargetConfiguration. An object that contains settings for a target-based scaling policy. |
|
Threshold | System.Nullable<System.Double> |
Gets and sets the property Threshold. Metric value used to trigger a scaling event. |
|
UpdateStatus | Amazon.GameLift.LocationUpdateStatus |
Gets and sets the property UpdateStatus.
The current status of the fleet's scaling policies in a requested fleet location.
The status |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.7.2 and newer