Class CfnAutoScalingGroup.MetricsCollectionProperty
MetricsCollection
is a property of the AWS::AutoScaling::AutoScalingGroup resource that describes the group metrics that an Amazon EC2 Auto Scaling group sends to Amazon CloudWatch. These metrics describe the group rather than any of its instances.
Inheritance
Namespace: Amazon.CDK.AWS.AutoScaling
Assembly: Amazon.CDK.AWS.AutoScaling.dll
Syntax (csharp)
public class MetricsCollectionProperty : Object, CfnAutoScalingGroup.IMetricsCollectionProperty
Syntax (vb)
Public Class MetricsCollectionProperty
Inherits Object
Implements CfnAutoScalingGroup.IMetricsCollectionProperty
Remarks
For more information, see Monitor CloudWatch metrics for your Auto Scaling groups and instances in the Amazon EC2 Auto Scaling User Guide . You can find a sample template snippet in the Examples section of the AWS::AutoScaling::AutoScalingGroup
resource.
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;
var metricsCollectionProperty = new MetricsCollectionProperty {
Granularity = "granularity",
// the properties below are optional
Metrics = new [] { "metrics" }
};
Synopsis
Constructors
MetricsCollectionProperty() |
Properties
Granularity | The frequency at which Amazon EC2 Auto Scaling sends aggregated data to CloudWatch. |
Metrics | Identifies the metrics to enable. |
Constructors
MetricsCollectionProperty()
public MetricsCollectionProperty()
Properties
Granularity
The frequency at which Amazon EC2 Auto Scaling sends aggregated data to CloudWatch.
public string Granularity { get; set; }
Property Value
System.String
Remarks
The only valid value is 1Minute
.
Metrics
Identifies the metrics to enable.
public string[] Metrics { get; set; }
Property Value
System.String[]
Remarks
You can specify one or more of the following metrics:
If you specify Granularity
and don't specify any metrics, all metrics are enabled.
For more information, see Auto Scaling group metrics in the Amazon EC2 Auto Scaling User Guide .