Show / Hide Table of Contents

Interface IMetricTargetTrackingProps

Properties for enabling tracking of an arbitrary metric.

Inherited Members
IBaseTargetTrackingProps.Cooldown
IBaseTargetTrackingProps.DisableScaleIn
IBaseTargetTrackingProps.EstimatedInstanceWarmup
Namespace: Amazon.CDK.AWS.AutoScaling
Assembly: Amazon.CDK.AWS.AutoScaling.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.AWS.AutoScaling;
using Amazon.CDK.AWS.CloudWatch;
using Amazon.CDK;

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

IMetric

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

Back to top Generated by DocFX