// // Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"). // You may not use this file except in compliance with the License. // A copy of the License is located at // // http://aws.amazon.com/apache2.0 // // or in the "license" file accompanying this file. This file is distributed // on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either // express or implied. See the License for the specific language governing // permissions and limitations under the License. // #import #import #import NS_ASSUME_NONNULL_BEGIN FOUNDATION_EXPORT NSString *const AWSCloudWatchErrorDomain; typedef NS_ENUM(NSInteger, AWSCloudWatchErrorType) { AWSCloudWatchErrorUnknown, AWSCloudWatchErrorDashboardInvalidInput, AWSCloudWatchErrorDashboardNotFound, AWSCloudWatchErrorInternalService, AWSCloudWatchErrorInvalidFormat, AWSCloudWatchErrorInvalidNextToken, AWSCloudWatchErrorInvalidParameterCombination, AWSCloudWatchErrorInvalidParameterValue, AWSCloudWatchErrorLimitExceeded, AWSCloudWatchErrorMissingRequiredParameter, AWSCloudWatchErrorResourceNotFound, }; typedef NS_ENUM(NSInteger, AWSCloudWatchComparisonOperator) { AWSCloudWatchComparisonOperatorUnknown, AWSCloudWatchComparisonOperatorGreaterThanOrEqualToThreshold, AWSCloudWatchComparisonOperatorGreaterThanThreshold, AWSCloudWatchComparisonOperatorLessThanThreshold, AWSCloudWatchComparisonOperatorLessThanOrEqualToThreshold, }; typedef NS_ENUM(NSInteger, AWSCloudWatchHistoryItemType) { AWSCloudWatchHistoryItemTypeUnknown, AWSCloudWatchHistoryItemTypeConfigurationUpdate, AWSCloudWatchHistoryItemTypeStateUpdate, AWSCloudWatchHistoryItemTypeAction, }; typedef NS_ENUM(NSInteger, AWSCloudWatchScanBy) { AWSCloudWatchScanByUnknown, AWSCloudWatchScanByTimestampDescending, AWSCloudWatchScanByTimestampAscending, }; typedef NS_ENUM(NSInteger, AWSCloudWatchStandardUnit) { AWSCloudWatchStandardUnitUnknown, AWSCloudWatchStandardUnitSeconds, AWSCloudWatchStandardUnitMicroseconds, AWSCloudWatchStandardUnitMilliseconds, AWSCloudWatchStandardUnitBytes, AWSCloudWatchStandardUnitKilobytes, AWSCloudWatchStandardUnitMegabytes, AWSCloudWatchStandardUnitGigabytes, AWSCloudWatchStandardUnitTerabytes, AWSCloudWatchStandardUnitBits, AWSCloudWatchStandardUnitKilobits, AWSCloudWatchStandardUnitMegabits, AWSCloudWatchStandardUnitGigabits, AWSCloudWatchStandardUnitTerabits, AWSCloudWatchStandardUnitPercent, AWSCloudWatchStandardUnitCount, AWSCloudWatchStandardUnitBytesSecond, AWSCloudWatchStandardUnitKilobytesSecond, AWSCloudWatchStandardUnitMegabytesSecond, AWSCloudWatchStandardUnitGigabytesSecond, AWSCloudWatchStandardUnitTerabytesSecond, AWSCloudWatchStandardUnitBitsSecond, AWSCloudWatchStandardUnitKilobitsSecond, AWSCloudWatchStandardUnitMegabitsSecond, AWSCloudWatchStandardUnitGigabitsSecond, AWSCloudWatchStandardUnitTerabitsSecond, AWSCloudWatchStandardUnitCountSecond, AWSCloudWatchStandardUnitNone, }; typedef NS_ENUM(NSInteger, AWSCloudWatchStateValue) { AWSCloudWatchStateValueUnknown, AWSCloudWatchStateValueOK, AWSCloudWatchStateValueAlarm, AWSCloudWatchStateValueInsufficientData, }; typedef NS_ENUM(NSInteger, AWSCloudWatchStatistic) { AWSCloudWatchStatisticUnknown, AWSCloudWatchStatisticSampleCount, AWSCloudWatchStatisticAverage, AWSCloudWatchStatisticSum, AWSCloudWatchStatisticMinimum, AWSCloudWatchStatisticMaximum, }; typedef NS_ENUM(NSInteger, AWSCloudWatchStatusCode) { AWSCloudWatchStatusCodeUnknown, AWSCloudWatchStatusCodeComplete, AWSCloudWatchStatusCodeInternalError, AWSCloudWatchStatusCodePartialData, }; @class AWSCloudWatchAlarmHistoryItem; @class AWSCloudWatchDashboardEntry; @class AWSCloudWatchDashboardValidationMessage; @class AWSCloudWatchDatapoint; @class AWSCloudWatchDeleteAlarmsInput; @class AWSCloudWatchDeleteDashboardsInput; @class AWSCloudWatchDeleteDashboardsOutput; @class AWSCloudWatchDescribeAlarmHistoryInput; @class AWSCloudWatchDescribeAlarmHistoryOutput; @class AWSCloudWatchDescribeAlarmsForMetricInput; @class AWSCloudWatchDescribeAlarmsForMetricOutput; @class AWSCloudWatchDescribeAlarmsInput; @class AWSCloudWatchDescribeAlarmsOutput; @class AWSCloudWatchDimension; @class AWSCloudWatchDimensionFilter; @class AWSCloudWatchDisableAlarmActionsInput; @class AWSCloudWatchEnableAlarmActionsInput; @class AWSCloudWatchGetDashboardInput; @class AWSCloudWatchGetDashboardOutput; @class AWSCloudWatchGetMetricDataInput; @class AWSCloudWatchGetMetricDataOutput; @class AWSCloudWatchGetMetricStatisticsInput; @class AWSCloudWatchGetMetricStatisticsOutput; @class AWSCloudWatchGetMetricWidgetImageInput; @class AWSCloudWatchGetMetricWidgetImageOutput; @class AWSCloudWatchListDashboardsInput; @class AWSCloudWatchListDashboardsOutput; @class AWSCloudWatchListMetricsInput; @class AWSCloudWatchListMetricsOutput; @class AWSCloudWatchMessageData; @class AWSCloudWatchMetric; @class AWSCloudWatchMetricAlarm; @class AWSCloudWatchMetricDataQuery; @class AWSCloudWatchMetricDataResult; @class AWSCloudWatchMetricDatum; @class AWSCloudWatchMetricStat; @class AWSCloudWatchPutDashboardInput; @class AWSCloudWatchPutDashboardOutput; @class AWSCloudWatchPutMetricAlarmInput; @class AWSCloudWatchPutMetricDataInput; @class AWSCloudWatchSetAlarmStateInput; @class AWSCloudWatchStatisticSet; /**

Represents the history of a specific alarm.

*/ @interface AWSCloudWatchAlarmHistoryItem : AWSModel /**

The descriptive name for the alarm.

*/ @property (nonatomic, strong) NSString * _Nullable alarmName; /**

Data about the alarm, in JSON format.

*/ @property (nonatomic, strong) NSString * _Nullable historyData; /**

The type of alarm history item.

*/ @property (nonatomic, assign) AWSCloudWatchHistoryItemType historyItemType; /**

A summary of the alarm history, in text format.

*/ @property (nonatomic, strong) NSString * _Nullable historySummary; /**

The time stamp for the alarm history item.

*/ @property (nonatomic, strong) NSDate * _Nullable timestamp; @end /**

Represents a specific dashboard.

*/ @interface AWSCloudWatchDashboardEntry : AWSModel /**

The Amazon Resource Name (ARN) of the dashboard.

*/ @property (nonatomic, strong) NSString * _Nullable dashboardArn; /**

The name of the dashboard.

*/ @property (nonatomic, strong) NSString * _Nullable dashboardName; /**

The time stamp of when the dashboard was last modified, either by an API call or through the console. This number is expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.

*/ @property (nonatomic, strong) NSDate * _Nullable lastModified; /**

The size of the dashboard, in bytes.

*/ @property (nonatomic, strong) NSNumber * _Nullable size; @end /**

An error or warning for the operation.

*/ @interface AWSCloudWatchDashboardValidationMessage : AWSModel /**

The data path related to the message.

*/ @property (nonatomic, strong) NSString * _Nullable dataPath; /**

A message describing the error or warning.

*/ @property (nonatomic, strong) NSString * _Nullable message; @end /**

Encapsulates the statistical data that CloudWatch computes from metric data.

*/ @interface AWSCloudWatchDatapoint : AWSModel /**

The average of the metric values that correspond to the data point.

*/ @property (nonatomic, strong) NSNumber * _Nullable average; /**

The percentile statistic for the data point.

*/ @property (nonatomic, strong) NSDictionary * _Nullable extendedStatistics; /**

The maximum metric value for the data point.

*/ @property (nonatomic, strong) NSNumber * _Nullable maximum; /**

The minimum metric value for the data point.

*/ @property (nonatomic, strong) NSNumber * _Nullable minimum; /**

The number of metric values that contributed to the aggregate value of this data point.

*/ @property (nonatomic, strong) NSNumber * _Nullable sampleCount; /**

The sum of the metric values for the data point.

*/ @property (nonatomic, strong) NSNumber * _Nullable sum; /**

The time stamp used for the data point.

*/ @property (nonatomic, strong) NSDate * _Nullable timestamp; /**

The standard unit for the data point.

*/ @property (nonatomic, assign) AWSCloudWatchStandardUnit unit; @end /** */ @interface AWSCloudWatchDeleteAlarmsInput : AWSRequest /**

The alarms to be deleted.

*/ @property (nonatomic, strong) NSArray * _Nullable alarmNames; @end /** */ @interface AWSCloudWatchDeleteDashboardsInput : AWSRequest /**

The dashboards to be deleted. This parameter is required.

*/ @property (nonatomic, strong) NSArray * _Nullable dashboardNames; @end /** */ @interface AWSCloudWatchDeleteDashboardsOutput : AWSModel @end /** */ @interface AWSCloudWatchDescribeAlarmHistoryInput : AWSRequest /**

The name of the alarm.

*/ @property (nonatomic, strong) NSString * _Nullable alarmName; /**

The ending date to retrieve alarm history.

*/ @property (nonatomic, strong) NSDate * _Nullable endDate; /**

The type of alarm histories to retrieve.

*/ @property (nonatomic, assign) AWSCloudWatchHistoryItemType historyItemType; /**

The maximum number of alarm history records to retrieve.

*/ @property (nonatomic, strong) NSNumber * _Nullable maxRecords; /**

The token returned by a previous call to indicate that there is more data available.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; /**

The starting date to retrieve alarm history.

*/ @property (nonatomic, strong) NSDate * _Nullable startDate; @end /** */ @interface AWSCloudWatchDescribeAlarmHistoryOutput : AWSModel /**

The alarm histories, in JSON format.

*/ @property (nonatomic, strong) NSArray * _Nullable alarmHistoryItems; /**

The token that marks the start of the next batch of returned results.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSCloudWatchDescribeAlarmsForMetricInput : AWSRequest /**

The dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the call to succeed.

*/ @property (nonatomic, strong) NSArray * _Nullable dimensions; /**

The percentile statistic for the metric. Specify a value between p0.0 and p100.

*/ @property (nonatomic, strong) NSString * _Nullable extendedStatistic; /**

The name of the metric.

*/ @property (nonatomic, strong) NSString * _Nullable metricName; /**

The namespace of the metric.

*/ @property (nonatomic, strong) NSString * _Nullable namespace; /**

The period, in seconds, over which the statistic is applied.

*/ @property (nonatomic, strong) NSNumber * _Nullable period; /**

The statistic for the metric, other than percentiles. For percentile statistics, use ExtendedStatistics.

*/ @property (nonatomic, assign) AWSCloudWatchStatistic statistic; /**

The unit for the metric.

*/ @property (nonatomic, assign) AWSCloudWatchStandardUnit unit; @end /** */ @interface AWSCloudWatchDescribeAlarmsForMetricOutput : AWSModel /**

The information for each alarm with the specified metric.

*/ @property (nonatomic, strong) NSArray * _Nullable metricAlarms; @end /** */ @interface AWSCloudWatchDescribeAlarmsInput : AWSRequest /**

The action name prefix.

*/ @property (nonatomic, strong) NSString * _Nullable actionPrefix; /**

The alarm name prefix. If this parameter is specified, you cannot specify AlarmNames.

*/ @property (nonatomic, strong) NSString * _Nullable alarmNamePrefix; /**

The names of the alarms.

*/ @property (nonatomic, strong) NSArray * _Nullable alarmNames; /**

The maximum number of alarm descriptions to retrieve.

*/ @property (nonatomic, strong) NSNumber * _Nullable maxRecords; /**

The token returned by a previous call to indicate that there is more data available.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; /**

The state value to be used in matching alarms.

*/ @property (nonatomic, assign) AWSCloudWatchStateValue stateValue; @end /** */ @interface AWSCloudWatchDescribeAlarmsOutput : AWSModel /**

The information for the specified alarms.

*/ @property (nonatomic, strong) NSArray * _Nullable metricAlarms; /**

The token that marks the start of the next batch of returned results.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /**

Expands the identity of a metric.

Required parameters: [Name, Value] */ @interface AWSCloudWatchDimension : AWSModel /**

The name of the dimension.

*/ @property (nonatomic, strong) NSString * _Nullable name; /**

The value representing the dimension measurement.

*/ @property (nonatomic, strong) NSString * _Nullable value; @end /**

Represents filters for a dimension.

Required parameters: [Name] */ @interface AWSCloudWatchDimensionFilter : AWSModel /**

The dimension name to be matched.

*/ @property (nonatomic, strong) NSString * _Nullable name; /**

The value of the dimension to be matched.

*/ @property (nonatomic, strong) NSString * _Nullable value; @end /** */ @interface AWSCloudWatchDisableAlarmActionsInput : AWSRequest /**

The names of the alarms.

*/ @property (nonatomic, strong) NSArray * _Nullable alarmNames; @end /** */ @interface AWSCloudWatchEnableAlarmActionsInput : AWSRequest /**

The names of the alarms.

*/ @property (nonatomic, strong) NSArray * _Nullable alarmNames; @end /** */ @interface AWSCloudWatchGetDashboardInput : AWSRequest /**

The name of the dashboard to be described.

*/ @property (nonatomic, strong) NSString * _Nullable dashboardName; @end /** */ @interface AWSCloudWatchGetDashboardOutput : AWSModel /**

The Amazon Resource Name (ARN) of the dashboard.

*/ @property (nonatomic, strong) NSString * _Nullable dashboardArn; /**

The detailed information about the dashboard, including what widgets are included and their location on the dashboard. For more information about the DashboardBody syntax, see CloudWatch-Dashboard-Body-Structure.

*/ @property (nonatomic, strong) NSString * _Nullable dashboardBody; /**

The name of the dashboard.

*/ @property (nonatomic, strong) NSString * _Nullable dashboardName; @end /** */ @interface AWSCloudWatchGetMetricDataInput : AWSRequest /**

The time stamp indicating the latest data to be returned.

For better performance, specify StartTime and EndTime values that align with the value of the metric's Period and sync up with the beginning and end of an hour. For example, if the Period of a metric is 5 minutes, specifying 12:05 or 12:30 as EndTime can get a faster response from CloudWatch then setting 12:07 or 12:29 as the EndTime.

*/ @property (nonatomic, strong) NSDate * _Nullable endTime; /**

The maximum number of data points the request should return before paginating. If you omit this, the default of 100,800 is used.

*/ @property (nonatomic, strong) NSNumber * _Nullable maxDatapoints; /**

The metric queries to be returned. A single GetMetricData call can include as many as 100 MetricDataQuery structures. Each of these structures can specify either a metric to retrieve, or a math expression to perform on retrieved data.

*/ @property (nonatomic, strong) NSArray * _Nullable metricDataQueries; /**

Include this value, if it was returned by the previous call, to get the next set of data points.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; /**

The order in which data points should be returned. TimestampDescending returns the newest data first and paginates when the MaxDatapoints limit is reached. TimestampAscending returns the oldest data first and paginates when the MaxDatapoints limit is reached.

*/ @property (nonatomic, assign) AWSCloudWatchScanBy scanBy; /**

The time stamp indicating the earliest data to be returned.

For better performance, specify StartTime and EndTime values that align with the value of the metric's Period and sync up with the beginning and end of an hour. For example, if the Period of a metric is 5 minutes, specifying 12:05 or 12:30 as StartTime can get a faster response from CloudWatch then setting 12:07 or 12:29 as the StartTime.

*/ @property (nonatomic, strong) NSDate * _Nullable startTime; @end /** */ @interface AWSCloudWatchGetMetricDataOutput : AWSModel /**

The metrics that are returned, including the metric name, namespace, and dimensions.

*/ @property (nonatomic, strong) NSArray * _Nullable metricDataResults; /**

A token that marks the next batch of returned results.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSCloudWatchGetMetricStatisticsInput : AWSRequest /**

The dimensions. If the metric contains multiple dimensions, you must include a value for each dimension. CloudWatch treats each unique combination of dimensions as a separate metric. If a specific combination of dimensions was not published, you can't retrieve statistics for it. You must specify the same dimensions that were used when the metrics were created. For an example, see Dimension Combinations in the Amazon CloudWatch User Guide. For more information about specifying dimensions, see Publishing Metrics in the Amazon CloudWatch User Guide.

*/ @property (nonatomic, strong) NSArray * _Nullable dimensions; /**

The time stamp that determines the last data point to return.

The value specified is exclusive; results include data points up to the specified time stamp. The time stamp must be in ISO 8601 UTC format (for example, 2016-10-10T23:00:00Z).

*/ @property (nonatomic, strong) NSDate * _Nullable endTime; /**

The percentile statistics. Specify values between p0.0 and p100. When calling GetMetricStatistics, you must specify either Statistics or ExtendedStatistics, but not both. Percentile statistics are not available for metrics when any of the metric values are negative numbers.

*/ @property (nonatomic, strong) NSArray * _Nullable extendedStatistics; /**

The name of the metric, with or without spaces.

*/ @property (nonatomic, strong) NSString * _Nullable metricName; /**

The namespace of the metric, with or without spaces.

*/ @property (nonatomic, strong) NSString * _Nullable namespace; /**

The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a PutMetricData call that includes a StorageResolution of 1 second.

If the StartTime parameter specifies a time stamp that is greater than 3 hours ago, you must specify the period as follows or no data points in that time range is returned:

  • Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute).

  • Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes).

  • Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).

*/ @property (nonatomic, strong) NSNumber * _Nullable period; /**

The time stamp that determines the first data point to return. Start times are evaluated relative to the time that CloudWatch receives the request.

The value specified is inclusive; results include data points with the specified time stamp. The time stamp must be in ISO 8601 UTC format (for example, 2016-10-03T23:00:00Z).

CloudWatch rounds the specified time stamp as follows:

  • Start time less than 15 days ago - Round down to the nearest whole minute. For example, 12:32:34 is rounded down to 12:32:00.

  • Start time between 15 and 63 days ago - Round down to the nearest 5-minute clock interval. For example, 12:32:34 is rounded down to 12:30:00.

  • Start time greater than 63 days ago - Round down to the nearest 1-hour clock interval. For example, 12:32:34 is rounded down to 12:00:00.

If you set Period to 5, 10, or 30, the start time of your request is rounded down to the nearest time that corresponds to even 5-, 10-, or 30-second divisions of a minute. For example, if you make a query at (HH:mm:ss) 01:05:23 for the previous 10-second period, the start time of your request is rounded down and you receive data from 01:05:10 to 01:05:20. If you make a query at 15:07:17 for the previous 5 minutes of data, using a period of 5 seconds, you receive data timestamped between 15:02:15 and 15:07:15.

*/ @property (nonatomic, strong) NSDate * _Nullable startTime; /**

The metric statistics, other than percentile. For percentile statistics, use ExtendedStatistics. When calling GetMetricStatistics, you must specify either Statistics or ExtendedStatistics, but not both.

*/ @property (nonatomic, strong) NSArray * _Nullable statistics; /**

The unit for a given metric. Metrics may be reported in multiple units. Not supplying a unit results in all units being returned. If you specify only a unit that the metric does not report, the results of the call are null.

*/ @property (nonatomic, assign) AWSCloudWatchStandardUnit unit; @end /** */ @interface AWSCloudWatchGetMetricStatisticsOutput : AWSModel /**

The data points for the specified metric.

*/ @property (nonatomic, strong) NSArray * _Nullable datapoints; /**

A label for the specified metric.

*/ @property (nonatomic, strong) NSString * _Nullable label; @end /** */ @interface AWSCloudWatchGetMetricWidgetImageInput : AWSRequest /**

A JSON string that defines the bitmap graph to be retrieved. The string includes the metrics to include in the graph, statistics, annotations, title, axis limits, and so on. You can include only one MetricWidget parameter in each GetMetricWidgetImage call.

For more information about the syntax of MetricWidget see CloudWatch-Metric-Widget-Structure.

If any metric on the graph could not load all the requested data points, an orange triangle with an exclamation point appears next to the graph legend.

*/ @property (nonatomic, strong) NSString * _Nullable metricWidget; /**

The format of the resulting image. Only PNG images are supported.

The default is png. If you specify png, the API returns an HTTP response with the content-type set to text/xml. The image data is in a MetricWidgetImage field. For example:

<GetMetricWidgetImageResponse xmlns="http://monitoring.amazonaws.com/doc/2010-08-01/">

<GetMetricWidgetImageResult>

<MetricWidgetImage>

iVBORw0KGgoAAAANSUhEUgAAAlgAAAGQEAYAAAAip...

</MetricWidgetImage>

</GetMetricWidgetImageResult>

<ResponseMetadata>

<RequestId>6f0d4192-4d42-11e8-82c1-f539a07e0e3b</RequestId>

</ResponseMetadata>

</GetMetricWidgetImageResponse>

The image/png setting is intended only for custom HTTP requests. For most use cases, and all actions using an AWS SDK, you should use png. If you specify image/png, the HTTP response has a content-type set to image/png, and the body of the response is a PNG image.

*/ @property (nonatomic, strong) NSString * _Nullable outputFormat; @end /** */ @interface AWSCloudWatchGetMetricWidgetImageOutput : AWSModel /**

The image of the graph, in the output format specified.

*/ @property (nonatomic, strong) NSData * _Nullable metricWidgetImage; @end /** */ @interface AWSCloudWatchListDashboardsInput : AWSRequest /**

If you specify this parameter, only the dashboards with names starting with the specified string are listed. The maximum length is 255, and valid characters are A-Z, a-z, 0-9, ".", "-", and "_".

*/ @property (nonatomic, strong) NSString * _Nullable dashboardNamePrefix; /**

The token returned by a previous call to indicate that there is more data available.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSCloudWatchListDashboardsOutput : AWSModel /**

The list of matching dashboards.

*/ @property (nonatomic, strong) NSArray * _Nullable dashboardEntries; /**

The token that marks the start of the next batch of returned results.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSCloudWatchListMetricsInput : AWSRequest /**

The dimensions to filter against.

*/ @property (nonatomic, strong) NSArray * _Nullable dimensions; /**

The name of the metric to filter against.

*/ @property (nonatomic, strong) NSString * _Nullable metricName; /**

The namespace to filter against.

*/ @property (nonatomic, strong) NSString * _Nullable namespace; /**

The token returned by a previous call to indicate that there is more data available.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSCloudWatchListMetricsOutput : AWSModel /**

The metrics.

*/ @property (nonatomic, strong) NSArray * _Nullable metrics; /**

The token that marks the start of the next batch of returned results.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /**

A message returned by the GetMetricDataAPI, including a code and a description.

*/ @interface AWSCloudWatchMessageData : AWSModel /**

The error code or status code associated with the message.

*/ @property (nonatomic, strong) NSString * _Nullable code; /**

The message text.

*/ @property (nonatomic, strong) NSString * _Nullable value; @end /**

Represents a specific metric.

*/ @interface AWSCloudWatchMetric : AWSModel /**

The dimensions for the metric.

*/ @property (nonatomic, strong) NSArray * _Nullable dimensions; /**

The name of the metric. This is a required field.

*/ @property (nonatomic, strong) NSString * _Nullable metricName; /**

The namespace of the metric.

*/ @property (nonatomic, strong) NSString * _Nullable namespace; @end /**

Represents an alarm.

*/ @interface AWSCloudWatchMetricAlarm : AWSModel /**

Indicates whether actions should be executed during any changes to the alarm state.

*/ @property (nonatomic, strong) NSNumber * _Nullable actionsEnabled; /**

The actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).

*/ @property (nonatomic, strong) NSArray * _Nullable alarmActions; /**

The Amazon Resource Name (ARN) of the alarm.

*/ @property (nonatomic, strong) NSString * _Nullable alarmArn; /**

The time stamp of the last update to the alarm configuration.

*/ @property (nonatomic, strong) NSDate * _Nullable alarmConfigurationUpdatedTimestamp; /**

The description of the alarm.

*/ @property (nonatomic, strong) NSString * _Nullable alarmDescription; /**

The name of the alarm.

*/ @property (nonatomic, strong) NSString * _Nullable alarmName; /**

The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.

*/ @property (nonatomic, assign) AWSCloudWatchComparisonOperator comparisonOperator; /**

The number of datapoints that must be breaching to trigger the alarm.

*/ @property (nonatomic, strong) NSNumber * _Nullable datapointsToAlarm; /**

The dimensions for the metric associated with the alarm.

*/ @property (nonatomic, strong) NSArray * _Nullable dimensions; /**

Used only for alarms based on percentiles. If ignore, the alarm state does not change during periods with too few data points to be statistically significant. If evaluate or this parameter is not used, the alarm is always evaluated and possibly changes state no matter how many data points are available.

*/ @property (nonatomic, strong) NSString * _Nullable evaluateLowSampleCountPercentile; /**

The number of periods over which data is compared to the specified threshold.

*/ @property (nonatomic, strong) NSNumber * _Nullable evaluationPeriods; /**

The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100.

*/ @property (nonatomic, strong) NSString * _Nullable extendedStatistic; /**

The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).

*/ @property (nonatomic, strong) NSArray * _Nullable insufficientDataActions; /**

The name of the metric associated with the alarm.

*/ @property (nonatomic, strong) NSString * _Nullable metricName; /**

*/ @property (nonatomic, strong) NSArray * _Nullable metrics; /**

The namespace of the metric associated with the alarm.

*/ @property (nonatomic, strong) NSString * _Nullable namespace; /**

The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).

*/ @property (nonatomic, strong) NSArray * _Nullable OKActions; /**

The period, in seconds, over which the statistic is applied.

*/ @property (nonatomic, strong) NSNumber * _Nullable period; /**

An explanation for the alarm state, in text format.

*/ @property (nonatomic, strong) NSString * _Nullable stateReason; /**

An explanation for the alarm state, in JSON format.

*/ @property (nonatomic, strong) NSString * _Nullable stateReasonData; /**

The time stamp of the last update to the alarm state.

*/ @property (nonatomic, strong) NSDate * _Nullable stateUpdatedTimestamp; /**

The state value for the alarm.

*/ @property (nonatomic, assign) AWSCloudWatchStateValue stateValue; /**

The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use ExtendedStatistic.

*/ @property (nonatomic, assign) AWSCloudWatchStatistic statistic; /**

The value to compare with the specified statistic.

*/ @property (nonatomic, strong) NSNumber * _Nullable threshold; /**

Sets how this alarm is to handle missing data points. If this parameter is omitted, the default behavior of missing is used.

*/ @property (nonatomic, strong) NSString * _Nullable treatMissingData; /**

The unit of the metric associated with the alarm.

*/ @property (nonatomic, assign) AWSCloudWatchStandardUnit unit; @end /**

This structure is used in both GetMetricData and PutMetricAlarm. The supported use of this structure is different for those two operations.

When used in GetMetricData, it indicates the metric data to return, and whether this call is just retrieving a batch set of data for one metric, or is performing a math expression on metric data. A single GetMetricData call can include up to 100 MetricDataQuery structures.

When used in PutMetricAlarm, it enables you to create an alarm based on a metric math expression. Each MetricDataQuery in the array specifies either a metric to retrieve, or a math expression to be performed on retrieved metrics. A single PutMetricAlarm call can include up to 20 MetricDataQuery structures in the array. The 20 structures can include as many as 10 structures that contain a MetricStat parameter to retrieve a metric, and as many as 10 structures that contain the Expression parameter to perform a math expression. Any expression used in a PutMetricAlarm operation must return a single time series. For more information, see Metric Math Syntax and Functions in the Amazon CloudWatch User Guide.

Some of the parameters of this structure also have different uses whether you are using this structure in a GetMetricData operation or a PutMetricAlarm operation. These differences are explained in the following parameter list.

Required parameters: [Id] */ @interface AWSCloudWatchMetricDataQuery : AWSModel /**

The math expression to be performed on the returned data, if this object is performing a math expression. This expression can use the Id of the other metrics to refer to those metrics, and can also use the Id of other expressions to use the result of those expressions. For more information about metric math expressions, see Metric Math Syntax and Functions in the Amazon CloudWatch User Guide.

Within each MetricDataQuery object, you must specify either Expression or MetricStat but not both.

*/ @property (nonatomic, strong) NSString * _Nullable expression; /**

A short name used to tie this object to the results in the response. This name must be unique within a single call to GetMetricData. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter.

*/ @property (nonatomic, strong) NSString * _Nullable identifier; /**

A human-readable label for this metric or expression. This is especially useful if this is an expression, so that you know what the value represents. If the metric or expression is shown in a CloudWatch dashboard widget, the label is shown. If Label is omitted, CloudWatch generates a default.

*/ @property (nonatomic, strong) NSString * _Nullable label; /**

The metric to be returned, along with statistics, period, and units. Use this parameter only if this object is retrieving a metric and not performing a math expression on returned data.

Within one MetricDataQuery object, you must specify either Expression or MetricStat but not both.

*/ @property (nonatomic, strong) AWSCloudWatchMetricStat * _Nullable metricStat; /**

When used in GetMetricData, this option indicates whether to return the timestamps and raw data values of this metric. If you are performing this call just to do math expressions and do not also need the raw data returned, you can specify False. If you omit this, the default of True is used.

When used in PutMetricAlarm, specify True for the one expression result to use as the alarm. For all other metrics and expressions in the same PutMetricAlarm operation, specify ReturnData as False.

*/ @property (nonatomic, strong) NSNumber * _Nullable returnData; @end /**

A GetMetricData call returns an array of MetricDataResult structures. Each of these structures includes the data points for that metric, along with the timestamps of those data points and other identifying information.

*/ @interface AWSCloudWatchMetricDataResult : AWSModel /**

The short name you specified to represent this metric.

*/ @property (nonatomic, strong) NSString * _Nullable identifier; /**

The human-readable label associated with the data.

*/ @property (nonatomic, strong) NSString * _Nullable label; /**

A list of messages with additional information about the data returned.

*/ @property (nonatomic, strong) NSArray * _Nullable messages; /**

The status of the returned data. Complete indicates that all data points in the requested time range were returned. PartialData means that an incomplete set of data points were returned. You can use the NextToken value that was returned and repeat your request to get more data points. NextToken is not returned if you are performing a math expression. InternalError indicates that an error occurred. Retry your request using NextToken, if present.

*/ @property (nonatomic, assign) AWSCloudWatchStatusCode statusCode; /**

The timestamps for the data points, formatted in Unix timestamp format. The number of timestamps always matches the number of values and the value for Timestamps[x] is Values[x].

*/ @property (nonatomic, strong) NSArray * _Nullable timestamps; /**

The data points for the metric corresponding to Timestamps. The number of values always matches the number of timestamps and the timestamp for Values[x] is Timestamps[x].

*/ @property (nonatomic, strong) NSArray * _Nullable values; @end /**

Encapsulates the information sent to either create a metric or add new values to be aggregated into an existing metric.

Required parameters: [MetricName] */ @interface AWSCloudWatchMetricDatum : AWSModel /**

Array of numbers that is used along with the Values array. Each number in the Count array is the number of times the corresponding value in the Values array occurred during the period.

If you omit the Counts array, the default of 1 is used as the value for each count. If you include a Counts array, it must include the same amount of values as the Values array.

*/ @property (nonatomic, strong) NSArray * _Nullable counts; /**

The dimensions associated with the metric.

*/ @property (nonatomic, strong) NSArray * _Nullable dimensions; /**

The name of the metric.

*/ @property (nonatomic, strong) NSString * _Nullable metricName; /**

The statistical values for the metric.

*/ @property (nonatomic, strong) AWSCloudWatchStatisticSet * _Nullable statisticValues; /**

Valid values are 1 and 60. Setting this to 1 specifies this metric as a high-resolution metric, so that CloudWatch stores the metric with sub-minute resolution down to one second. Setting this to 60 specifies this metric as a regular-resolution metric, which CloudWatch stores at 1-minute resolution. Currently, high resolution is available only for custom metrics. For more information about high-resolution metrics, see High-Resolution Metrics in the Amazon CloudWatch User Guide.

This field is optional, if you do not specify it the default of 60 is used.

*/ @property (nonatomic, strong) NSNumber * _Nullable storageResolution; /**

The time the metric data was received, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.

*/ @property (nonatomic, strong) NSDate * _Nullable timestamp; /**

The unit of the metric.

*/ @property (nonatomic, assign) AWSCloudWatchStandardUnit unit; /**

The value for the metric.

Although the parameter accepts numbers of type Double, CloudWatch rejects values that are either too small or too large. Values must be in the range of 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2). In addition, special values (for example, NaN, +Infinity, -Infinity) are not supported.

*/ @property (nonatomic, strong) NSNumber * _Nullable value; /**

Array of numbers representing the values for the metric during the period. Each unique value is listed just once in this array, and the corresponding number in the Counts array specifies the number of times that value occurred during the period. You can include up to 150 unique values in each PutMetricData action that specifies a Values array.

Although the Values array accepts numbers of type Double, CloudWatch rejects values that are either too small or too large. Values must be in the range of 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2). In addition, special values (for example, NaN, +Infinity, -Infinity) are not supported.

*/ @property (nonatomic, strong) NSArray * _Nullable values; @end /**

This structure defines the metric to be returned, along with the statistics, period, and units.

Required parameters: [Metric, Period, Stat] */ @interface AWSCloudWatchMetricStat : AWSModel /**

The metric to return, including the metric name, namespace, and dimensions.

*/ @property (nonatomic, strong) AWSCloudWatchMetric * _Nullable metric; /**

The period, in seconds, to use when retrieving the metric.

*/ @property (nonatomic, strong) NSNumber * _Nullable period; /**

The statistic to return. It can include any CloudWatch statistic or extended statistic.

*/ @property (nonatomic, strong) NSString * _Nullable stat; /**

The unit to use for the returned data points.

*/ @property (nonatomic, assign) AWSCloudWatchStandardUnit unit; @end /** */ @interface AWSCloudWatchPutDashboardInput : AWSRequest /**

The detailed information about the dashboard in JSON format, including the widgets to include and their location on the dashboard. This parameter is required.

For more information about the syntax, see CloudWatch-Dashboard-Body-Structure.

*/ @property (nonatomic, strong) NSString * _Nullable dashboardBody; /**

The name of the dashboard. If a dashboard with this name already exists, this call modifies that dashboard, replacing its current contents. Otherwise, a new dashboard is created. The maximum length is 255, and valid characters are A-Z, a-z, 0-9, "-", and "_". This parameter is required.

*/ @property (nonatomic, strong) NSString * _Nullable dashboardName; @end /** */ @interface AWSCloudWatchPutDashboardOutput : AWSModel /**

If the input for PutDashboard was correct and the dashboard was successfully created or modified, this result is empty.

If this result includes only warning messages, then the input was valid enough for the dashboard to be created or modified, but some elements of the dashboard may not render.

If this result includes error messages, the input was not valid and the operation failed.

*/ @property (nonatomic, strong) NSArray * _Nullable dashboardValidationMessages; @end /** */ @interface AWSCloudWatchPutMetricAlarmInput : AWSRequest /**

Indicates whether actions should be executed during any changes to the alarm state. The default is TRUE.

*/ @property (nonatomic, strong) NSNumber * _Nullable actionsEnabled; /**

The actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).

Valid Values: arn:aws:automate:region:ec2:stop | arn:aws:automate:region:ec2:terminate | arn:aws:automate:region:ec2:recover | arn:aws:sns:region:account-id:sns-topic-name | arn:aws:autoscaling:region:account-id:scalingPolicy:policy-idautoScalingGroupName/group-friendly-name:policyName/policy-friendly-name

Valid Values (for use with IAM roles): arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0

*/ @property (nonatomic, strong) NSArray * _Nullable alarmActions; /**

The description for the alarm.

*/ @property (nonatomic, strong) NSString * _Nullable alarmDescription; /**

The name for the alarm. This name must be unique within your AWS account.

*/ @property (nonatomic, strong) NSString * _Nullable alarmName; /**

The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.

*/ @property (nonatomic, assign) AWSCloudWatchComparisonOperator comparisonOperator; /**

The number of datapoints that must be breaching to trigger the alarm. This is used only if you are setting an "M out of N" alarm. In that case, this value is the M. For more information, see Evaluating an Alarm in the Amazon CloudWatch User Guide.

*/ @property (nonatomic, strong) NSNumber * _Nullable datapointsToAlarm; /**

The dimensions for the metric specified in MetricName.

*/ @property (nonatomic, strong) NSArray * _Nullable dimensions; /**

Used only for alarms based on percentiles. If you specify ignore, the alarm state does not change during periods with too few data points to be statistically significant. If you specify evaluate or omit this parameter, the alarm is always evaluated and possibly changes state no matter how many data points are available. For more information, see Percentile-Based CloudWatch Alarms and Low Data Samples.

Valid Values: evaluate | ignore

*/ @property (nonatomic, strong) NSString * _Nullable evaluateLowSampleCountPercentile; /**

The number of periods over which data is compared to the specified threshold. If you are setting an alarm that requires that a number of consecutive data points be breaching to trigger the alarm, this value specifies that number. If you are setting an "M out of N" alarm, this value is the N.

An alarm's total current evaluation period can be no longer than one day, so this number multiplied by Period cannot be more than 86,400 seconds.

*/ @property (nonatomic, strong) NSNumber * _Nullable evaluationPeriods; /**

The percentile statistic for the metric specified in MetricName. Specify a value between p0.0 and p100. When you call PutMetricAlarm and specify a MetricName, you must specify either Statistic or ExtendedStatistic, but not both.

*/ @property (nonatomic, strong) NSString * _Nullable extendedStatistic; /**

The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).

Valid Values: arn:aws:automate:region:ec2:stop | arn:aws:automate:region:ec2:terminate | arn:aws:automate:region:ec2:recover | arn:aws:sns:region:account-id:sns-topic-name | arn:aws:autoscaling:region:account-id:scalingPolicy:policy-idautoScalingGroupName/group-friendly-name:policyName/policy-friendly-name

Valid Values (for use with IAM roles): >arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0

*/ @property (nonatomic, strong) NSArray * _Nullable insufficientDataActions; /**

The name for the metric associated with the alarm.

If you are creating an alarm based on a math expression, you cannot specify this parameter, or any of the Dimensions, Period, Namespace, Statistic, or ExtendedStatistic parameters. Instead, you specify all this information in the Metrics array.

*/ @property (nonatomic, strong) NSString * _Nullable metricName; /**

An array of MetricDataQuery structures that enable you to create an alarm based on the result of a metric math expression. Each item in the Metrics array either retrieves a metric or performs a math expression.

If you use the Metrics parameter, you cannot include the MetricName, Dimensions, Period, Namespace, Statistic, or ExtendedStatistic parameters of PutMetricAlarm in the same operation. Instead, you retrieve the metrics you are using in your math expression as part of the Metrics array.

*/ @property (nonatomic, strong) NSArray * _Nullable metrics; /**

The namespace for the metric associated specified in MetricName.

*/ @property (nonatomic, strong) NSString * _Nullable namespace; /**

The actions to execute when this alarm transitions to an OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).

Valid Values: arn:aws:automate:region:ec2:stop | arn:aws:automate:region:ec2:terminate | arn:aws:automate:region:ec2:recover | arn:aws:automate:region:ec2:reboot | arn:aws:sns:region:account-id:sns-topic-name | arn:aws:autoscaling:region:account-id:scalingPolicy:policy-idautoScalingGroupName/group-friendly-name:policyName/policy-friendly-name

Valid Values (for use with IAM roles): arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0

*/ @property (nonatomic, strong) NSArray * _Nullable OKActions; /**

The length, in seconds, used each time the metric specified in MetricName is evaluated. Valid values are 10, 30, and any multiple of 60.

Be sure to specify 10 or 30 only for metrics that are stored by a PutMetricData call with a StorageResolution of 1. If you specify a period of 10 or 30 for a metric that does not have sub-minute resolution, the alarm still attempts to gather data at the period rate that you specify. In this case, it does not receive data for the attempts that do not correspond to a one-minute data resolution, and the alarm may often lapse into INSUFFICENT_DATA status. Specifying 10 or 30 also sets this alarm as a high-resolution alarm, which has a higher charge than other alarms. For more information about pricing, see Amazon CloudWatch Pricing.

An alarm's total current evaluation period can be no longer than one day, so Period multiplied by EvaluationPeriods cannot be more than 86,400 seconds.

*/ @property (nonatomic, strong) NSNumber * _Nullable period; /**

The statistic for the metric specified in MetricName, other than percentile. For percentile statistics, use ExtendedStatistic. When you call PutMetricAlarm and specify a MetricName, you must specify either Statistic or ExtendedStatistic, but not both.

*/ @property (nonatomic, assign) AWSCloudWatchStatistic statistic; /**

The value against which the specified statistic is compared.

*/ @property (nonatomic, strong) NSNumber * _Nullable threshold; /**

Sets how this alarm is to handle missing data points. If TreatMissingData is omitted, the default behavior of missing is used. For more information, see Configuring How CloudWatch Alarms Treats Missing Data.

Valid Values: breaching | notBreaching | ignore | missing

*/ @property (nonatomic, strong) NSString * _Nullable treatMissingData; /**

The unit of measure for the statistic. For example, the units for the Amazon EC2 NetworkIn metric are Bytes because NetworkIn tracks the number of bytes that an instance receives on all network interfaces. You can also specify a unit when you create a custom metric. Units help provide conceptual meaning to your data. Metric data points that specify a unit of measure, such as Percent, are aggregated separately.

If you specify a unit, you must use a unit that is appropriate for the metric. Otherwise, the CloudWatch alarm can get stuck in the INSUFFICIENT DATA state.

*/ @property (nonatomic, assign) AWSCloudWatchStandardUnit unit; @end /** */ @interface AWSCloudWatchPutMetricDataInput : AWSRequest /**

The data for the metric. The array can include no more than 20 metrics per call.

*/ @property (nonatomic, strong) NSArray * _Nullable metricData; /**

The namespace for the metric data.

You cannot specify a namespace that begins with "AWS/". Namespaces that begin with "AWS/" are reserved for use by Amazon Web Services products.

*/ @property (nonatomic, strong) NSString * _Nullable namespace; @end /** */ @interface AWSCloudWatchSetAlarmStateInput : AWSRequest /**

The name for the alarm. This name must be unique within the AWS account. The maximum length is 255 characters.

*/ @property (nonatomic, strong) NSString * _Nullable alarmName; /**

The reason that this alarm is set to this specific state, in text format.

*/ @property (nonatomic, strong) NSString * _Nullable stateReason; /**

The reason that this alarm is set to this specific state, in JSON format.

*/ @property (nonatomic, strong) NSString * _Nullable stateReasonData; /**

The value of the state.

*/ @property (nonatomic, assign) AWSCloudWatchStateValue stateValue; @end /**

Represents a set of statistics that describes a specific metric.

Required parameters: [SampleCount, Sum, Minimum, Maximum] */ @interface AWSCloudWatchStatisticSet : AWSModel /**

The maximum value of the sample set.

*/ @property (nonatomic, strong) NSNumber * _Nullable maximum; /**

The minimum value of the sample set.

*/ @property (nonatomic, strong) NSNumber * _Nullable minimum; /**

The number of samples used for the statistic set.

*/ @property (nonatomic, strong) NSNumber * _Nullable sampleCount; /**

The sum of values for the sample set.

*/ @property (nonatomic, strong) NSNumber * _Nullable sum; @end NS_ASSUME_NONNULL_END