aws-sdk-cloudwatch 1.68.0 → 1.70.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudwatch/alarm.rb +22 -1
- data/lib/aws-sdk-cloudwatch/client.rb +57 -25
- data/lib/aws-sdk-cloudwatch/client_api.rb +10 -0
- data/lib/aws-sdk-cloudwatch/endpoint_parameters.rb +3 -0
- data/lib/aws-sdk-cloudwatch/endpoint_provider.rb +80 -81
- data/lib/aws-sdk-cloudwatch/resource.rb +12 -0
- data/lib/aws-sdk-cloudwatch/types.rb +73 -881
- data/lib/aws-sdk-cloudwatch.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f697a21adde1bf456111f854bde83bd5f1a56bdf1630234e61b404c5fa57fad3
|
4
|
+
data.tar.gz: 70ade2f237980e846fc9437ac1ec98ace1d8fbd71be558fb8298ff5ccb7ef586
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 199de7d84e41b1b4bfca6a5cd92128f1f38eb6071b2b6e0a8bb1f3e4b054c8a5c53dfd11f45e0908e3b33eafaa8cee0949bed935ac35bdf3ee32eb6af592609b
|
7
|
+
data.tar.gz: cf20f8a14965d943c0788386e6d250343c05118fd9d8fef3c28139faf81e84eb9a7019ec16778673694458f47736945e39e506ce1a62f3db5c87702db6c91961
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.70.0 (2022-12-14)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Adding support for Metrics Insights Alarms
|
8
|
+
|
9
|
+
1.69.0 (2022-11-28)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Adds cross-account support to the GetMetricData API. Adds cross-account support to the ListMetrics API through the usage of the IncludeLinkedAccounts flag and the new OwningAccounts field.
|
13
|
+
|
4
14
|
1.68.0 (2022-10-25)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.70.0
|
@@ -102,7 +102,8 @@ module Aws::CloudWatch
|
|
102
102
|
data[:state_reason_data]
|
103
103
|
end
|
104
104
|
|
105
|
-
# The time stamp of the last update to the
|
105
|
+
# The time stamp of the last update to the value of either the
|
106
|
+
# `StateValue` or `EvaluationState` parameters.
|
106
107
|
# @return [Time]
|
107
108
|
def state_updated_timestamp
|
108
109
|
data[:state_updated_timestamp]
|
@@ -223,6 +224,26 @@ module Aws::CloudWatch
|
|
223
224
|
data[:threshold_metric_id]
|
224
225
|
end
|
225
226
|
|
227
|
+
# If the value of this field is `PARTIAL_DATA`, the alarm is being
|
228
|
+
# evaluated based on only partial data. This happens if the query used
|
229
|
+
# for the alarm returns more than 10,000 metrics. For more information,
|
230
|
+
# see [Create alarms on Metrics Insights queries][1].
|
231
|
+
#
|
232
|
+
#
|
233
|
+
#
|
234
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Metrics_Insights_Alarm.html
|
235
|
+
# @return [String]
|
236
|
+
def evaluation_state
|
237
|
+
data[:evaluation_state]
|
238
|
+
end
|
239
|
+
|
240
|
+
# The date and time that the alarm's `StateValue` most recently
|
241
|
+
# changed.
|
242
|
+
# @return [Time]
|
243
|
+
def state_transitioned_timestamp
|
244
|
+
data[:state_transitioned_timestamp]
|
245
|
+
end
|
246
|
+
|
226
247
|
# @!endgroup
|
227
248
|
|
228
249
|
# @return [Client]
|
@@ -387,7 +387,7 @@ module Aws::CloudWatch
|
|
387
387
|
# the rule of one of the composite alarms in the cycle to remove a
|
388
388
|
# dependency that creates the cycle. The simplest change to make to
|
389
389
|
# break a cycle is to change the `AlarmRule` of one of the alarms to
|
390
|
-
# `
|
390
|
+
# `false`.
|
391
391
|
#
|
392
392
|
# Additionally, the evaluation of composite alarms stops if CloudWatch
|
393
393
|
# detects a cycle in the evaluation path.
|
@@ -886,6 +886,8 @@ module Aws::CloudWatch
|
|
886
886
|
# resp.metric_alarms[0].metrics[0].period #=> Integer
|
887
887
|
# resp.metric_alarms[0].metrics[0].account_id #=> String
|
888
888
|
# resp.metric_alarms[0].threshold_metric_id #=> String
|
889
|
+
# resp.metric_alarms[0].evaluation_state #=> String, one of "PARTIAL_DATA"
|
890
|
+
# resp.metric_alarms[0].state_transitioned_timestamp #=> Time
|
889
891
|
# resp.next_token #=> String
|
890
892
|
#
|
891
893
|
#
|
@@ -1006,6 +1008,8 @@ module Aws::CloudWatch
|
|
1006
1008
|
# resp.metric_alarms[0].metrics[0].period #=> Integer
|
1007
1009
|
# resp.metric_alarms[0].metrics[0].account_id #=> String
|
1008
1010
|
# resp.metric_alarms[0].threshold_metric_id #=> String
|
1011
|
+
# resp.metric_alarms[0].evaluation_state #=> String, one of "PARTIAL_DATA"
|
1012
|
+
# resp.metric_alarms[0].state_transitioned_timestamp #=> Time
|
1009
1013
|
#
|
1010
1014
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmsForMetric AWS API Documentation
|
1011
1015
|
#
|
@@ -1680,7 +1684,7 @@ module Aws::CloudWatch
|
|
1680
1684
|
# resp.metric_data_results[0].timestamps[0] #=> Time
|
1681
1685
|
# resp.metric_data_results[0].values #=> Array
|
1682
1686
|
# resp.metric_data_results[0].values[0] #=> Float
|
1683
|
-
# resp.metric_data_results[0].status_code #=> String, one of "Complete", "InternalError", "PartialData"
|
1687
|
+
# resp.metric_data_results[0].status_code #=> String, one of "Complete", "InternalError", "PartialData", "Forbidden"
|
1684
1688
|
# resp.metric_data_results[0].messages #=> Array
|
1685
1689
|
# resp.metric_data_results[0].messages[0].code #=> String
|
1686
1690
|
# resp.metric_data_results[0].messages[0].value #=> String
|
@@ -2204,15 +2208,20 @@ module Aws::CloudWatch
|
|
2204
2208
|
end
|
2205
2209
|
|
2206
2210
|
# List the specified metrics. You can use the returned metrics with
|
2207
|
-
# [GetMetricData][1] or [GetMetricStatistics][2] to
|
2211
|
+
# [GetMetricData][1] or [GetMetricStatistics][2] to get statistical
|
2208
2212
|
# data.
|
2209
2213
|
#
|
2210
2214
|
# Up to 500 results are returned for any one call. To retrieve
|
2211
2215
|
# additional results, use the returned token with subsequent calls.
|
2212
2216
|
#
|
2213
|
-
# After you create a metric, allow up to 15 minutes
|
2214
|
-
#
|
2215
|
-
# [
|
2217
|
+
# After you create a metric, allow up to 15 minutes for the metric to
|
2218
|
+
# appear. To see metric statistics sooner, use [GetMetricData][1] or
|
2219
|
+
# [GetMetricStatistics][2].
|
2220
|
+
#
|
2221
|
+
# If you are using CloudWatch cross-account observability, you can use
|
2222
|
+
# this operation in a monitoring account and view metrics from the
|
2223
|
+
# linked source accounts. For more information, see [CloudWatch
|
2224
|
+
# cross-account observability][3].
|
2216
2225
|
#
|
2217
2226
|
# `ListMetrics` doesn't return information about metrics if those
|
2218
2227
|
# metrics haven't reported data in the past two weeks. To retrieve
|
@@ -2222,6 +2231,7 @@ module Aws::CloudWatch
|
|
2222
2231
|
#
|
2223
2232
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html
|
2224
2233
|
# [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html
|
2234
|
+
# [3]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html
|
2225
2235
|
#
|
2226
2236
|
# @option params [String] :namespace
|
2227
2237
|
# The metric namespace to filter against. Only the namespace that
|
@@ -2249,10 +2259,23 @@ module Aws::CloudWatch
|
|
2249
2259
|
# metrics with last published data as much as 40 minutes more than the
|
2250
2260
|
# specified time interval.
|
2251
2261
|
#
|
2262
|
+
# @option params [Boolean] :include_linked_accounts
|
2263
|
+
# If you are using this operation in a monitoring account, specify
|
2264
|
+
# `true` to include metrics from source accounts in the returned data.
|
2265
|
+
#
|
2266
|
+
# The default is `false`.
|
2267
|
+
#
|
2268
|
+
# @option params [String] :owning_account
|
2269
|
+
# When you use this operation in a monitoring account, use this field to
|
2270
|
+
# return metrics only from one source account. To do so, specify that
|
2271
|
+
# source account ID in this field, and also specify `true` for
|
2272
|
+
# `IncludeLinkedAccounts`.
|
2273
|
+
#
|
2252
2274
|
# @return [Types::ListMetricsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2253
2275
|
#
|
2254
2276
|
# * {Types::ListMetricsOutput#metrics #metrics} => Array<Types::Metric>
|
2255
2277
|
# * {Types::ListMetricsOutput#next_token #next_token} => String
|
2278
|
+
# * {Types::ListMetricsOutput#owning_accounts #owning_accounts} => Array<String>
|
2256
2279
|
#
|
2257
2280
|
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2258
2281
|
#
|
@@ -2269,6 +2292,8 @@ module Aws::CloudWatch
|
|
2269
2292
|
# ],
|
2270
2293
|
# next_token: "NextToken",
|
2271
2294
|
# recently_active: "PT3H", # accepts PT3H
|
2295
|
+
# include_linked_accounts: false,
|
2296
|
+
# owning_account: "AccountId",
|
2272
2297
|
# })
|
2273
2298
|
#
|
2274
2299
|
# @example Response structure
|
@@ -2280,6 +2305,8 @@ module Aws::CloudWatch
|
|
2280
2305
|
# resp.metrics[0].dimensions[0].name #=> String
|
2281
2306
|
# resp.metrics[0].dimensions[0].value #=> String
|
2282
2307
|
# resp.next_token #=> String
|
2308
|
+
# resp.owning_accounts #=> Array
|
2309
|
+
# resp.owning_accounts[0] #=> String
|
2283
2310
|
#
|
2284
2311
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetrics AWS API Documentation
|
2285
2312
|
#
|
@@ -2508,7 +2535,7 @@ module Aws::CloudWatch
|
|
2508
2535
|
# the rule of one of the composite alarms in the cycle to remove a
|
2509
2536
|
# dependency that creates the cycle. The simplest change to make to
|
2510
2537
|
# break a cycle is to change the `AlarmRule` of one of the alarms to
|
2511
|
-
# `
|
2538
|
+
# `false`.
|
2512
2539
|
#
|
2513
2540
|
# Additionally, the evaluation of composite alarms stops if CloudWatch
|
2514
2541
|
# detects a cycle in the evaluation path.
|
@@ -2874,7 +2901,10 @@ module Aws::CloudWatch
|
|
2874
2901
|
end
|
2875
2902
|
|
2876
2903
|
# Creates or updates an alarm and associates it with the specified
|
2877
|
-
# metric, metric math expression,
|
2904
|
+
# metric, metric math expression, anomaly detection model, or Metrics
|
2905
|
+
# Insights query. For more information about using a Metrics Insights
|
2906
|
+
# query for an alarm, see [Create alarms on Metrics Insights
|
2907
|
+
# queries][1].
|
2878
2908
|
#
|
2879
2909
|
# Alarms based on anomaly detection models cannot have Auto Scaling
|
2880
2910
|
# actions.
|
@@ -2901,7 +2931,7 @@ module Aws::CloudWatch
|
|
2901
2931
|
# CloudWatch creates the necessary service-linked role for you. The
|
2902
2932
|
# service-linked roles are called `AWSServiceRoleForCloudWatchEvents`
|
2903
2933
|
# and `AWSServiceRoleForCloudWatchAlarms_ActionSSM`. For more
|
2904
|
-
# information, see [Amazon Web Services service-linked role][
|
2934
|
+
# information, see [Amazon Web Services service-linked role][2].
|
2905
2935
|
#
|
2906
2936
|
# **Cross-account alarms**
|
2907
2937
|
#
|
@@ -2915,7 +2945,7 @@ module Aws::CloudWatch
|
|
2915
2945
|
# **CloudWatch-CrossAccountSharingRole**. If it does not already have
|
2916
2946
|
# this role, you must create it using the instructions in **Set up a
|
2917
2947
|
# sharing account** in [ Cross-account cross-Region CloudWatch
|
2918
|
-
# console][
|
2948
|
+
# console][3]. The policy for that role must grant access to the ID of
|
2919
2949
|
# the account where you are creating the alarm.
|
2920
2950
|
#
|
2921
2951
|
# * The account where you are creating the alarm (the *monitoring
|
@@ -2923,12 +2953,13 @@ module Aws::CloudWatch
|
|
2923
2953
|
# **AWSServiceRoleForCloudWatchCrossAccount** to allow CloudWatch to
|
2924
2954
|
# assume the sharing role in the sharing account. If it does not, you
|
2925
2955
|
# must create it following the directions in **Set up a monitoring
|
2926
|
-
# account** in [ Cross-account cross-Region CloudWatch console][
|
2956
|
+
# account** in [ Cross-account cross-Region CloudWatch console][3].
|
2927
2957
|
#
|
2928
2958
|
#
|
2929
2959
|
#
|
2930
|
-
# [1]: https://docs.aws.amazon.com/
|
2931
|
-
# [2]: https://docs.aws.amazon.com/
|
2960
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Metrics_Insights_Alarm.html
|
2961
|
+
# [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html#iam-term-service-linked-role
|
2962
|
+
# [3]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html#enable-cross-account-cross-Region
|
2932
2963
|
#
|
2933
2964
|
# @option params [required, String] :alarm_name
|
2934
2965
|
# The name for the alarm. This name must be unique within the Region.
|
@@ -3383,12 +3414,12 @@ module Aws::CloudWatch
|
|
3383
3414
|
end
|
3384
3415
|
|
3385
3416
|
# Creates or updates a metric stream. Metric streams can automatically
|
3386
|
-
# stream CloudWatch metrics to Amazon Web Services destinations
|
3387
|
-
# including Amazon S3 and to many third-party solutions.
|
3417
|
+
# stream CloudWatch metrics to Amazon Web Services destinations,
|
3418
|
+
# including Amazon S3, and to many third-party solutions.
|
3388
3419
|
#
|
3389
3420
|
# For more information, see [ Using Metric Streams][1].
|
3390
3421
|
#
|
3391
|
-
# To create a metric stream, you must be
|
3422
|
+
# To create a metric stream, you must be signed in to an account that
|
3392
3423
|
# has the `iam:PassRole` permission and either the
|
3393
3424
|
# `CloudWatchFullAccess` policy or the `cloudwatch:PutMetricStream`
|
3394
3425
|
# permission.
|
@@ -3407,7 +3438,7 @@ module Aws::CloudWatch
|
|
3407
3438
|
# By default, a metric stream always sends the `MAX`, `MIN`, `SUM`, and
|
3408
3439
|
# `SAMPLECOUNT` statistics for each metric that is streamed. You can use
|
3409
3440
|
# the `StatisticsConfigurations` parameter to have the metric stream
|
3410
|
-
#
|
3441
|
+
# send additional statistics in the stream. Streaming additional
|
3411
3442
|
# statistics incurs additional costs. For more information, see [Amazon
|
3412
3443
|
# CloudWatch Pricing][2].
|
3413
3444
|
#
|
@@ -3445,15 +3476,16 @@ module Aws::CloudWatch
|
|
3445
3476
|
# operation.
|
3446
3477
|
#
|
3447
3478
|
# @option params [required, String] :firehose_arn
|
3448
|
-
# The ARN of the Amazon Kinesis Firehose delivery stream to use for
|
3449
|
-
# metric stream. This Amazon Kinesis Firehose delivery stream
|
3450
|
-
# already exist and must be in the same account as the metric
|
3479
|
+
# The ARN of the Amazon Kinesis Data Firehose delivery stream to use for
|
3480
|
+
# this metric stream. This Amazon Kinesis Data Firehose delivery stream
|
3481
|
+
# must already exist and must be in the same account as the metric
|
3482
|
+
# stream.
|
3451
3483
|
#
|
3452
3484
|
# @option params [required, String] :role_arn
|
3453
3485
|
# The ARN of an IAM role that this metric stream will use to access
|
3454
|
-
# Amazon Kinesis Firehose resources. This IAM role must already
|
3455
|
-
# and must be in the same account as the metric stream. This IAM
|
3456
|
-
# must include the following permissions:
|
3486
|
+
# Amazon Kinesis Data Firehose resources. This IAM role must already
|
3487
|
+
# exist and must be in the same account as the metric stream. This IAM
|
3488
|
+
# role must include the following permissions:
|
3457
3489
|
#
|
3458
3490
|
# * firehose:PutRecord
|
3459
3491
|
#
|
@@ -3500,7 +3532,7 @@ module Aws::CloudWatch
|
|
3500
3532
|
# additional statistic that is supported by CloudWatch, listed in [
|
3501
3533
|
# CloudWatch statistics definitions][1]. If the `OutputFormat` is
|
3502
3534
|
# `opentelemetry0.7`, you can stream percentile statistics such as p95,
|
3503
|
-
# p99.9 and so on.
|
3535
|
+
# p99.9, and so on.
|
3504
3536
|
#
|
3505
3537
|
#
|
3506
3538
|
#
|
@@ -3789,7 +3821,7 @@ module Aws::CloudWatch
|
|
3789
3821
|
params: params,
|
3790
3822
|
config: config)
|
3791
3823
|
context[:gem_name] = 'aws-sdk-cloudwatch'
|
3792
|
-
context[:gem_version] = '1.
|
3824
|
+
context[:gem_version] = '1.70.0'
|
3793
3825
|
Seahorse::Client::Request.new(handlers, context)
|
3794
3826
|
end
|
3795
3827
|
|
@@ -98,6 +98,7 @@ module Aws::CloudWatch
|
|
98
98
|
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
99
99
|
EvaluateLowSampleCountPercentile = Shapes::StringShape.new(name: 'EvaluateLowSampleCountPercentile')
|
100
100
|
EvaluationPeriods = Shapes::IntegerShape.new(name: 'EvaluationPeriods')
|
101
|
+
EvaluationState = Shapes::StringShape.new(name: 'EvaluationState')
|
101
102
|
ExceptionType = Shapes::StringShape.new(name: 'ExceptionType')
|
102
103
|
ExtendedStatistic = Shapes::StringShape.new(name: 'ExtendedStatistic')
|
103
104
|
ExtendedStatistics = Shapes::ListShape.new(name: 'ExtendedStatistics')
|
@@ -122,6 +123,7 @@ module Aws::CloudWatch
|
|
122
123
|
HistoryData = Shapes::StringShape.new(name: 'HistoryData')
|
123
124
|
HistoryItemType = Shapes::StringShape.new(name: 'HistoryItemType')
|
124
125
|
HistorySummary = Shapes::StringShape.new(name: 'HistorySummary')
|
126
|
+
IncludeLinkedAccounts = Shapes::BooleanShape.new(name: 'IncludeLinkedAccounts')
|
125
127
|
InsightRule = Shapes::StructureShape.new(name: 'InsightRule')
|
126
128
|
InsightRuleAggregationStatistic = Shapes::StringShape.new(name: 'InsightRuleAggregationStatistic')
|
127
129
|
InsightRuleContributor = Shapes::StructureShape.new(name: 'InsightRuleContributor')
|
@@ -216,6 +218,7 @@ module Aws::CloudWatch
|
|
216
218
|
Namespace = Shapes::StringShape.new(name: 'Namespace')
|
217
219
|
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
218
220
|
OutputFormat = Shapes::StringShape.new(name: 'OutputFormat')
|
221
|
+
OwningAccounts = Shapes::ListShape.new(name: 'OwningAccounts')
|
219
222
|
PartialFailure = Shapes::StructureShape.new(name: 'PartialFailure')
|
220
223
|
Period = Shapes::IntegerShape.new(name: 'Period')
|
221
224
|
PutAnomalyDetectorInput = Shapes::StructureShape.new(name: 'PutAnomalyDetectorInput')
|
@@ -673,10 +676,13 @@ module Aws::CloudWatch
|
|
673
676
|
ListMetricsInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: DimensionFilters, location_name: "Dimensions"))
|
674
677
|
ListMetricsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
675
678
|
ListMetricsInput.add_member(:recently_active, Shapes::ShapeRef.new(shape: RecentlyActive, location_name: "RecentlyActive"))
|
679
|
+
ListMetricsInput.add_member(:include_linked_accounts, Shapes::ShapeRef.new(shape: IncludeLinkedAccounts, location_name: "IncludeLinkedAccounts"))
|
680
|
+
ListMetricsInput.add_member(:owning_account, Shapes::ShapeRef.new(shape: AccountId, location_name: "OwningAccount"))
|
676
681
|
ListMetricsInput.struct_class = Types::ListMetricsInput
|
677
682
|
|
678
683
|
ListMetricsOutput.add_member(:metrics, Shapes::ShapeRef.new(shape: Metrics, location_name: "Metrics"))
|
679
684
|
ListMetricsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
685
|
+
ListMetricsOutput.add_member(:owning_accounts, Shapes::ShapeRef.new(shape: OwningAccounts, location_name: "OwningAccounts"))
|
680
686
|
ListMetricsOutput.struct_class = Types::ListMetricsOutput
|
681
687
|
|
682
688
|
ListTagsForResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
|
@@ -739,6 +745,8 @@ module Aws::CloudWatch
|
|
739
745
|
MetricAlarm.add_member(:evaluate_low_sample_count_percentile, Shapes::ShapeRef.new(shape: EvaluateLowSampleCountPercentile, location_name: "EvaluateLowSampleCountPercentile"))
|
740
746
|
MetricAlarm.add_member(:metrics, Shapes::ShapeRef.new(shape: MetricDataQueries, location_name: "Metrics"))
|
741
747
|
MetricAlarm.add_member(:threshold_metric_id, Shapes::ShapeRef.new(shape: MetricId, location_name: "ThresholdMetricId"))
|
748
|
+
MetricAlarm.add_member(:evaluation_state, Shapes::ShapeRef.new(shape: EvaluationState, location_name: "EvaluationState"))
|
749
|
+
MetricAlarm.add_member(:state_transitioned_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StateTransitionedTimestamp"))
|
742
750
|
MetricAlarm.struct_class = Types::MetricAlarm
|
743
751
|
|
744
752
|
MetricAlarms.member = Shapes::ShapeRef.new(shape: MetricAlarm)
|
@@ -825,6 +833,8 @@ module Aws::CloudWatch
|
|
825
833
|
MissingRequiredParameterException.add_member(:message, Shapes::ShapeRef.new(shape: AwsQueryErrorMessage, location_name: "message"))
|
826
834
|
MissingRequiredParameterException.struct_class = Types::MissingRequiredParameterException
|
827
835
|
|
836
|
+
OwningAccounts.member = Shapes::ShapeRef.new(shape: AccountId)
|
837
|
+
|
828
838
|
PartialFailure.add_member(:failure_resource, Shapes::ShapeRef.new(shape: FailureResource, location_name: "FailureResource"))
|
829
839
|
PartialFailure.add_member(:exception_type, Shapes::ShapeRef.new(shape: ExceptionType, location_name: "ExceptionType"))
|
830
840
|
PartialFailure.add_member(:failure_code, Shapes::ShapeRef.new(shape: FailureCode, location_name: "FailureCode"))
|
@@ -50,6 +50,9 @@ module Aws::CloudWatch
|
|
50
50
|
|
51
51
|
def initialize(options = {})
|
52
52
|
self[:region] = options[:region]
|
53
|
+
if self[:region].nil?
|
54
|
+
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
+
end
|
53
56
|
self[:use_dual_stack] = options[:use_dual_stack]
|
54
57
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
58
|
if self[:use_dual_stack].nil?
|
@@ -29,88 +29,87 @@ module Aws::CloudWatch
|
|
29
29
|
# @api private
|
30
30
|
RULES = <<-JSON
|
31
31
|
eyJ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
In0sdHJ1ZV19XSwidHlwZSI6InRyZWUiLCJydWxlcyI6W3siY29uZGl0aW9u
|
100
|
+
cyI6W3siZm4iOiJib29sZWFuRXF1YWxzIiwiYXJndiI6W3RydWUseyJmbiI6
|
101
|
+
ImdldEF0dHIiLCJhcmd2IjpbeyJyZWYiOiJQYXJ0aXRpb25SZXN1bHQifSwi
|
102
|
+
c3VwcG9ydHNEdWFsU3RhY2siXX1dfV0sInR5cGUiOiJ0cmVlIiwicnVsZXMi
|
103
|
+
Olt7ImNvbmRpdGlvbnMiOltdLCJlbmRwb2ludCI6eyJ1cmwiOiJodHRwczov
|
104
|
+
L21vbml0b3Jpbmcue1JlZ2lvbn0ue1BhcnRpdGlvblJlc3VsdCNkdWFsU3Rh
|
105
|
+
Y2tEbnNTdWZmaXh9IiwicHJvcGVydGllcyI6e30sImhlYWRlcnMiOnt9fSwi
|
106
|
+
dHlwZSI6ImVuZHBvaW50In1dfSx7ImNvbmRpdGlvbnMiOltdLCJlcnJvciI6
|
107
|
+
IkR1YWxTdGFjayBpcyBlbmFibGVkIGJ1dCB0aGlzIHBhcnRpdGlvbiBkb2Vz
|
108
|
+
IG5vdCBzdXBwb3J0IER1YWxTdGFjayIsInR5cGUiOiJlcnJvciJ9XX0seyJj
|
109
|
+
b25kaXRpb25zIjpbXSwiZW5kcG9pbnQiOnsidXJsIjoiaHR0cHM6Ly9tb25p
|
110
|
+
dG9yaW5nLntSZWdpb259LntQYXJ0aXRpb25SZXN1bHQjZG5zU3VmZml4fSIs
|
111
|
+
InByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRwb2lu
|
112
|
+
dCJ9XX1dfQ==
|
114
113
|
|
115
114
|
JSON
|
116
115
|
end
|
@@ -254,6 +254,8 @@ module Aws::CloudWatch
|
|
254
254
|
# },
|
255
255
|
# ],
|
256
256
|
# recently_active: "PT3H", # accepts PT3H
|
257
|
+
# include_linked_accounts: false,
|
258
|
+
# owning_account: "AccountId",
|
257
259
|
# })
|
258
260
|
# @param [Hash] options ({})
|
259
261
|
# @option options [String] :namespace
|
@@ -274,6 +276,16 @@ module Aws::CloudWatch
|
|
274
276
|
# specify. There is a low probability that the returned results include
|
275
277
|
# metrics with last published data as much as 40 minutes more than the
|
276
278
|
# specified time interval.
|
279
|
+
# @option options [Boolean] :include_linked_accounts
|
280
|
+
# If you are using this operation in a monitoring account, specify
|
281
|
+
# `true` to include metrics from source accounts in the returned data.
|
282
|
+
#
|
283
|
+
# The default is `false`.
|
284
|
+
# @option options [String] :owning_account
|
285
|
+
# When you use this operation in a monitoring account, use this field to
|
286
|
+
# return metrics only from one source account. To do so, specify that
|
287
|
+
# source account ID in this field, and also specify `true` for
|
288
|
+
# `IncludeLinkedAccounts`.
|
277
289
|
# @return [Metric::Collection]
|
278
290
|
def metrics(options = {})
|
279
291
|
batches = Enumerator.new do |y|
|