Interface ITrackCustomMetricProps
The properties for enabling target tracking scaling based on a custom CloudWatch metric.
Inherited Members
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public interface ITrackCustomMetricProps : IBaseTargetTrackingProps
Syntax (vb)
Public Interface ITrackCustomMetricProps
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.CloudWatch;
using Amazon.CDK.AWS.ECS;
using Amazon.CDK;
Metric metric;
var trackCustomMetricProps = new TrackCustomMetricProps {
Metric = metric,
TargetValue = 123,
// the properties below are optional
DisableScaleIn = false,
PolicyName = "policyName",
ScaleInCooldown = Duration.Minutes(30),
ScaleOutCooldown = Duration.Minutes(30)
};
Synopsis
Properties
Metric | The custom CloudWatch metric to track. |
TargetValue | The target value for the custom CloudWatch metric. |
Properties
Metric
The custom CloudWatch metric to track.
IMetric Metric { get; }
Property Value
Remarks
The metric must represent utilization; that is, you will always get the following behavior:
TargetValue
The target value for the custom CloudWatch metric.
double TargetValue { get; }
Property Value
System.Double