Interface IMetricTargetTrackingProps
Properties for enabling tracking of an arbitrary metric.
Inherited Members
Namespace: Amazon.CDK.AWS.AutoScaling
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IMetricTargetTrackingProps : IBaseTargetTrackingProps
Syntax (vb)
Public Interface IMetricTargetTrackingProps
Inherits IBaseTargetTrackingProps
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;
using Amazon.CDK.AWS.AutoScaling;
using Amazon.CDK.AWS.CloudWatch;
Metric metric;
var metricTargetTrackingProps = new MetricTargetTrackingProps {
Metric = metric,
TargetValue = 123,
// the properties below are optional
Cooldown = Duration.Minutes(30),
DisableScaleIn = false,
EstimatedInstanceWarmup = Duration.Minutes(30)
};
Synopsis
Properties
Metric | Metric to track. |
TargetValue | Value to keep the metric around. |
Properties
Metric
Metric to track.
IMetric Metric { get; }
Property Value
Remarks
The metric must represent a utilization, so that if it's higher than the target value, your ASG should scale out, and if it's lower it should scale in.
TargetValue
Value to keep the metric around.
double TargetValue { get; }
Property Value
System.Double