AWSCloudWatchGetMetricDataInput
Objective-C
@interface AWSCloudWatchGetMetricDataInput
Swift
class AWSCloudWatchGetMetricDataInput
-
The time stamp indicating the latest data to be returned.
For better performance, specify
StartTimeandEndTimevalues that align with the value of the metric’sPeriodand sync up with the beginning and end of an hour. For example, if thePeriodof a metric is 5 minutes, specifying 12:05 or 12:30 asEndTimecan get a faster response from CloudWatch then setting 12:07 or 12:29 as theEndTime.Declaration
Objective-C
@property (nonatomic, strong) NSDate *_Nullable endTime;Swift
var endTime: Date? { get set } -
The maximum number of data points the request should return before paginating. If you omit this, the default of 100,800 is used.
Declaration
Objective-C
@property (nonatomic, strong) NSNumber *_Nullable maxDatapoints;Swift
var maxDatapoints: NSNumber? { get set } -
The metric queries to be returned. A single
GetMetricDatacall can include as many as 100MetricDataQuerystructures. Each of these structures can specify either a metric to retrieve, or a math expression to perform on retrieved data.Declaration
Objective-C
@property (nonatomic, strong) NSArray<AWSCloudWatchMetricDataQuery *> *_Nullable metricDataQueries;Swift
var metricDataQueries: [AWSCloudWatchMetricDataQuery]? { get set } -
Include this value, if it was returned by the previous call, to get the next set of data points.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable nextToken;Swift
var nextToken: String? { get set } -
The order in which data points should be returned.
TimestampDescendingreturns the newest data first and paginates when theMaxDatapointslimit is reached.TimestampAscendingreturns the oldest data first and paginates when theMaxDatapointslimit is reached.Declaration
Objective-C
@property (nonatomic) AWSCloudWatchScanBy scanBy;Swift
var scanBy: AWSCloudWatchScanBy { get set } -
The time stamp indicating the earliest data to be returned.
For better performance, specify
StartTimeandEndTimevalues that align with the value of the metric’sPeriodand sync up with the beginning and end of an hour. For example, if thePeriodof a metric is 5 minutes, specifying 12:05 or 12:30 asStartTimecan get a faster response from CloudWatch then setting 12:07 or 12:29 as theStartTime.Declaration
Objective-C
@property (nonatomic, strong) NSDate *_Nullable startTime;Swift
var startTime: Date? { get set }
View on GitHub
Install in Dash
AWSCloudWatchGetMetricDataInput Class Reference