Class CfnLayer.AutoScalingThresholdsProperty
Inheritance
Implements
Namespace: Amazon.CDK.AWS.OpsWorks
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AutoScalingThresholdsProperty : Object, CfnLayer.IAutoScalingThresholdsProperty
Syntax (vb)
Public Class AutoScalingThresholdsProperty
Inherits Object
Implements CfnLayer.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
Constructors
AutoScalingThresholdsProperty() |
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. |
Constructors
AutoScalingThresholdsProperty()
public AutoScalingThresholdsProperty()
Properties
CpuThreshold
The CPU utilization threshold, as a percent of the available CPU.
public Nullable<double> CpuThreshold { get; set; }
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.
public Nullable<double> IgnoreMetricsTime { get; set; }
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.
public Nullable<double> InstanceCount { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
LoadThreshold
The load threshold.
public Nullable<double> LoadThreshold { get; set; }
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.
public Nullable<double> MemoryThreshold { get; set; }
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.
public Nullable<double> ThresholdsWaitTime { get; set; }
Property Value
System.Nullable<System.Double>