AWSCloudWatchGetMetricDataInput
Objective-C
@interface AWSCloudWatchGetMetricDataInput
Swift
class AWSCloudWatchGetMetricDataInput
-
The time stamp indicating the latest data to be returned.
For better performance, specify
StartTime
andEndTime
values that align with the value of the metric’sPeriod
and sync up with the beginning and end of an hour. For example, if thePeriod
of a metric is 5 minutes, specifying 12:05 or 12:30 asEndTime
can 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
GetMetricData
call can include as many as 100MetricDataQuery
structures. 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.
TimestampDescending
returns the newest data first and paginates when theMaxDatapoints
limit is reached.TimestampAscending
returns the oldest data first and paginates when theMaxDatapoints
limit 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
StartTime
andEndTime
values that align with the value of the metric’sPeriod
and sync up with the beginning and end of an hour. For example, if thePeriod
of a metric is 5 minutes, specifying 12:05 or 12:30 asStartTime
can 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 }