aws-sdk-cloudwatch 1.28.0 → 1.29.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-cloudwatch.rb +1 -1
- data/lib/aws-sdk-cloudwatch/client.rb +19 -19
- data/lib/aws-sdk-cloudwatch/client_api.rb +1 -0
- data/lib/aws-sdk-cloudwatch/metric.rb +1 -0
- data/lib/aws-sdk-cloudwatch/types.rb +45 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60154e48571e275b5a224736b6c311158a9ddbc5
|
4
|
+
data.tar.gz: 45129539a59f703ab1f62624f5dfdf7064ee7bcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08ead9fa509982f205d67f8e5f58244f683e91f3bcda61d8c725a4b4b54fff1f4bfee25753de3cf0e54967be36c7954b9c9ebc65a218e26389d4b8302a033305'
|
7
|
+
data.tar.gz: 0e085320a9d3cb9cac8e384bcf766ce2b006f50ea8ef790409e090caabdd794ab5c97bda060acb1eb0e81f9118199e16330014fc04f1032d76a89056114f58ba
|
data/lib/aws-sdk-cloudwatch.rb
CHANGED
@@ -488,6 +488,7 @@ module Aws::CloudWatch
|
|
488
488
|
# resp.metric_alarms[0].metrics[0].expression #=> String
|
489
489
|
# resp.metric_alarms[0].metrics[0].label #=> String
|
490
490
|
# resp.metric_alarms[0].metrics[0].return_data #=> Boolean
|
491
|
+
# resp.metric_alarms[0].metrics[0].period #=> Integer
|
491
492
|
# resp.metric_alarms[0].threshold_metric_id #=> String
|
492
493
|
# resp.next_token #=> String
|
493
494
|
#
|
@@ -595,6 +596,7 @@ module Aws::CloudWatch
|
|
595
596
|
# resp.metric_alarms[0].metrics[0].expression #=> String
|
596
597
|
# resp.metric_alarms[0].metrics[0].label #=> String
|
597
598
|
# resp.metric_alarms[0].metrics[0].return_data #=> Boolean
|
599
|
+
# resp.metric_alarms[0].metrics[0].period #=> Integer
|
598
600
|
# resp.metric_alarms[0].threshold_metric_id #=> String
|
599
601
|
#
|
600
602
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmsForMetric AWS API Documentation
|
@@ -913,6 +915,7 @@ module Aws::CloudWatch
|
|
913
915
|
# expression: "MetricExpression",
|
914
916
|
# label: "MetricLabel",
|
915
917
|
# return_data: false,
|
918
|
+
# period: 1,
|
916
919
|
# },
|
917
920
|
# ],
|
918
921
|
# start_time: Time.now, # required
|
@@ -1878,6 +1881,7 @@ module Aws::CloudWatch
|
|
1878
1881
|
# expression: "MetricExpression",
|
1879
1882
|
# label: "MetricLabel",
|
1880
1883
|
# return_data: false,
|
1884
|
+
# period: 1,
|
1881
1885
|
# },
|
1882
1886
|
# ],
|
1883
1887
|
# tags: [
|
@@ -2042,34 +2046,30 @@ module Aws::CloudWatch
|
|
2042
2046
|
end
|
2043
2047
|
|
2044
2048
|
# Assigns one or more tags (key-value pairs) to the specified CloudWatch
|
2045
|
-
# resource.
|
2046
|
-
#
|
2047
|
-
#
|
2048
|
-
#
|
2049
|
+
# resource. Currently, the only CloudWatch resources that can be tagged
|
2050
|
+
# are alarms.
|
2051
|
+
#
|
2052
|
+
# Tags can help you organize and categorize your resources. You can also
|
2053
|
+
# use them to scope user permissions, by granting a user permission to
|
2054
|
+
# access or change only resources with certain tag values.
|
2049
2055
|
#
|
2050
2056
|
# Tags don't have any semantic meaning to AWS and are interpreted
|
2051
2057
|
# strictly as strings of characters.
|
2052
2058
|
#
|
2053
|
-
# You can use the `TagResource` action with
|
2054
|
-
# tags. If you specify a new tag key for the
|
2055
|
-
#
|
2056
|
-
#
|
2057
|
-
#
|
2058
|
-
# tag.
|
2059
|
+
# You can use the `TagResource` action with an alarm that already has
|
2060
|
+
# tags. If you specify a new tag key for the alarm, this tag is appended
|
2061
|
+
# to the list of tags associated with the alarm. If you specify a tag
|
2062
|
+
# key that is already associated with the alarm, the new tag value that
|
2063
|
+
# you specify replaces the previous value for that tag.
|
2059
2064
|
#
|
2060
2065
|
# You can associate as many as 50 tags with a resource.
|
2061
2066
|
#
|
2062
2067
|
# @option params [required, String] :resource_arn
|
2063
|
-
# The ARN of the CloudWatch
|
2064
|
-
#
|
2065
|
-
# Web Services General Reference*.
|
2066
|
-
#
|
2067
|
-
#
|
2068
|
-
#
|
2069
|
-
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-cloudwatch
|
2068
|
+
# The ARN of the CloudWatch alarm that you're adding tags to. The ARN
|
2069
|
+
# format is `arn:aws:cloudwatch:Region:account-id:alarm:alarm-name `
|
2070
2070
|
#
|
2071
2071
|
# @option params [required, Array<Types::Tag>] :tags
|
2072
|
-
# The list of key-value pairs to associate with the
|
2072
|
+
# The list of key-value pairs to associate with the alarm.
|
2073
2073
|
#
|
2074
2074
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2075
2075
|
#
|
@@ -2139,7 +2139,7 @@ module Aws::CloudWatch
|
|
2139
2139
|
params: params,
|
2140
2140
|
config: config)
|
2141
2141
|
context[:gem_name] = 'aws-sdk-cloudwatch'
|
2142
|
-
context[:gem_version] = '1.
|
2142
|
+
context[:gem_version] = '1.29.0'
|
2143
2143
|
Seahorse::Client::Request.new(handlers, context)
|
2144
2144
|
end
|
2145
2145
|
|
@@ -458,6 +458,7 @@ module Aws::CloudWatch
|
|
458
458
|
MetricDataQuery.add_member(:expression, Shapes::ShapeRef.new(shape: MetricExpression, location_name: "Expression"))
|
459
459
|
MetricDataQuery.add_member(:label, Shapes::ShapeRef.new(shape: MetricLabel, location_name: "Label"))
|
460
460
|
MetricDataQuery.add_member(:return_data, Shapes::ShapeRef.new(shape: ReturnData, location_name: "ReturnData"))
|
461
|
+
MetricDataQuery.add_member(:period, Shapes::ShapeRef.new(shape: Period, location_name: "Period"))
|
461
462
|
MetricDataQuery.struct_class = Types::MetricDataQuery
|
462
463
|
|
463
464
|
MetricDataResult.add_member(:id, Shapes::ShapeRef.new(shape: MetricId, location_name: "Id"))
|
@@ -776,6 +776,7 @@ module Aws::CloudWatch
|
|
776
776
|
# expression: "MetricExpression",
|
777
777
|
# label: "MetricLabel",
|
778
778
|
# return_data: false,
|
779
|
+
# period: 1,
|
779
780
|
# },
|
780
781
|
# ],
|
781
782
|
# start_time: Time.now, # required
|
@@ -1638,6 +1639,7 @@ module Aws::CloudWatch
|
|
1638
1639
|
# expression: "MetricExpression",
|
1639
1640
|
# label: "MetricLabel",
|
1640
1641
|
# return_data: false,
|
1642
|
+
# period: 1,
|
1641
1643
|
# }
|
1642
1644
|
#
|
1643
1645
|
# @!attribute [rw] id
|
@@ -1695,6 +1697,22 @@ module Aws::CloudWatch
|
|
1695
1697
|
# the same `PutMetricAlarm` operation, specify `ReturnData` as False.
|
1696
1698
|
# @return [Boolean]
|
1697
1699
|
#
|
1700
|
+
# @!attribute [rw] period
|
1701
|
+
# The granularity, in seconds, of the returned data points. For
|
1702
|
+
# metrics with regular resolution, a period can be as short as one
|
1703
|
+
# minute (60 seconds) and must be a multiple of 60. For
|
1704
|
+
# high-resolution metrics that are collected at intervals of less than
|
1705
|
+
# one minute, the period can be 1, 5, 10, 30, 60, or any multiple of
|
1706
|
+
# 60. High-resolution metrics are those metrics stored by a
|
1707
|
+
# `PutMetricData` operation that includes a `StorageResolution of 1
|
1708
|
+
# second`.
|
1709
|
+
#
|
1710
|
+
# Use this field only when you are performing a `GetMetricData`
|
1711
|
+
# operation, and only when you are specifying the `Expression` field.
|
1712
|
+
# Do not use this field with a `PutMetricAlarm` operation or when you
|
1713
|
+
# are specifying a `MetricStat` in a `GetMetricData` operation.
|
1714
|
+
# @return [Integer]
|
1715
|
+
#
|
1698
1716
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/MetricDataQuery AWS API Documentation
|
1699
1717
|
#
|
1700
1718
|
class MetricDataQuery < Struct.new(
|
@@ -1702,7 +1720,8 @@ module Aws::CloudWatch
|
|
1702
1720
|
:metric_stat,
|
1703
1721
|
:expression,
|
1704
1722
|
:label,
|
1705
|
-
:return_data
|
1723
|
+
:return_data,
|
1724
|
+
:period)
|
1706
1725
|
include Aws::Structure
|
1707
1726
|
end
|
1708
1727
|
|
@@ -1907,7 +1926,27 @@ module Aws::CloudWatch
|
|
1907
1926
|
# @return [Types::Metric]
|
1908
1927
|
#
|
1909
1928
|
# @!attribute [rw] period
|
1910
|
-
# The
|
1929
|
+
# The granularity, in seconds, of the returned data points. For
|
1930
|
+
# metrics with regular resolution, a period can be as short as one
|
1931
|
+
# minute (60 seconds) and must be a multiple of 60. For
|
1932
|
+
# high-resolution metrics that are collected at intervals of less than
|
1933
|
+
# one minute, the period can be 1, 5, 10, 30, 60, or any multiple of
|
1934
|
+
# 60. High-resolution metrics are those metrics stored by a
|
1935
|
+
# `PutMetricData` call that includes a `StorageResolution` of 1
|
1936
|
+
# second.
|
1937
|
+
#
|
1938
|
+
# If the `StartTime` parameter specifies a time stamp that is greater
|
1939
|
+
# than 3 hours ago, you must specify the period as follows or no data
|
1940
|
+
# points in that time range is returned:
|
1941
|
+
#
|
1942
|
+
# * Start time between 3 hours and 15 days ago - Use a multiple of 60
|
1943
|
+
# seconds (1 minute).
|
1944
|
+
#
|
1945
|
+
# * Start time between 15 and 63 days ago - Use a multiple of 300
|
1946
|
+
# seconds (5 minutes).
|
1947
|
+
#
|
1948
|
+
# * Start time greater than 63 days ago - Use a multiple of 3600
|
1949
|
+
# seconds (1 hour).
|
1911
1950
|
# @return [Integer]
|
1912
1951
|
#
|
1913
1952
|
# @!attribute [rw] stat
|
@@ -2119,6 +2158,7 @@ module Aws::CloudWatch
|
|
2119
2158
|
# expression: "MetricExpression",
|
2120
2159
|
# label: "MetricLabel",
|
2121
2160
|
# return_data: false,
|
2161
|
+
# period: 1,
|
2122
2162
|
# },
|
2123
2163
|
# ],
|
2124
2164
|
# tags: [
|
@@ -2658,17 +2698,12 @@ module Aws::CloudWatch
|
|
2658
2698
|
# }
|
2659
2699
|
#
|
2660
2700
|
# @!attribute [rw] resource_arn
|
2661
|
-
# The ARN of the CloudWatch
|
2662
|
-
#
|
2663
|
-
# Web Services General Reference*.
|
2664
|
-
#
|
2665
|
-
#
|
2666
|
-
#
|
2667
|
-
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-cloudwatch
|
2701
|
+
# The ARN of the CloudWatch alarm that you're adding tags to. The ARN
|
2702
|
+
# format is `arn:aws:cloudwatch:Region:account-id:alarm:alarm-name `
|
2668
2703
|
# @return [String]
|
2669
2704
|
#
|
2670
2705
|
# @!attribute [rw] tags
|
2671
|
-
# The list of key-value pairs to associate with the
|
2706
|
+
# The list of key-value pairs to associate with the alarm.
|
2672
2707
|
# @return [Array<Types::Tag>]
|
2673
2708
|
#
|
2674
2709
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/TagResourceInput AWS API Documentation
|
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.29.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-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|