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.

Container for the parameters to the GetCapacityManagerMetricData operation. Retrieves capacity usage metrics for your EC2 resources. Returns time-series data for metrics like unused capacity, utilization rates, and costs across On-Demand, Spot, and Capacity Reservations. Data can be grouped and filtered by various dimensions such as region, account, and instance family.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.EC2.AmazonEC2Request
      Amazon.EC2.Model.GetCapacityManagerMetricDataRequest

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

Syntax

C#
public class GetCapacityManagerMetricDataRequest : AmazonEC2Request
         IAmazonWebServiceRequest

The GetCapacityManagerMetricDataRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property EndTime System.DateTime

Gets and sets the property EndTime.

The end time for the metric data query, in ISO 8601 format. If the end time is beyond the latest ingested data, it will be automatically adjusted to the latest available data point.

Public Property FilterBy System.Collections.Generic.List<Amazon.EC2.Model.CapacityManagerCondition>

Gets and sets the property FilterBy.

Conditions to filter the metric data. Each filter specifies a dimension, comparison operator ('equals', 'in'), and values to match against.

Public Property GroupBy System.Collections.Generic.List<System.String>

Gets and sets the property GroupBy.

The dimensions by which to group the metric data. This determines how the data is aggregated and returned.

Public Property MaxResults System.Int32

Gets and sets the property MaxResults.

The maximum number of data points to return. Valid range is 1 to 100,000. Use with NextToken for pagination of large result sets.

Public Property MetricNames System.Collections.Generic.List<System.String>

Gets and sets the property MetricNames.

The names of the metrics to retrieve. Maximum of 10 metrics per request.

Public Property NextToken System.String

Gets and sets the property NextToken.

The token for the next page of results. Use this value in a subsequent call to retrieve additional data points.

Public Property Period System.Int32

Gets and sets the property Period.

The granularity, in seconds, of the returned data points.

Public Property StartTime System.DateTime

Gets and sets the property StartTime.

The start time for the metric data query, in ISO 8601 format. The time range (end time - start time) must be a multiple of the specified period.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5