AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 4.5
 
Container for the parameters to the EnableMetricsCollection operation. Enables monitoring of the specified metrics for the specified Auto Scaling group.

You can only enable metrics collection if InstanceMonitoring in the launch configuration for the group is set to True.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.AutoScaling.AmazonAutoScalingRequest
      Amazon.AutoScaling.Model.EnableMetricsCollectionRequest

Namespace: Amazon.AutoScaling.Model
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public class EnableMetricsCollectionRequest : AmazonAutoScalingRequest
         IRequestEvents

The EnableMetricsCollectionRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property AutoScalingGroupName System.String Gets and sets the property AutoScalingGroupName.

The name or ARN of the Auto Scaling group.

Public Property Granularity System.String Gets and sets the property Granularity.

The granularity to associate with the metrics to collect. The only valid value is 1Minute.

Public Property Metrics System.Collections.Generic.List<System.String> Gets and sets the property Metrics.

One or more of the following metrics. If you omit this parameter, all metrics are enabled.

  • GroupMinSize

  • GroupMaxSize

  • GroupDesiredCapacity

  • GroupInServiceInstances

  • GroupPendingInstances

  • GroupStandbyInstances

  • GroupTerminatingInstances

  • GroupTotalInstances

Note that the GroupStandbyInstances metric is not enabled by default. You must explicitly request this metric.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8

.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8