aws-sdk-cloudwatch 1.14.0 → 1.15.0
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.
- checksums.yaml +4 -4
- data/lib/aws-sdk-cloudwatch.rb +1 -1
- data/lib/aws-sdk-cloudwatch/client.rb +12 -14
- data/lib/aws-sdk-cloudwatch/client_api.rb +12 -0
- data/lib/aws-sdk-cloudwatch/metric.rb +0 -7
- data/lib/aws-sdk-cloudwatch/types.rb +17 -18
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49f5d21a59f58d933470f3397d787f84a103981a
|
4
|
+
data.tar.gz: 152723f82c648e86e586697cdd47fbcbdf0f16e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c9690cf81d4aaa4343ebf2961a15dbb89f2ca7f74a65253d996fada26a0f5af742690d20751aac0a24bf170500561df4fd040c0dd280346849189ccc2b15dce
|
7
|
+
data.tar.gz: 44b1f7d31c35f8e20fb8e8343f52527947af4431112692524a49899fe89f76afb3c8b3dc724f87674e96b6a8c7463bf88172965e28c139f0a3489633c88d398b
|
data/lib/aws-sdk-cloudwatch.rb
CHANGED
@@ -653,7 +653,7 @@ module Aws::CloudWatch
|
|
653
653
|
# align with the value of the metric's `Period` and sync up with the
|
654
654
|
# beginning and end of an hour. For example, if the `Period` of a metric
|
655
655
|
# is 5 minutes, specifying 12:05 or 12:30 as `StartTime` can get a
|
656
|
-
# faster response from CloudWatch
|
656
|
+
# faster response from CloudWatch then setting 12:07 or 12:29 as the
|
657
657
|
# `StartTime`.
|
658
658
|
#
|
659
659
|
# @option params [required, Time,DateTime,Date,Integer,String] :end_time
|
@@ -663,7 +663,7 @@ module Aws::CloudWatch
|
|
663
663
|
# align with the value of the metric's `Period` and sync up with the
|
664
664
|
# beginning and end of an hour. For example, if the `Period` of a metric
|
665
665
|
# is 5 minutes, specifying 12:05 or 12:30 as `EndTime` can get a faster
|
666
|
-
# response from CloudWatch
|
666
|
+
# response from CloudWatch then setting 12:07 or 12:29 as the `EndTime`.
|
667
667
|
#
|
668
668
|
# @option params [String] :next_token
|
669
669
|
# Include this value, if it was returned by the previous call, to get
|
@@ -684,6 +684,7 @@ module Aws::CloudWatch
|
|
684
684
|
#
|
685
685
|
# * {Types::GetMetricDataOutput#metric_data_results #metric_data_results} => Array<Types::MetricDataResult>
|
686
686
|
# * {Types::GetMetricDataOutput#next_token #next_token} => String
|
687
|
+
# * {Types::GetMetricDataOutput#messages #messages} => Array<Types::MessageData>
|
687
688
|
#
|
688
689
|
# @example Request syntax with placeholder values
|
689
690
|
#
|
@@ -732,6 +733,9 @@ module Aws::CloudWatch
|
|
732
733
|
# resp.metric_data_results[0].messages[0].code #=> String
|
733
734
|
# resp.metric_data_results[0].messages[0].value #=> String
|
734
735
|
# resp.next_token #=> String
|
736
|
+
# resp.messages #=> Array
|
737
|
+
# resp.messages[0].code #=> String
|
738
|
+
# resp.messages[0].value #=> String
|
735
739
|
#
|
736
740
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricData AWS API Documentation
|
737
741
|
#
|
@@ -991,7 +995,8 @@ module Aws::CloudWatch
|
|
991
995
|
# response with the content-type set to `text/xml`. The image data is in
|
992
996
|
# a `MetricWidgetImage` field. For example:
|
993
997
|
#
|
994
|
-
# ` <GetMetricWidgetImageResponse
|
998
|
+
# ` <GetMetricWidgetImageResponse
|
999
|
+
# xmlns="http://monitoring.amazonaws.com/doc/2010-08-01/">`
|
995
1000
|
#
|
996
1001
|
# ` <GetMetricWidgetImageResult>`
|
997
1002
|
#
|
@@ -1304,7 +1309,6 @@ module Aws::CloudWatch
|
|
1304
1309
|
# Valid Values: `arn:aws:automate:region:ec2:stop` \|
|
1305
1310
|
# `arn:aws:automate:region:ec2:terminate` \|
|
1306
1311
|
# `arn:aws:automate:region:ec2:recover` \|
|
1307
|
-
# `arn:aws:automate:region:ec2:reboot` \|
|
1308
1312
|
# `arn:aws:sns:region:account-id:sns-topic-name ` \|
|
1309
1313
|
# `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-idautoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
1310
1314
|
# `
|
@@ -1324,7 +1328,6 @@ module Aws::CloudWatch
|
|
1324
1328
|
# Valid Values: `arn:aws:automate:region:ec2:stop` \|
|
1325
1329
|
# `arn:aws:automate:region:ec2:terminate` \|
|
1326
1330
|
# `arn:aws:automate:region:ec2:recover` \|
|
1327
|
-
# `arn:aws:automate:region:ec2:reboot` \|
|
1328
1331
|
# `arn:aws:sns:region:account-id:sns-topic-name ` \|
|
1329
1332
|
# `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-idautoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
1330
1333
|
# `
|
@@ -1460,11 +1463,6 @@ module Aws::CloudWatch
|
|
1460
1463
|
# the `Metrics` array either retrieves a metric or performs a math
|
1461
1464
|
# expression.
|
1462
1465
|
#
|
1463
|
-
# One item in the `Metrics` array is the expression that the alarm
|
1464
|
-
# watches. You designate this expression by setting `ReturnValue` to
|
1465
|
-
# true for this object in the array. For more information, see
|
1466
|
-
# MetricDataQuery.
|
1467
|
-
#
|
1468
1466
|
# If you use the `Metrics` parameter, you cannot include the
|
1469
1467
|
# `MetricName`, `Dimensions`, `Period`, `Namespace`, `Statistic`, or
|
1470
1468
|
# `ExtendedStatistic` parameters of `PutMetricAlarm` in the same
|
@@ -1559,9 +1557,9 @@ module Aws::CloudWatch
|
|
1559
1557
|
# example, NaN, +Infinity, -Infinity) are not supported.
|
1560
1558
|
#
|
1561
1559
|
# You can use up to 10 dimensions per metric to further clarify what
|
1562
|
-
# data the metric collects.
|
1563
|
-
#
|
1564
|
-
#
|
1560
|
+
# data the metric collects. For more information about specifying
|
1561
|
+
# dimensions, see [Publishing Metrics][1] in the *Amazon CloudWatch User
|
1562
|
+
# Guide*.
|
1565
1563
|
#
|
1566
1564
|
# Data points with time stamps from 24 hours ago or longer can take at
|
1567
1565
|
# least 48 hours to become available for GetMetricData or
|
@@ -1691,7 +1689,7 @@ module Aws::CloudWatch
|
|
1691
1689
|
params: params,
|
1692
1690
|
config: config)
|
1693
1691
|
context[:gem_name] = 'aws-sdk-cloudwatch'
|
1694
|
-
context[:gem_version] = '1.
|
1692
|
+
context[:gem_version] = '1.15.0'
|
1695
1693
|
Seahorse::Client::Request.new(handlers, context)
|
1696
1694
|
end
|
1697
1695
|
|
@@ -271,6 +271,7 @@ module Aws::CloudWatch
|
|
271
271
|
|
272
272
|
GetMetricDataOutput.add_member(:metric_data_results, Shapes::ShapeRef.new(shape: MetricDataResults, location_name: "MetricDataResults"))
|
273
273
|
GetMetricDataOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
274
|
+
GetMetricDataOutput.add_member(:messages, Shapes::ShapeRef.new(shape: MetricDataResultMessages, location_name: "Messages"))
|
274
275
|
GetMetricDataOutput.struct_class = Types::GetMetricDataOutput
|
275
276
|
|
276
277
|
GetMetricStatisticsInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, required: true, location_name: "Namespace"))
|
@@ -557,6 +558,12 @@ module Aws::CloudWatch
|
|
557
558
|
o.input = Shapes::ShapeRef.new(shape: GetMetricDataInput)
|
558
559
|
o.output = Shapes::ShapeRef.new(shape: GetMetricDataOutput)
|
559
560
|
o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
|
561
|
+
o[:pager] = Aws::Pager.new(
|
562
|
+
limit_key: "max_datapoints",
|
563
|
+
tokens: {
|
564
|
+
"next_token" => "next_token"
|
565
|
+
}
|
566
|
+
)
|
560
567
|
end)
|
561
568
|
|
562
569
|
api.add_operation(:get_metric_statistics, Seahorse::Model::Operation.new.tap do |o|
|
@@ -587,6 +594,11 @@ module Aws::CloudWatch
|
|
587
594
|
o.output = Shapes::ShapeRef.new(shape: ListDashboardsOutput)
|
588
595
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
589
596
|
o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
|
597
|
+
o[:pager] = Aws::Pager.new(
|
598
|
+
tokens: {
|
599
|
+
"next_token" => "next_token"
|
600
|
+
}
|
601
|
+
)
|
590
602
|
end)
|
591
603
|
|
592
604
|
api.add_operation(:list_metrics, Seahorse::Model::Operation.new.tap do |o|
|
@@ -380,7 +380,6 @@ module Aws::CloudWatch
|
|
380
380
|
# Valid Values: `arn:aws:automate:region:ec2:stop` \|
|
381
381
|
# `arn:aws:automate:region:ec2:terminate` \|
|
382
382
|
# `arn:aws:automate:region:ec2:recover` \|
|
383
|
-
# `arn:aws:automate:region:ec2:reboot` \|
|
384
383
|
# `arn:aws:sns:region:account-id:sns-topic-name ` \|
|
385
384
|
# `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-idautoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
386
385
|
# `
|
@@ -399,7 +398,6 @@ module Aws::CloudWatch
|
|
399
398
|
# Valid Values: `arn:aws:automate:region:ec2:stop` \|
|
400
399
|
# `arn:aws:automate:region:ec2:terminate` \|
|
401
400
|
# `arn:aws:automate:region:ec2:recover` \|
|
402
|
-
# `arn:aws:automate:region:ec2:reboot` \|
|
403
401
|
# `arn:aws:sns:region:account-id:sns-topic-name ` \|
|
404
402
|
# `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-idautoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
405
403
|
# `
|
@@ -512,11 +510,6 @@ module Aws::CloudWatch
|
|
512
510
|
# the `Metrics` array either retrieves a metric or performs a math
|
513
511
|
# expression.
|
514
512
|
#
|
515
|
-
# One item in the `Metrics` array is the expression that the alarm
|
516
|
-
# watches. You designate this expression by setting `ReturnValue` to
|
517
|
-
# true for this object in the array. For more information, see
|
518
|
-
# MetricDataQuery.
|
519
|
-
#
|
520
513
|
# If you use the `Metrics` parameter, you cannot include the
|
521
514
|
# `MetricName`, `Dimensions`, `Period`, `Namespace`, `Statistic`, or
|
522
515
|
# `ExtendedStatistic` parameters of `PutMetricAlarm` in the same
|
@@ -564,7 +564,7 @@ module Aws::CloudWatch
|
|
564
564
|
# that align with the value of the metric's `Period` and sync up with
|
565
565
|
# the beginning and end of an hour. For example, if the `Period` of a
|
566
566
|
# metric is 5 minutes, specifying 12:05 or 12:30 as `StartTime` can
|
567
|
-
# get a faster response from CloudWatch
|
567
|
+
# get a faster response from CloudWatch then setting 12:07 or 12:29 as
|
568
568
|
# the `StartTime`.
|
569
569
|
# @return [Time]
|
570
570
|
#
|
@@ -575,7 +575,7 @@ module Aws::CloudWatch
|
|
575
575
|
# that align with the value of the metric's `Period` and sync up with
|
576
576
|
# the beginning and end of an hour. For example, if the `Period` of a
|
577
577
|
# metric is 5 minutes, specifying 12:05 or 12:30 as `EndTime` can get
|
578
|
-
# a faster response from CloudWatch
|
578
|
+
# a faster response from CloudWatch then setting 12:07 or 12:29 as the
|
579
579
|
# `EndTime`.
|
580
580
|
# @return [Time]
|
581
581
|
#
|
@@ -618,11 +618,20 @@ module Aws::CloudWatch
|
|
618
618
|
# A token that marks the next batch of returned results.
|
619
619
|
# @return [String]
|
620
620
|
#
|
621
|
+
# @!attribute [rw] messages
|
622
|
+
# Contains a message about the operation or the results, if the
|
623
|
+
# operation results in such a message. Examples of messages that may
|
624
|
+
# be returned include `Maximum number of allowed metrics exceeded` and
|
625
|
+
# `You are not authorized to search one or more metrics`. If there is
|
626
|
+
# a message, as much of the operation as possible is still executed.
|
627
|
+
# @return [Array<Types::MessageData>]
|
628
|
+
#
|
621
629
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricDataOutput AWS API Documentation
|
622
630
|
#
|
623
631
|
class GetMetricDataOutput < Struct.new(
|
624
632
|
:metric_data_results,
|
625
|
-
:next_token
|
633
|
+
:next_token,
|
634
|
+
:messages)
|
626
635
|
include Aws::Structure
|
627
636
|
end
|
628
637
|
|
@@ -817,7 +826,8 @@ module Aws::CloudWatch
|
|
817
826
|
# response with the content-type set to `text/xml`. The image data is
|
818
827
|
# in a `MetricWidgetImage` field. For example:
|
819
828
|
#
|
820
|
-
# ` <GetMetricWidgetImageResponse
|
829
|
+
# ` <GetMetricWidgetImageResponse
|
830
|
+
# xmlns="http://monitoring.amazonaws.com/doc/2010-08-01/">`
|
821
831
|
#
|
822
832
|
# ` <GetMetricWidgetImageResult>`
|
823
833
|
#
|
@@ -1196,13 +1206,9 @@ module Aws::CloudWatch
|
|
1196
1206
|
# structures can include as many as 10 structures that contain a
|
1197
1207
|
# `MetricStat` parameter to retrieve a metric, and as many as 10
|
1198
1208
|
# structures that contain the `Expression` parameter to perform a math
|
1199
|
-
# expression.
|
1200
|
-
#
|
1201
|
-
# the
|
1202
|
-
#
|
1203
|
-
# Any expression used in a `PutMetricAlarm` operation must return a
|
1204
|
-
# single time series. For more information, see [Metric Math Syntax and
|
1205
|
-
# Functions][1] in the *Amazon CloudWatch User Guide*.
|
1209
|
+
# expression. Any expression used in a `PutMetricAlarm` operation must
|
1210
|
+
# return a single time series. For more information, see [Metric Math
|
1211
|
+
# Syntax and Functions][1] in the *Amazon CloudWatch User Guide*.
|
1206
1212
|
#
|
1207
1213
|
# Some of the parameters of this structure also have different uses
|
1208
1214
|
# whether you are using this structure in a `GetMetricData` operation or
|
@@ -1671,7 +1677,6 @@ module Aws::CloudWatch
|
|
1671
1677
|
# Valid Values: `arn:aws:automate:region:ec2:stop` \|
|
1672
1678
|
# `arn:aws:automate:region:ec2:terminate` \|
|
1673
1679
|
# `arn:aws:automate:region:ec2:recover` \|
|
1674
|
-
# `arn:aws:automate:region:ec2:reboot` \|
|
1675
1680
|
# `arn:aws:sns:region:account-id:sns-topic-name ` \|
|
1676
1681
|
# `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-idautoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
1677
1682
|
# `
|
@@ -1692,7 +1697,6 @@ module Aws::CloudWatch
|
|
1692
1697
|
# Valid Values: `arn:aws:automate:region:ec2:stop` \|
|
1693
1698
|
# `arn:aws:automate:region:ec2:terminate` \|
|
1694
1699
|
# `arn:aws:automate:region:ec2:recover` \|
|
1695
|
-
# `arn:aws:automate:region:ec2:reboot` \|
|
1696
1700
|
# `arn:aws:sns:region:account-id:sns-topic-name ` \|
|
1697
1701
|
# `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-idautoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
1698
1702
|
# `
|
@@ -1843,11 +1847,6 @@ module Aws::CloudWatch
|
|
1843
1847
|
# in the `Metrics` array either retrieves a metric or performs a math
|
1844
1848
|
# expression.
|
1845
1849
|
#
|
1846
|
-
# One item in the `Metrics` array is the expression that the alarm
|
1847
|
-
# watches. You designate this expression by setting `ReturnValue` to
|
1848
|
-
# true for this object in the array. For more information, see
|
1849
|
-
# MetricDataQuery.
|
1850
|
-
#
|
1851
1850
|
# If you use the `Metrics` parameter, you cannot include the
|
1852
1851
|
# `MetricName`, `Dimensions`, `Period`, `Namespace`, `Statistic`, or
|
1853
1852
|
# `ExtendedStatistic` parameters of `PutMetricAlarm` in the same
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-cloudwatch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.47.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,21 +29,21 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.47.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '1.
|
39
|
+
version: '1.1'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '1.
|
46
|
+
version: '1.1'
|
47
47
|
description: Official AWS Ruby gem for Amazon CloudWatch (CloudWatch). This gem is
|
48
48
|
part of the AWS SDK for Ruby.
|
49
49
|
email:
|