AWS SDK Version 3 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.

Represents a specific metric.

Inheritance Hierarchy

System.Object
  Amazon.AutoScaling.Model.Metric

Namespace: Amazon.AutoScaling.Model
Assembly: AWSSDK.AutoScaling.dll
Version: 3.x.y.z

Syntax

C#
public class Metric

The Metric type exposes the following members

Constructors

NameDescription
Public Method Metric()

Properties

NameTypeDescription
Public Property Dimensions System.Collections.Generic.List<Amazon.AutoScaling.Model.MetricDimension>

Gets and sets the property Dimensions.

The dimensions for the metric. For the list of available dimensions, see the Amazon Web Services documentation available from the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.

Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.

Public Property MetricName System.String

Gets and sets the property MetricName.

The name of the metric.

Public Property Namespace System.String

Gets and sets the property Namespace.

The namespace of the metric. For more information, see the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

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