Class AdjustmentType
How adjustment numbers are interpreted.
Inheritance
System.Object
AdjustmentType
Namespace: Amazon.CDK.AWS.AutoScaling
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class AdjustmentType : Enum
Syntax (vb)
Public NotInheritable Class AdjustmentType
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
AutoScalingGroup autoScalingGroup;
var workerUtilizationMetric = new Metric(new MetricProps {
Namespace = "MyService",
MetricName = "WorkerUtilization"
});
autoScalingGroup.ScaleOnMetric("ScaleToCPU", new BasicStepScalingPolicyProps {
Metric = workerUtilizationMetric,
ScalingSteps = new [] { new ScalingInterval { Upper = 10, Change = -1 }, new ScalingInterval { Lower = 50, Change = +1 }, new ScalingInterval { Lower = 70, Change = +3 } },
EvaluationPeriods = 10,
DatapointsToAlarm = 5,
// Change this to AdjustmentType.PERCENT_CHANGE_IN_CAPACITY to interpret the
// 'change' numbers before as percentages instead of capacity counts.
AdjustmentType = AdjustmentType.CHANGE_IN_CAPACITY
});
Synopsis
Fields
CHANGE_IN_CAPACITY | Add the adjustment number to the current capacity. |
EXACT_CAPACITY | Make the capacity equal to the exact number given. |
PERCENT_CHANGE_IN_CAPACITY | Add this percentage of the current capacity to itself. |
value__ |
Fields
CHANGE_IN_CAPACITY
Add the adjustment number to the current capacity.
public const AdjustmentType CHANGE_IN_CAPACITY
Field Value
Type | Description |
---|---|
AdjustmentType |
Remarks
A positive number increases capacity, a negative number decreases capacity.
EXACT_CAPACITY
Make the capacity equal to the exact number given.
public const AdjustmentType EXACT_CAPACITY
Field Value
Type | Description |
---|---|
AdjustmentType |
PERCENT_CHANGE_IN_CAPACITY
Add this percentage of the current capacity to itself.
public const AdjustmentType PERCENT_CHANGE_IN_CAPACITY
Field Value
Type | Description |
---|---|
AdjustmentType |
Remarks
The number must be between -100 and 100; a positive number increases capacity and a negative number decreases it.
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |