aws-sdk-cloudwatch 1.0.0.rc6 → 1.0.0.rc7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,11 +22,26 @@ module Aws::CloudWatch
22
22
  AlarmNames = Shapes::ListShape.new(name: 'AlarmNames')
23
23
  AwsQueryErrorMessage = Shapes::StringShape.new(name: 'AwsQueryErrorMessage')
24
24
  ComparisonOperator = Shapes::StringShape.new(name: 'ComparisonOperator')
25
+ DashboardArn = Shapes::StringShape.new(name: 'DashboardArn')
26
+ DashboardBody = Shapes::StringShape.new(name: 'DashboardBody')
27
+ DashboardEntries = Shapes::ListShape.new(name: 'DashboardEntries')
28
+ DashboardEntry = Shapes::StructureShape.new(name: 'DashboardEntry')
29
+ DashboardErrorMessage = Shapes::StringShape.new(name: 'DashboardErrorMessage')
30
+ DashboardInvalidInputError = Shapes::StructureShape.new(name: 'DashboardInvalidInputError')
31
+ DashboardName = Shapes::StringShape.new(name: 'DashboardName')
32
+ DashboardNamePrefix = Shapes::StringShape.new(name: 'DashboardNamePrefix')
33
+ DashboardNames = Shapes::ListShape.new(name: 'DashboardNames')
34
+ DashboardNotFoundError = Shapes::StructureShape.new(name: 'DashboardNotFoundError')
35
+ DashboardValidationMessage = Shapes::StructureShape.new(name: 'DashboardValidationMessage')
36
+ DashboardValidationMessages = Shapes::ListShape.new(name: 'DashboardValidationMessages')
37
+ DataPath = Shapes::StringShape.new(name: 'DataPath')
25
38
  Datapoint = Shapes::StructureShape.new(name: 'Datapoint')
26
39
  DatapointValue = Shapes::FloatShape.new(name: 'DatapointValue')
27
40
  DatapointValueMap = Shapes::MapShape.new(name: 'DatapointValueMap')
28
41
  Datapoints = Shapes::ListShape.new(name: 'Datapoints')
29
42
  DeleteAlarmsInput = Shapes::StructureShape.new(name: 'DeleteAlarmsInput')
43
+ DeleteDashboardsInput = Shapes::StructureShape.new(name: 'DeleteDashboardsInput')
44
+ DeleteDashboardsOutput = Shapes::StructureShape.new(name: 'DeleteDashboardsOutput')
30
45
  DescribeAlarmHistoryInput = Shapes::StructureShape.new(name: 'DescribeAlarmHistoryInput')
31
46
  DescribeAlarmHistoryOutput = Shapes::StructureShape.new(name: 'DescribeAlarmHistoryOutput')
32
47
  DescribeAlarmsForMetricInput = Shapes::StructureShape.new(name: 'DescribeAlarmsForMetricInput')
@@ -47,6 +62,8 @@ module Aws::CloudWatch
47
62
  ExtendedStatistic = Shapes::StringShape.new(name: 'ExtendedStatistic')
48
63
  ExtendedStatistics = Shapes::ListShape.new(name: 'ExtendedStatistics')
49
64
  FaultDescription = Shapes::StringShape.new(name: 'FaultDescription')
65
+ GetDashboardInput = Shapes::StructureShape.new(name: 'GetDashboardInput')
66
+ GetDashboardOutput = Shapes::StructureShape.new(name: 'GetDashboardOutput')
50
67
  GetMetricStatisticsInput = Shapes::StructureShape.new(name: 'GetMetricStatisticsInput')
51
68
  GetMetricStatisticsOutput = Shapes::StructureShape.new(name: 'GetMetricStatisticsOutput')
52
69
  HistoryData = Shapes::StringShape.new(name: 'HistoryData')
@@ -57,10 +74,14 @@ module Aws::CloudWatch
57
74
  InvalidNextToken = Shapes::StructureShape.new(name: 'InvalidNextToken')
58
75
  InvalidParameterCombinationException = Shapes::StructureShape.new(name: 'InvalidParameterCombinationException')
59
76
  InvalidParameterValueException = Shapes::StructureShape.new(name: 'InvalidParameterValueException')
77
+ LastModified = Shapes::TimestampShape.new(name: 'LastModified')
60
78
  LimitExceededFault = Shapes::StructureShape.new(name: 'LimitExceededFault')
79
+ ListDashboardsInput = Shapes::StructureShape.new(name: 'ListDashboardsInput')
80
+ ListDashboardsOutput = Shapes::StructureShape.new(name: 'ListDashboardsOutput')
61
81
  ListMetricsInput = Shapes::StructureShape.new(name: 'ListMetricsInput')
62
82
  ListMetricsOutput = Shapes::StructureShape.new(name: 'ListMetricsOutput')
63
83
  MaxRecords = Shapes::IntegerShape.new(name: 'MaxRecords')
84
+ Message = Shapes::StringShape.new(name: 'Message')
64
85
  Metric = Shapes::StructureShape.new(name: 'Metric')
65
86
  MetricAlarm = Shapes::StructureShape.new(name: 'MetricAlarm')
66
87
  MetricAlarms = Shapes::ListShape.new(name: 'MetricAlarms')
@@ -73,12 +94,15 @@ module Aws::CloudWatch
73
94
  Namespace = Shapes::StringShape.new(name: 'Namespace')
74
95
  NextToken = Shapes::StringShape.new(name: 'NextToken')
75
96
  Period = Shapes::IntegerShape.new(name: 'Period')
97
+ PutDashboardInput = Shapes::StructureShape.new(name: 'PutDashboardInput')
98
+ PutDashboardOutput = Shapes::StructureShape.new(name: 'PutDashboardOutput')
76
99
  PutMetricAlarmInput = Shapes::StructureShape.new(name: 'PutMetricAlarmInput')
77
100
  PutMetricDataInput = Shapes::StructureShape.new(name: 'PutMetricDataInput')
78
101
  ResourceList = Shapes::ListShape.new(name: 'ResourceList')
79
102
  ResourceName = Shapes::StringShape.new(name: 'ResourceName')
80
103
  ResourceNotFound = Shapes::StructureShape.new(name: 'ResourceNotFound')
81
104
  SetAlarmStateInput = Shapes::StructureShape.new(name: 'SetAlarmStateInput')
105
+ Size = Shapes::IntegerShape.new(name: 'Size')
82
106
  StandardUnit = Shapes::StringShape.new(name: 'StandardUnit')
83
107
  StateReason = Shapes::StringShape.new(name: 'StateReason')
84
108
  StateReasonData = Shapes::StringShape.new(name: 'StateReasonData')
@@ -86,6 +110,7 @@ module Aws::CloudWatch
86
110
  Statistic = Shapes::StringShape.new(name: 'Statistic')
87
111
  StatisticSet = Shapes::StructureShape.new(name: 'StatisticSet')
88
112
  Statistics = Shapes::ListShape.new(name: 'Statistics')
113
+ StorageResolution = Shapes::IntegerShape.new(name: 'StorageResolution')
89
114
  Threshold = Shapes::FloatShape.new(name: 'Threshold')
90
115
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
91
116
  TreatMissingData = Shapes::StringShape.new(name: 'TreatMissingData')
@@ -101,6 +126,22 @@ module Aws::CloudWatch
101
126
 
102
127
  AlarmNames.member = Shapes::ShapeRef.new(shape: AlarmName)
103
128
 
129
+ DashboardEntries.member = Shapes::ShapeRef.new(shape: DashboardEntry)
130
+
131
+ DashboardEntry.add_member(:dashboard_name, Shapes::ShapeRef.new(shape: DashboardName, location_name: "DashboardName"))
132
+ DashboardEntry.add_member(:dashboard_arn, Shapes::ShapeRef.new(shape: DashboardArn, location_name: "DashboardArn"))
133
+ DashboardEntry.add_member(:last_modified, Shapes::ShapeRef.new(shape: LastModified, location_name: "LastModified"))
134
+ DashboardEntry.add_member(:size, Shapes::ShapeRef.new(shape: Size, location_name: "Size"))
135
+ DashboardEntry.struct_class = Types::DashboardEntry
136
+
137
+ DashboardNames.member = Shapes::ShapeRef.new(shape: DashboardName)
138
+
139
+ DashboardValidationMessage.add_member(:data_path, Shapes::ShapeRef.new(shape: DataPath, location_name: "DataPath"))
140
+ DashboardValidationMessage.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
141
+ DashboardValidationMessage.struct_class = Types::DashboardValidationMessage
142
+
143
+ DashboardValidationMessages.member = Shapes::ShapeRef.new(shape: DashboardValidationMessage)
144
+
104
145
  Datapoint.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Timestamp"))
105
146
  Datapoint.add_member(:sample_count, Shapes::ShapeRef.new(shape: DatapointValue, location_name: "SampleCount"))
106
147
  Datapoint.add_member(:average, Shapes::ShapeRef.new(shape: DatapointValue, location_name: "Average"))
@@ -119,6 +160,11 @@ module Aws::CloudWatch
119
160
  DeleteAlarmsInput.add_member(:alarm_names, Shapes::ShapeRef.new(shape: AlarmNames, required: true, location_name: "AlarmNames"))
120
161
  DeleteAlarmsInput.struct_class = Types::DeleteAlarmsInput
121
162
 
163
+ DeleteDashboardsInput.add_member(:dashboard_names, Shapes::ShapeRef.new(shape: DashboardNames, location_name: "DashboardNames"))
164
+ DeleteDashboardsInput.struct_class = Types::DeleteDashboardsInput
165
+
166
+ DeleteDashboardsOutput.struct_class = Types::DeleteDashboardsOutput
167
+
122
168
  DescribeAlarmHistoryInput.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, location_name: "AlarmName"))
123
169
  DescribeAlarmHistoryInput.add_member(:history_item_type, Shapes::ShapeRef.new(shape: HistoryItemType, location_name: "HistoryItemType"))
124
170
  DescribeAlarmHistoryInput.add_member(:start_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StartDate"))
@@ -175,6 +221,14 @@ module Aws::CloudWatch
175
221
 
176
222
  ExtendedStatistics.member = Shapes::ShapeRef.new(shape: ExtendedStatistic)
177
223
 
224
+ GetDashboardInput.add_member(:dashboard_name, Shapes::ShapeRef.new(shape: DashboardName, location_name: "DashboardName"))
225
+ GetDashboardInput.struct_class = Types::GetDashboardInput
226
+
227
+ GetDashboardOutput.add_member(:dashboard_arn, Shapes::ShapeRef.new(shape: DashboardArn, location_name: "DashboardArn"))
228
+ GetDashboardOutput.add_member(:dashboard_body, Shapes::ShapeRef.new(shape: DashboardBody, location_name: "DashboardBody"))
229
+ GetDashboardOutput.add_member(:dashboard_name, Shapes::ShapeRef.new(shape: DashboardName, location_name: "DashboardName"))
230
+ GetDashboardOutput.struct_class = Types::GetDashboardOutput
231
+
178
232
  GetMetricStatisticsInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, required: true, location_name: "Namespace"))
179
233
  GetMetricStatisticsInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricName"))
180
234
  GetMetricStatisticsInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
@@ -190,6 +244,14 @@ module Aws::CloudWatch
190
244
  GetMetricStatisticsOutput.add_member(:datapoints, Shapes::ShapeRef.new(shape: Datapoints, location_name: "Datapoints"))
191
245
  GetMetricStatisticsOutput.struct_class = Types::GetMetricStatisticsOutput
192
246
 
247
+ ListDashboardsInput.add_member(:dashboard_name_prefix, Shapes::ShapeRef.new(shape: DashboardNamePrefix, location_name: "DashboardNamePrefix"))
248
+ ListDashboardsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
249
+ ListDashboardsInput.struct_class = Types::ListDashboardsInput
250
+
251
+ ListDashboardsOutput.add_member(:dashboard_entries, Shapes::ShapeRef.new(shape: DashboardEntries, location_name: "DashboardEntries"))
252
+ ListDashboardsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
253
+ ListDashboardsOutput.struct_class = Types::ListDashboardsOutput
254
+
193
255
  ListMetricsInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, location_name: "Namespace"))
194
256
  ListMetricsInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, location_name: "MetricName"))
195
257
  ListMetricsInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: DimensionFilters, location_name: "Dimensions"))
@@ -241,10 +303,18 @@ module Aws::CloudWatch
241
303
  MetricDatum.add_member(:value, Shapes::ShapeRef.new(shape: DatapointValue, location_name: "Value"))
242
304
  MetricDatum.add_member(:statistic_values, Shapes::ShapeRef.new(shape: StatisticSet, location_name: "StatisticValues"))
243
305
  MetricDatum.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit"))
306
+ MetricDatum.add_member(:storage_resolution, Shapes::ShapeRef.new(shape: StorageResolution, location_name: "StorageResolution"))
244
307
  MetricDatum.struct_class = Types::MetricDatum
245
308
 
246
309
  Metrics.member = Shapes::ShapeRef.new(shape: Metric)
247
310
 
311
+ PutDashboardInput.add_member(:dashboard_name, Shapes::ShapeRef.new(shape: DashboardName, location_name: "DashboardName"))
312
+ PutDashboardInput.add_member(:dashboard_body, Shapes::ShapeRef.new(shape: DashboardBody, location_name: "DashboardBody"))
313
+ PutDashboardInput.struct_class = Types::PutDashboardInput
314
+
315
+ PutDashboardOutput.add_member(:dashboard_validation_messages, Shapes::ShapeRef.new(shape: DashboardValidationMessages, location_name: "DashboardValidationMessages"))
316
+ PutDashboardOutput.struct_class = Types::PutDashboardOutput
317
+
248
318
  PutMetricAlarmInput.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, required: true, location_name: "AlarmName"))
249
319
  PutMetricAlarmInput.add_member(:alarm_description, Shapes::ShapeRef.new(shape: AlarmDescription, location_name: "AlarmDescription"))
250
320
  PutMetricAlarmInput.add_member(:actions_enabled, Shapes::ShapeRef.new(shape: ActionsEnabled, location_name: "ActionsEnabled"))
@@ -308,6 +378,17 @@ module Aws::CloudWatch
308
378
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFound)
309
379
  end)
310
380
 
381
+ api.add_operation(:delete_dashboards, Seahorse::Model::Operation.new.tap do |o|
382
+ o.name = "DeleteDashboards"
383
+ o.http_method = "POST"
384
+ o.http_request_uri = "/"
385
+ o.input = Shapes::ShapeRef.new(shape: DeleteDashboardsInput)
386
+ o.output = Shapes::ShapeRef.new(shape: DeleteDashboardsOutput)
387
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
388
+ o.errors << Shapes::ShapeRef.new(shape: DashboardNotFoundError)
389
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
390
+ end)
391
+
311
392
  api.add_operation(:describe_alarm_history, Seahorse::Model::Operation.new.tap do |o|
312
393
  o.name = "DescribeAlarmHistory"
313
394
  o.http_method = "POST"
@@ -362,6 +443,17 @@ module Aws::CloudWatch
362
443
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
363
444
  end)
364
445
 
446
+ api.add_operation(:get_dashboard, Seahorse::Model::Operation.new.tap do |o|
447
+ o.name = "GetDashboard"
448
+ o.http_method = "POST"
449
+ o.http_request_uri = "/"
450
+ o.input = Shapes::ShapeRef.new(shape: GetDashboardInput)
451
+ o.output = Shapes::ShapeRef.new(shape: GetDashboardOutput)
452
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
453
+ o.errors << Shapes::ShapeRef.new(shape: DashboardNotFoundError)
454
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
455
+ end)
456
+
365
457
  api.add_operation(:get_metric_statistics, Seahorse::Model::Operation.new.tap do |o|
366
458
  o.name = "GetMetricStatistics"
367
459
  o.http_method = "POST"
@@ -374,6 +466,16 @@ module Aws::CloudWatch
374
466
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
375
467
  end)
376
468
 
469
+ api.add_operation(:list_dashboards, Seahorse::Model::Operation.new.tap do |o|
470
+ o.name = "ListDashboards"
471
+ o.http_method = "POST"
472
+ o.http_request_uri = "/"
473
+ o.input = Shapes::ShapeRef.new(shape: ListDashboardsInput)
474
+ o.output = Shapes::ShapeRef.new(shape: ListDashboardsOutput)
475
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
476
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
477
+ end)
478
+
377
479
  api.add_operation(:list_metrics, Seahorse::Model::Operation.new.tap do |o|
378
480
  o.name = "ListMetrics"
379
481
  o.http_method = "POST"
@@ -389,6 +491,16 @@ module Aws::CloudWatch
389
491
  )
390
492
  end)
391
493
 
494
+ api.add_operation(:put_dashboard, Seahorse::Model::Operation.new.tap do |o|
495
+ o.name = "PutDashboard"
496
+ o.http_method = "POST"
497
+ o.http_request_uri = "/"
498
+ o.input = Shapes::ShapeRef.new(shape: PutDashboardInput)
499
+ o.output = Shapes::ShapeRef.new(shape: PutDashboardOutput)
500
+ o.errors << Shapes::ShapeRef.new(shape: DashboardInvalidInputError)
501
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
502
+ end)
503
+
392
504
  api.add_operation(:put_metric_alarm, Seahorse::Model::Operation.new.tap do |o|
393
505
  o.name = "PutMetricAlarm"
394
506
  o.http_method = "POST"
@@ -105,22 +105,22 @@ module Aws::CloudWatch
105
105
  # @option options [Array<Types::Dimension>] :dimensions
106
106
  # The dimensions. If the metric contains multiple dimensions, you must
107
107
  # include a value for each dimension. CloudWatch treats each unique
108
- # combination of dimensions as a separate metric. You can't retrieve
109
- # statistics using combinations of dimensions that were not specially
110
- # published. You must specify the same dimensions that were used when
111
- # the metrics were created. For an example, see [Dimension
108
+ # combination of dimensions as a separate metric. If a specific
109
+ # combination of dimensions was not published, you can't retrieve
110
+ # statistics for it. You must specify the same dimensions that were used
111
+ # when the metrics were created. For an example, see [Dimension
112
112
  # Combinations][1] in the *Amazon CloudWatch User Guide*. For more
113
- # information on specifying dimensions, see [Publishing Metrics][2] in
114
- # the *Amazon CloudWatch User Guide*.
113
+ # information about specifying dimensions, see [Publishing Metrics][2]
114
+ # in the *Amazon CloudWatch User Guide*.
115
115
  #
116
116
  #
117
117
  #
118
118
  # [1]: http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#dimension-combinations
119
119
  # [2]: http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html
120
120
  # @option options [required, Time,DateTime,Date,Integer,String] :start_time
121
- # The time stamp that determines the first data point to return. Note
122
- # that start times are evaluated relative to the time that CloudWatch
123
- # receives the request.
121
+ # The time stamp that determines the first data point to return. Start
122
+ # times are evaluated relative to the time that CloudWatch receives the
123
+ # request.
124
124
  #
125
125
  # The value specified is inclusive; results include data points with the
126
126
  # specified time stamp. The time stamp must be in ISO 8601 UTC format
@@ -141,13 +141,12 @@ module Aws::CloudWatch
141
141
  # @option options [required, Time,DateTime,Date,Integer,String] :end_time
142
142
  # The time stamp that determines the last data point to return.
143
143
  #
144
- # The value specified is exclusive; results will include data points up
145
- # to the specified time stamp. The time stamp must be in ISO 8601 UTC
144
+ # The value specified is exclusive; results include data points up to
145
+ # the specified time stamp. The time stamp must be in ISO 8601 UTC
146
146
  # format (for example, 2016-10-10T23:00:00Z).
147
147
  # @option options [required, Integer] :period
148
148
  # The granularity, in seconds, of the returned data points. A period can
149
149
  # be as short as one minute (60 seconds) and must be a multiple of 60.
150
- # The default value is 60.
151
150
  #
152
151
  # If the `StartTime` parameter specifies a time stamp that is greater
153
152
  # than 15 days ago, you must specify the period as follows or no data
@@ -160,9 +159,13 @@ module Aws::CloudWatch
160
159
  # (1 hour).
161
160
  # @option options [Array<String>] :statistics
162
161
  # The metric statistics, other than percentile. For percentile
163
- # statistics, use `ExtendedStatistic`.
162
+ # statistics, use `ExtendedStatistics`. When calling
163
+ # `GetMetricStatistics`, you must specify either `Statistics` or
164
+ # `ExtendedStatistics`, but not both.
164
165
  # @option options [Array<String>] :extended_statistics
165
- # The percentile statistics. Specify values between p0.0 and p100.
166
+ # The percentile statistics. Specify values between p0.0 and p100. When
167
+ # calling `GetMetricStatistics`, you must specify either `Statistics` or
168
+ # `ExtendedStatistics`, but not both.
166
169
  # @option options [String] :unit
167
170
  # The unit for a given metric. Metrics may be reported in multiple
168
171
  # units. Not supplying a unit results in all units being returned. If
@@ -267,6 +270,9 @@ module Aws::CloudWatch
267
270
  # The dimensions for the metric associated with the alarm.
268
271
  # @option options [required, Integer] :period
269
272
  # The period, in seconds, over which the specified statistic is applied.
273
+ # An alarm's total current evaluation period can be no longer than one
274
+ # day, so this number multiplied by `EvaluationPeriods` must be 86,400
275
+ # or less.
270
276
  # @option options [String] :unit
271
277
  # The unit of measure for the statistic. For example, the units for the
272
278
  # Amazon EC2 NetworkIn metric are Bytes because NetworkIn tracks the
@@ -276,11 +282,13 @@ module Aws::CloudWatch
276
282
  # specify a unit of measure, such as Percent, are aggregated separately.
277
283
  #
278
284
  # If you specify a unit, you must use a unit that is appropriate for the
279
- # metric. Otherwise, the Amazon CloudWatch alarm can get stuck in the
285
+ # metric. Otherwise, the CloudWatch alarm can get stuck in the
280
286
  # `INSUFFICIENT DATA` state.
281
287
  # @option options [required, Integer] :evaluation_periods
282
288
  # The number of periods over which data is compared to the specified
283
- # threshold.
289
+ # threshold. An alarm's total current evaluation period can be no
290
+ # longer than one day, so this number multiplied by `Period` must be
291
+ # 86,400 or less.
284
292
  # @option options [required, Float] :threshold
285
293
  # The value against which the specified statistic is compared.
286
294
  # @option options [required, String] :comparison_operator
@@ -300,10 +308,10 @@ module Aws::CloudWatch
300
308
  # [1]: http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarms-and-missing-data
301
309
  # @option options [String] :evaluate_low_sample_count_percentile
302
310
  # Used only for alarms based on percentiles. If you specify `ignore`,
303
- # the alarm state will not change during periods with too few data
311
+ # the alarm state does not change during periods with too few data
304
312
  # points to be statistically significant. If you specify `evaluate` or
305
- # omit this parameter, the alarm will always be evaluated and possibly
306
- # change state no matter how many data points are available. For more
313
+ # omit this parameter, the alarm is always evaluated and possibly
314
+ # changes state no matter how many data points are available. For more
307
315
  # information, see [Percentile-Based CloudWatch Alarms and Low Data
308
316
  # Samples][1].
309
317
  #
@@ -346,6 +354,7 @@ module Aws::CloudWatch
346
354
  # maximum: 1.0, # required
347
355
  # },
348
356
  # unit: "Seconds", # accepts Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None
357
+ # storage_resolution: 1,
349
358
  # },
350
359
  # ],
351
360
  # })
@@ -42,8 +42,8 @@ module Aws::CloudWatch
42
42
  # @option options [Array<String>] :alarm_names
43
43
  # The names of the alarms.
44
44
  # @option options [String] :alarm_name_prefix
45
- # The alarm name prefix. You cannot specify `AlarmNames` if this
46
- # parameter is specified.
45
+ # The alarm name prefix. If this parameter is specified, you cannot
46
+ # specify `AlarmNames`.
47
47
  # @option options [String] :state_value
48
48
  # The state value to be used in matching alarms.
49
49
  # @option options [String] :action_prefix
@@ -41,8 +41,56 @@ module Aws::CloudWatch
41
41
  include Aws::Structure
42
42
  end
43
43
 
44
- # Encapsulates the statistical data that Amazon CloudWatch computes from
45
- # metric data.
44
+ # Represents a specific dashboard.
45
+ #
46
+ # @!attribute [rw] dashboard_name
47
+ # The name of the dashboard.
48
+ # @return [String]
49
+ #
50
+ # @!attribute [rw] dashboard_arn
51
+ # The Amazon Resource Name (ARN) of the dashboard.
52
+ # @return [String]
53
+ #
54
+ # @!attribute [rw] last_modified
55
+ # The time stamp of when the dashboard was last modified, either by an
56
+ # API call or through the console. This number is expressed as the
57
+ # number of milliseconds since Jan 1, 1970 00:00:00 UTC.
58
+ # @return [Time]
59
+ #
60
+ # @!attribute [rw] size
61
+ # The size of the dashboard, in bytes.
62
+ # @return [Integer]
63
+ #
64
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DashboardEntry AWS API Documentation
65
+ #
66
+ class DashboardEntry < Struct.new(
67
+ :dashboard_name,
68
+ :dashboard_arn,
69
+ :last_modified,
70
+ :size)
71
+ include Aws::Structure
72
+ end
73
+
74
+ # An error or warning for the operation.
75
+ #
76
+ # @!attribute [rw] data_path
77
+ # The data path related to the message.
78
+ # @return [String]
79
+ #
80
+ # @!attribute [rw] message
81
+ # A message describing the error or warning.
82
+ # @return [String]
83
+ #
84
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DashboardValidationMessage AWS API Documentation
85
+ #
86
+ class DashboardValidationMessage < Struct.new(
87
+ :data_path,
88
+ :message)
89
+ include Aws::Structure
90
+ end
91
+
92
+ # Encapsulates the statistical data that CloudWatch computes from metric
93
+ # data.
46
94
  #
47
95
  # @!attribute [rw] timestamp
48
96
  # The time stamp used for the data point.
@@ -109,6 +157,28 @@ module Aws::CloudWatch
109
157
  include Aws::Structure
110
158
  end
111
159
 
160
+ # @note When making an API call, you may pass DeleteDashboardsInput
161
+ # data as a hash:
162
+ #
163
+ # {
164
+ # dashboard_names: ["DashboardName"],
165
+ # }
166
+ #
167
+ # @!attribute [rw] dashboard_names
168
+ # The dashboards to be deleted.
169
+ # @return [Array<String>]
170
+ #
171
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteDashboardsInput AWS API Documentation
172
+ #
173
+ class DeleteDashboardsInput < Struct.new(
174
+ :dashboard_names)
175
+ include Aws::Structure
176
+ end
177
+
178
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteDashboardsOutput AWS API Documentation
179
+ #
180
+ class DeleteDashboardsOutput < Aws::EmptyStructure; end
181
+
112
182
  # @note When making an API call, you may pass DescribeAlarmHistoryInput
113
183
  # data as a hash:
114
184
  #
@@ -266,8 +336,8 @@ module Aws::CloudWatch
266
336
  # @return [Array<String>]
267
337
  #
268
338
  # @!attribute [rw] alarm_name_prefix
269
- # The alarm name prefix. You cannot specify `AlarmNames` if this
270
- # parameter is specified.
339
+ # The alarm name prefix. If this parameter is specified, you cannot
340
+ # specify `AlarmNames`.
271
341
  # @return [String]
272
342
  #
273
343
  # @!attribute [rw] state_value
@@ -404,6 +474,48 @@ module Aws::CloudWatch
404
474
  include Aws::Structure
405
475
  end
406
476
 
477
+ # @note When making an API call, you may pass GetDashboardInput
478
+ # data as a hash:
479
+ #
480
+ # {
481
+ # dashboard_name: "DashboardName",
482
+ # }
483
+ #
484
+ # @!attribute [rw] dashboard_name
485
+ # The name of the dashboard to be described.
486
+ # @return [String]
487
+ #
488
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetDashboardInput AWS API Documentation
489
+ #
490
+ class GetDashboardInput < Struct.new(
491
+ :dashboard_name)
492
+ include Aws::Structure
493
+ end
494
+
495
+ # @!attribute [rw] dashboard_arn
496
+ # The Amazon Resource Name (ARN) of the dashboard.
497
+ # @return [String]
498
+ #
499
+ # @!attribute [rw] dashboard_body
500
+ # The detailed information about the dashboard, including what widgets
501
+ # are included and their location on the dashboard. For more
502
+ # information about the `DashboardBody` syntax, see
503
+ # CloudWatch-Dashboard-Body-Structure.
504
+ # @return [String]
505
+ #
506
+ # @!attribute [rw] dashboard_name
507
+ # The name of the dashboard.
508
+ # @return [String]
509
+ #
510
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetDashboardOutput AWS API Documentation
511
+ #
512
+ class GetDashboardOutput < Struct.new(
513
+ :dashboard_arn,
514
+ :dashboard_body,
515
+ :dashboard_name)
516
+ include Aws::Structure
517
+ end
518
+
407
519
  # @note When making an API call, you may pass GetMetricStatisticsInput
408
520
  # data as a hash:
409
521
  #
@@ -435,13 +547,13 @@ module Aws::CloudWatch
435
547
  # @!attribute [rw] dimensions
436
548
  # The dimensions. If the metric contains multiple dimensions, you must
437
549
  # include a value for each dimension. CloudWatch treats each unique
438
- # combination of dimensions as a separate metric. You can't retrieve
439
- # statistics using combinations of dimensions that were not specially
440
- # published. You must specify the same dimensions that were used when
441
- # the metrics were created. For an example, see [Dimension
550
+ # combination of dimensions as a separate metric. If a specific
551
+ # combination of dimensions was not published, you can't retrieve
552
+ # statistics for it. You must specify the same dimensions that were
553
+ # used when the metrics were created. For an example, see [Dimension
442
554
  # Combinations][1] in the *Amazon CloudWatch User Guide*. For more
443
- # information on specifying dimensions, see [Publishing Metrics][2] in
444
- # the *Amazon CloudWatch User Guide*.
555
+ # information about specifying dimensions, see [Publishing Metrics][2]
556
+ # in the *Amazon CloudWatch User Guide*.
445
557
  #
446
558
  #
447
559
  #
@@ -450,9 +562,9 @@ module Aws::CloudWatch
450
562
  # @return [Array<Types::Dimension>]
451
563
  #
452
564
  # @!attribute [rw] start_time
453
- # The time stamp that determines the first data point to return. Note
454
- # that start times are evaluated relative to the time that CloudWatch
455
- # receives the request.
565
+ # The time stamp that determines the first data point to return. Start
566
+ # times are evaluated relative to the time that CloudWatch receives
567
+ # the request.
456
568
  #
457
569
  # The value specified is inclusive; results include data points with
458
570
  # the specified time stamp. The time stamp must be in ISO 8601 UTC
@@ -475,15 +587,15 @@ module Aws::CloudWatch
475
587
  # @!attribute [rw] end_time
476
588
  # The time stamp that determines the last data point to return.
477
589
  #
478
- # The value specified is exclusive; results will include data points
479
- # up to the specified time stamp. The time stamp must be in ISO 8601
480
- # UTC format (for example, 2016-10-10T23:00:00Z).
590
+ # The value specified is exclusive; results include data points up to
591
+ # the specified time stamp. The time stamp must be in ISO 8601 UTC
592
+ # format (for example, 2016-10-10T23:00:00Z).
481
593
  # @return [Time]
482
594
  #
483
595
  # @!attribute [rw] period
484
596
  # The granularity, in seconds, of the returned data points. A period
485
597
  # can be as short as one minute (60 seconds) and must be a multiple of
486
- # 60. The default value is 60.
598
+ # 60.
487
599
  #
488
600
  # If the `StartTime` parameter specifies a time stamp that is greater
489
601
  # than 15 days ago, you must specify the period as follows or no data
@@ -498,11 +610,15 @@ module Aws::CloudWatch
498
610
  #
499
611
  # @!attribute [rw] statistics
500
612
  # The metric statistics, other than percentile. For percentile
501
- # statistics, use `ExtendedStatistic`.
613
+ # statistics, use `ExtendedStatistics`. When calling
614
+ # `GetMetricStatistics`, you must specify either `Statistics` or
615
+ # `ExtendedStatistics`, but not both.
502
616
  # @return [Array<String>]
503
617
  #
504
618
  # @!attribute [rw] extended_statistics
505
619
  # The percentile statistics. Specify values between p0.0 and p100.
620
+ # When calling `GetMetricStatistics`, you must specify either
621
+ # `Statistics` or `ExtendedStatistics`, but not both.
506
622
  # @return [Array<String>]
507
623
  #
508
624
  # @!attribute [rw] unit
@@ -543,6 +659,51 @@ module Aws::CloudWatch
543
659
  include Aws::Structure
544
660
  end
545
661
 
662
+ # @note When making an API call, you may pass ListDashboardsInput
663
+ # data as a hash:
664
+ #
665
+ # {
666
+ # dashboard_name_prefix: "DashboardNamePrefix",
667
+ # next_token: "NextToken",
668
+ # }
669
+ #
670
+ # @!attribute [rw] dashboard_name_prefix
671
+ # If you specify this parameter, only the dashboards with names
672
+ # starting with the specified string are listed. The maximum length is
673
+ # 255, and valid characters are A-Z, a-z, 0-9, ".", "-", and
674
+ # "\_".
675
+ # @return [String]
676
+ #
677
+ # @!attribute [rw] next_token
678
+ # The token returned by a previous call to indicate that there is more
679
+ # data available.
680
+ # @return [String]
681
+ #
682
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListDashboardsInput AWS API Documentation
683
+ #
684
+ class ListDashboardsInput < Struct.new(
685
+ :dashboard_name_prefix,
686
+ :next_token)
687
+ include Aws::Structure
688
+ end
689
+
690
+ # @!attribute [rw] dashboard_entries
691
+ # The list of matching dashboards.
692
+ # @return [Array<Types::DashboardEntry>]
693
+ #
694
+ # @!attribute [rw] next_token
695
+ # The token that marks the start of the next batch of returned
696
+ # results.
697
+ # @return [String]
698
+ #
699
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListDashboardsOutput AWS API Documentation
700
+ #
701
+ class ListDashboardsOutput < Struct.new(
702
+ :dashboard_entries,
703
+ :next_token)
704
+ include Aws::Structure
705
+ end
706
+
546
707
  # @note When making an API call, you may pass ListMetricsInput
547
708
  # data as a hash:
548
709
  #
@@ -728,9 +889,16 @@ module Aws::CloudWatch
728
889
  # @return [String]
729
890
  #
730
891
  # @!attribute [rw] treat_missing_data
892
+ # Sets how this alarm is to handle missing data points. If this
893
+ # parameter is omitted, the default behavior of `missing` is used.
731
894
  # @return [String]
732
895
  #
733
896
  # @!attribute [rw] evaluate_low_sample_count_percentile
897
+ # Used only for alarms based on percentiles. If `ignore`, the alarm
898
+ # state does not change during periods with too few data points to be
899
+ # statistically significant. If `evaluate` or this parameter is not
900
+ # used, the alarm will always be evaluated and possibly change state
901
+ # no matter how many data points are available.
734
902
  # @return [String]
735
903
  #
736
904
  # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/MetricAlarm AWS API Documentation
@@ -786,6 +954,7 @@ module Aws::CloudWatch
786
954
  # maximum: 1.0, # required
787
955
  # },
788
956
  # unit: "Seconds", # accepts Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None
957
+ # storage_resolution: 1,
789
958
  # }
790
959
  #
791
960
  # @!attribute [rw] metric_name
@@ -804,11 +973,11 @@ module Aws::CloudWatch
804
973
  # @!attribute [rw] value
805
974
  # The value for the metric.
806
975
  #
807
- # Although the parameter accepts numbers of type Double, Amazon
808
- # CloudWatch rejects values that are either too small or too large.
809
- # Values must be in the range of 8.515920e-109 to 1.174271e+108 (Base
810
- # 10) or 2e-360 to 2e360 (Base 2). In addition, special values (for
811
- # example, NaN, +Infinity, -Infinity) are not supported.
976
+ # Although the parameter accepts numbers of type Double, CloudWatch
977
+ # rejects values that are either too small or too large. Values must
978
+ # be in the range of 8.515920e-109 to 1.174271e+108 (Base 10) or
979
+ # 2e-360 to 2e360 (Base 2). In addition, special values (for example,
980
+ # NaN, +Infinity, -Infinity) are not supported.
812
981
  # @return [Float]
813
982
  #
814
983
  # @!attribute [rw] statistic_values
@@ -819,6 +988,9 @@ module Aws::CloudWatch
819
988
  # The unit of the metric.
820
989
  # @return [String]
821
990
  #
991
+ # @!attribute [rw] storage_resolution
992
+ # @return [Integer]
993
+ #
822
994
  # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/MetricDatum AWS API Documentation
823
995
  #
824
996
  class MetricDatum < Struct.new(
@@ -827,7 +999,60 @@ module Aws::CloudWatch
827
999
  :timestamp,
828
1000
  :value,
829
1001
  :statistic_values,
830
- :unit)
1002
+ :unit,
1003
+ :storage_resolution)
1004
+ include Aws::Structure
1005
+ end
1006
+
1007
+ # @note When making an API call, you may pass PutDashboardInput
1008
+ # data as a hash:
1009
+ #
1010
+ # {
1011
+ # dashboard_name: "DashboardName",
1012
+ # dashboard_body: "DashboardBody",
1013
+ # }
1014
+ #
1015
+ # @!attribute [rw] dashboard_name
1016
+ # The name of the dashboard. If a dashboard with this name already
1017
+ # exists, this call modifies that dashboard, replacing its current
1018
+ # contents. Otherwise, a new dashboard is created. The maximum length
1019
+ # is 255, and valid characters are A-Z, a-z, 0-9, ".", "-", and
1020
+ # "\_".
1021
+ # @return [String]
1022
+ #
1023
+ # @!attribute [rw] dashboard_body
1024
+ # The detailed information about the dashboard in JSON format,
1025
+ # including the widgets to include and their location on the
1026
+ # dashboard.
1027
+ #
1028
+ # For more information about the syntax, see
1029
+ # CloudWatch-Dashboard-Body-Structure.
1030
+ # @return [String]
1031
+ #
1032
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutDashboardInput AWS API Documentation
1033
+ #
1034
+ class PutDashboardInput < Struct.new(
1035
+ :dashboard_name,
1036
+ :dashboard_body)
1037
+ include Aws::Structure
1038
+ end
1039
+
1040
+ # @!attribute [rw] dashboard_validation_messages
1041
+ # If the input for `PutDashboard` was correct and the dashboard was
1042
+ # successfully created or modified, this result is empty.
1043
+ #
1044
+ # If this result includes only warning messages, then the input was
1045
+ # valid enough for the dashboard to be created or modified, but some
1046
+ # elements of the dashboard may not render.
1047
+ #
1048
+ # If this result includes error messages, the input was not valid and
1049
+ # the operation failed.
1050
+ # @return [Array<Types::DashboardValidationMessage>]
1051
+ #
1052
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutDashboardOutput AWS API Documentation
1053
+ #
1054
+ class PutDashboardOutput < Struct.new(
1055
+ :dashboard_validation_messages)
831
1056
  include Aws::Structure
832
1057
  end
833
1058
 
@@ -949,7 +1174,9 @@ module Aws::CloudWatch
949
1174
  #
950
1175
  # @!attribute [rw] period
951
1176
  # The period, in seconds, over which the specified statistic is
952
- # applied.
1177
+ # applied. An alarm's total current evaluation period can be no
1178
+ # longer than one day, so this number multiplied by
1179
+ # `EvaluationPeriods` must be 86,400 or less.
953
1180
  # @return [Integer]
954
1181
  #
955
1182
  # @!attribute [rw] unit
@@ -962,13 +1189,15 @@ module Aws::CloudWatch
962
1189
  # aggregated separately.
963
1190
  #
964
1191
  # If you specify a unit, you must use a unit that is appropriate for
965
- # the metric. Otherwise, the Amazon CloudWatch alarm can get stuck in
966
- # the `INSUFFICIENT DATA` state.
1192
+ # the metric. Otherwise, the CloudWatch alarm can get stuck in the
1193
+ # `INSUFFICIENT DATA` state.
967
1194
  # @return [String]
968
1195
  #
969
1196
  # @!attribute [rw] evaluation_periods
970
1197
  # The number of periods over which data is compared to the specified
971
- # threshold.
1198
+ # threshold. An alarm's total current evaluation period can be no
1199
+ # longer than one day, so this number multiplied by `Period` must be
1200
+ # 86,400 or less.
972
1201
  # @return [Integer]
973
1202
  #
974
1203
  # @!attribute [rw] threshold
@@ -996,10 +1225,10 @@ module Aws::CloudWatch
996
1225
  #
997
1226
  # @!attribute [rw] evaluate_low_sample_count_percentile
998
1227
  # Used only for alarms based on percentiles. If you specify `ignore`,
999
- # the alarm state will not change during periods with too few data
1228
+ # the alarm state does not change during periods with too few data
1000
1229
  # points to be statistically significant. If you specify `evaluate` or
1001
- # omit this parameter, the alarm will always be evaluated and possibly
1002
- # change state no matter how many data points are available. For more
1230
+ # omit this parameter, the alarm is always evaluated and possibly
1231
+ # changes state no matter how many data points are available. For more
1003
1232
  # information, see [Percentile-Based CloudWatch Alarms and Low Data
1004
1233
  # Samples][1].
1005
1234
  #
@@ -1057,6 +1286,7 @@ module Aws::CloudWatch
1057
1286
  # maximum: 1.0, # required
1058
1287
  # },
1059
1288
  # unit: "Seconds", # accepts Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None
1289
+ # storage_resolution: 1,
1060
1290
  # },
1061
1291
  # ],
1062
1292
  # }