Interface CfnLayer.IAutoScalingThresholdsProperty
Namespace: Amazon.CDK.AWS.OpsWorks
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IAutoScalingThresholdsProperty
Syntax (vb)
Public Interface IAutoScalingThresholdsProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.OpsWorks;
var autoScalingThresholdsProperty = new AutoScalingThresholdsProperty {
CpuThreshold = 123,
IgnoreMetricsTime = 123,
InstanceCount = 123,
LoadThreshold = 123,
MemoryThreshold = 123,
ThresholdsWaitTime = 123
};
Synopsis
Properties
CpuThreshold | The CPU utilization threshold, as a percent of the available CPU. |
IgnoreMetricsTime | The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events. |
InstanceCount | The number of instances to add or remove when the load exceeds a threshold. |
LoadThreshold | The load threshold. |
MemoryThreshold | The memory utilization threshold, as a percent of the available memory. |
ThresholdsWaitTime | The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed. |
Properties
CpuThreshold
The CPU utilization threshold, as a percent of the available CPU.
virtual Nullable<double> CpuThreshold { get; }
Property Value
System.Nullable<System.Double>
Remarks
A value of -1 disables the threshold.
IgnoreMetricsTime
The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events.
virtual Nullable<double> IgnoreMetricsTime { get; }
Property Value
System.Nullable<System.Double>
Remarks
For example, AWS OpsWorks Stacks adds new instances following an upscaling event but the instances won't start reducing the load until they have been booted and configured. There is no point in raising additional scaling events during that operation, which typically takes several minutes. IgnoreMetricsTime
allows you to direct AWS OpsWorks Stacks to suppress scaling events long enough to get the new instances online.
InstanceCount
The number of instances to add or remove when the load exceeds a threshold.
virtual Nullable<double> InstanceCount { get; }
Property Value
System.Nullable<System.Double>
Remarks
LoadThreshold
The load threshold.
virtual Nullable<double> LoadThreshold { get; }
Property Value
System.Nullable<System.Double>
Remarks
A value of -1 disables the threshold. For more information about how load is computed, see Load (computing) .
MemoryThreshold
The memory utilization threshold, as a percent of the available memory.
virtual Nullable<double> MemoryThreshold { get; }
Property Value
System.Nullable<System.Double>
Remarks
ThresholdsWaitTime
The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
virtual Nullable<double> ThresholdsWaitTime { get; }
Property Value
System.Nullable<System.Double>