aws-sdk-cloudwatch 1.46.0 → 1.51.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 +330 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-cloudwatch.rb +2 -2
- data/lib/aws-sdk-cloudwatch/alarm.rb +1 -1
- data/lib/aws-sdk-cloudwatch/client.rb +330 -31
- data/lib/aws-sdk-cloudwatch/client_api.rb +173 -1
- data/lib/aws-sdk-cloudwatch/composite_alarm.rb +1 -1
- data/lib/aws-sdk-cloudwatch/customizations.rb +1 -1
- data/lib/aws-sdk-cloudwatch/errors.rb +1 -1
- data/lib/aws-sdk-cloudwatch/metric.rb +13 -2
- data/lib/aws-sdk-cloudwatch/resource.rb +1 -1
- data/lib/aws-sdk-cloudwatch/types.rb +464 -4
- data/lib/aws-sdk-cloudwatch/waiters.rb +1 -1
- metadata +10 -7
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.51.0
|
data/lib/aws-sdk-cloudwatch.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-cloudwatch/customizations'
|
|
52
52
|
# @!group service
|
53
53
|
module Aws::CloudWatch
|
54
54
|
|
55
|
-
GEM_VERSION = '1.
|
55
|
+
GEM_VERSION = '1.51.0'
|
56
56
|
|
57
57
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -478,6 +478,28 @@ module Aws::CloudWatch
|
|
478
478
|
req.send_request(options)
|
479
479
|
end
|
480
480
|
|
481
|
+
# Permanently deletes the metric stream that you specify.
|
482
|
+
#
|
483
|
+
# @option params [required, String] :name
|
484
|
+
# The name of the metric stream to delete.
|
485
|
+
#
|
486
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
487
|
+
#
|
488
|
+
# @example Request syntax with placeholder values
|
489
|
+
#
|
490
|
+
# resp = client.delete_metric_stream({
|
491
|
+
# name: "MetricStreamName", # required
|
492
|
+
# })
|
493
|
+
#
|
494
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteMetricStream AWS API Documentation
|
495
|
+
#
|
496
|
+
# @overload delete_metric_stream(params = {})
|
497
|
+
# @param [Hash] params ({})
|
498
|
+
def delete_metric_stream(params = {}, options = {})
|
499
|
+
req = build_request(:delete_metric_stream, params)
|
500
|
+
req.send_request(options)
|
501
|
+
end
|
502
|
+
|
481
503
|
# Retrieves the history for the specified alarm. You can filter the
|
482
504
|
# results by date range or item type. If an alarm name is not specified,
|
483
505
|
# the histories for either all metric alarms or all composite alarms are
|
@@ -557,7 +579,7 @@ module Aws::CloudWatch
|
|
557
579
|
end
|
558
580
|
|
559
581
|
# Retrieves the specified alarms. You can filter the results by
|
560
|
-
# specifying a
|
582
|
+
# specifying a prefix for the alarm name, the alarm state, or a prefix
|
561
583
|
# for any action.
|
562
584
|
#
|
563
585
|
# @option params [Array<String>] :alarm_names
|
@@ -1395,6 +1417,11 @@ module Aws::CloudWatch
|
|
1395
1417
|
# The maximum number of data points the request should return before
|
1396
1418
|
# paginating. If you omit this, the default of 100,800 is used.
|
1397
1419
|
#
|
1420
|
+
# @option params [Types::LabelOptions] :label_options
|
1421
|
+
# This structure includes the `Timezone` parameter, which you can use to
|
1422
|
+
# specify your time zone so that the labels of returned data display the
|
1423
|
+
# correct time for your time zone.
|
1424
|
+
#
|
1398
1425
|
# @return [Types::GetMetricDataOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1399
1426
|
#
|
1400
1427
|
# * {Types::GetMetricDataOutput#metric_data_results #metric_data_results} => Array<Types::MetricDataResult>
|
@@ -1435,6 +1462,9 @@ module Aws::CloudWatch
|
|
1435
1462
|
# next_token: "NextToken",
|
1436
1463
|
# scan_by: "TimestampDescending", # accepts TimestampDescending, TimestampAscending
|
1437
1464
|
# max_datapoints: 1,
|
1465
|
+
# label_options: {
|
1466
|
+
# timezone: "GetMetricDataLabelTimezone",
|
1467
|
+
# },
|
1438
1468
|
# })
|
1439
1469
|
#
|
1440
1470
|
# @example Response structure
|
@@ -1678,6 +1708,54 @@ module Aws::CloudWatch
|
|
1678
1708
|
req.send_request(options)
|
1679
1709
|
end
|
1680
1710
|
|
1711
|
+
# Returns information about the metric stream that you specify.
|
1712
|
+
#
|
1713
|
+
# @option params [required, String] :name
|
1714
|
+
# The name of the metric stream to retrieve information about.
|
1715
|
+
#
|
1716
|
+
# @return [Types::GetMetricStreamOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1717
|
+
#
|
1718
|
+
# * {Types::GetMetricStreamOutput#arn #arn} => String
|
1719
|
+
# * {Types::GetMetricStreamOutput#name #name} => String
|
1720
|
+
# * {Types::GetMetricStreamOutput#include_filters #include_filters} => Array<Types::MetricStreamFilter>
|
1721
|
+
# * {Types::GetMetricStreamOutput#exclude_filters #exclude_filters} => Array<Types::MetricStreamFilter>
|
1722
|
+
# * {Types::GetMetricStreamOutput#firehose_arn #firehose_arn} => String
|
1723
|
+
# * {Types::GetMetricStreamOutput#role_arn #role_arn} => String
|
1724
|
+
# * {Types::GetMetricStreamOutput#state #state} => String
|
1725
|
+
# * {Types::GetMetricStreamOutput#creation_date #creation_date} => Time
|
1726
|
+
# * {Types::GetMetricStreamOutput#last_update_date #last_update_date} => Time
|
1727
|
+
# * {Types::GetMetricStreamOutput#output_format #output_format} => String
|
1728
|
+
#
|
1729
|
+
# @example Request syntax with placeholder values
|
1730
|
+
#
|
1731
|
+
# resp = client.get_metric_stream({
|
1732
|
+
# name: "MetricStreamName", # required
|
1733
|
+
# })
|
1734
|
+
#
|
1735
|
+
# @example Response structure
|
1736
|
+
#
|
1737
|
+
# resp.arn #=> String
|
1738
|
+
# resp.name #=> String
|
1739
|
+
# resp.include_filters #=> Array
|
1740
|
+
# resp.include_filters[0].namespace #=> String
|
1741
|
+
# resp.exclude_filters #=> Array
|
1742
|
+
# resp.exclude_filters[0].namespace #=> String
|
1743
|
+
# resp.firehose_arn #=> String
|
1744
|
+
# resp.role_arn #=> String
|
1745
|
+
# resp.state #=> String
|
1746
|
+
# resp.creation_date #=> Time
|
1747
|
+
# resp.last_update_date #=> Time
|
1748
|
+
# resp.output_format #=> String, one of "json", "opentelemetry0.7"
|
1749
|
+
#
|
1750
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStream AWS API Documentation
|
1751
|
+
#
|
1752
|
+
# @overload get_metric_stream(params = {})
|
1753
|
+
# @param [Hash] params ({})
|
1754
|
+
def get_metric_stream(params = {}, options = {})
|
1755
|
+
req = build_request(:get_metric_stream, params)
|
1756
|
+
req.send_request(options)
|
1757
|
+
end
|
1758
|
+
|
1681
1759
|
# You can use the `GetMetricWidgetImage` API to retrieve a snapshot
|
1682
1760
|
# graph of one or more Amazon CloudWatch metrics as a bitmap image. You
|
1683
1761
|
# can then embed this image into your services and products, such as
|
@@ -1821,6 +1899,50 @@ module Aws::CloudWatch
|
|
1821
1899
|
req.send_request(options)
|
1822
1900
|
end
|
1823
1901
|
|
1902
|
+
# Returns a list of metric streams in this account.
|
1903
|
+
#
|
1904
|
+
# @option params [String] :next_token
|
1905
|
+
# Include this value, if it was returned by the previous call, to get
|
1906
|
+
# the next set of metric streams.
|
1907
|
+
#
|
1908
|
+
# @option params [Integer] :max_results
|
1909
|
+
# The maximum number of results to return in one operation.
|
1910
|
+
#
|
1911
|
+
# @return [Types::ListMetricStreamsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1912
|
+
#
|
1913
|
+
# * {Types::ListMetricStreamsOutput#next_token #next_token} => String
|
1914
|
+
# * {Types::ListMetricStreamsOutput#entries #entries} => Array<Types::MetricStreamEntry>
|
1915
|
+
#
|
1916
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1917
|
+
#
|
1918
|
+
# @example Request syntax with placeholder values
|
1919
|
+
#
|
1920
|
+
# resp = client.list_metric_streams({
|
1921
|
+
# next_token: "NextToken",
|
1922
|
+
# max_results: 1,
|
1923
|
+
# })
|
1924
|
+
#
|
1925
|
+
# @example Response structure
|
1926
|
+
#
|
1927
|
+
# resp.next_token #=> String
|
1928
|
+
# resp.entries #=> Array
|
1929
|
+
# resp.entries[0].arn #=> String
|
1930
|
+
# resp.entries[0].creation_date #=> Time
|
1931
|
+
# resp.entries[0].last_update_date #=> Time
|
1932
|
+
# resp.entries[0].name #=> String
|
1933
|
+
# resp.entries[0].firehose_arn #=> String
|
1934
|
+
# resp.entries[0].state #=> String
|
1935
|
+
# resp.entries[0].output_format #=> String, one of "json", "opentelemetry0.7"
|
1936
|
+
#
|
1937
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetricStreams AWS API Documentation
|
1938
|
+
#
|
1939
|
+
# @overload list_metric_streams(params = {})
|
1940
|
+
# @param [Hash] params ({})
|
1941
|
+
def list_metric_streams(params = {}, options = {})
|
1942
|
+
req = build_request(:list_metric_streams, params)
|
1943
|
+
req.send_request(options)
|
1944
|
+
end
|
1945
|
+
|
1824
1946
|
# List the specified metrics. You can use the returned metrics with
|
1825
1947
|
# [GetMetricData][1] or [GetMetricStatistics][2] to obtain statistical
|
1826
1948
|
# data.
|
@@ -2062,6 +2184,9 @@ module Aws::CloudWatch
|
|
2062
2184
|
# the update completely overwrites the previous configuration of the
|
2063
2185
|
# alarm.
|
2064
2186
|
#
|
2187
|
+
# If you are an IAM user, you must have `iam:CreateServiceLinkedRole` to
|
2188
|
+
# create a composite alarm that has Systems Manager OpsItem actions.
|
2189
|
+
#
|
2065
2190
|
# @option params [Boolean] :actions_enabled
|
2066
2191
|
# Indicates whether actions should be executed during any changes to the
|
2067
2192
|
# alarm state of the composite alarm. The default is `TRUE`.
|
@@ -2071,7 +2196,8 @@ module Aws::CloudWatch
|
|
2071
2196
|
# state from any other state. Each action is specified as an Amazon
|
2072
2197
|
# Resource Name (ARN).
|
2073
2198
|
#
|
2074
|
-
# Valid Values: `arn:aws:sns:region:account-id:sns-topic-name `
|
2199
|
+
# Valid Values: `arn:aws:sns:region:account-id:sns-topic-name ` \|
|
2200
|
+
# `arn:aws:ssm:region:account-id:opsitem:severity `
|
2075
2201
|
#
|
2076
2202
|
# @option params [String] :alarm_description
|
2077
2203
|
# The description for the composite alarm.
|
@@ -2345,36 +2471,17 @@ module Aws::CloudWatch
|
|
2345
2471
|
# If you are an IAM user, you must have Amazon EC2 permissions for some
|
2346
2472
|
# alarm operations:
|
2347
2473
|
#
|
2348
|
-
# * `iam:CreateServiceLinkedRole` for all alarms with EC2 actions
|
2349
|
-
#
|
2350
|
-
# * `ec2:DescribeInstanceStatus` and `ec2:DescribeInstances` for all
|
2351
|
-
# alarms on EC2 instance status metrics
|
2352
|
-
#
|
2353
|
-
# * `ec2:StopInstances` for alarms with stop actions
|
2354
|
-
#
|
2355
|
-
# * `ec2:TerminateInstances` for alarms with terminate actions
|
2356
|
-
#
|
2357
|
-
# * No specific permissions are needed for alarms with recover actions
|
2474
|
+
# * The `iam:CreateServiceLinkedRole` for all alarms with EC2 actions
|
2358
2475
|
#
|
2359
|
-
#
|
2360
|
-
#
|
2361
|
-
# actions are not performed. However, if you are later granted the
|
2362
|
-
# required permissions, the alarm actions that you created earlier are
|
2363
|
-
# performed.
|
2364
|
-
#
|
2365
|
-
# If you are using an IAM role (for example, an EC2 instance profile),
|
2366
|
-
# you cannot stop or terminate the instance using alarm actions.
|
2367
|
-
# However, you can still see the alarm state and perform any other
|
2368
|
-
# actions such as Amazon SNS notifications or Auto Scaling policies.
|
2369
|
-
#
|
2370
|
-
# If you are using temporary security credentials granted using AWS STS,
|
2371
|
-
# you cannot stop or terminate an EC2 instance using alarm actions.
|
2476
|
+
# * The `iam:CreateServiceLinkedRole` to create an alarm with Systems
|
2477
|
+
# Manager OpsItem actions.
|
2372
2478
|
#
|
2373
2479
|
# The first time you create an alarm in the AWS Management Console, the
|
2374
2480
|
# CLI, or by using the PutMetricAlarm API, CloudWatch creates the
|
2375
|
-
# necessary service-linked role for you. The service-linked
|
2376
|
-
# called `AWSServiceRoleForCloudWatchEvents
|
2377
|
-
#
|
2481
|
+
# necessary service-linked role for you. The service-linked roles are
|
2482
|
+
# called `AWSServiceRoleForCloudWatchEvents` and
|
2483
|
+
# `AWSServiceRoleForCloudWatchAlarms_ActionSSM`. For more information,
|
2484
|
+
# see [AWS service-linked role][1].
|
2378
2485
|
#
|
2379
2486
|
#
|
2380
2487
|
#
|
@@ -2409,6 +2516,8 @@ module Aws::CloudWatch
|
|
2409
2516
|
# `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
|
2410
2517
|
# \|
|
2411
2518
|
# `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
|
2519
|
+
# \|
|
2520
|
+
# `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0`
|
2412
2521
|
#
|
2413
2522
|
# @option params [Array<String>] :alarm_actions
|
2414
2523
|
# The actions to execute when this alarm transitions to the `ALARM`
|
@@ -2421,7 +2530,7 @@ module Aws::CloudWatch
|
|
2421
2530
|
# `arn:aws:automate:region:ec2:reboot` \|
|
2422
2531
|
# `arn:aws:sns:region:account-id:sns-topic-name ` \|
|
2423
2532
|
# `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
2424
|
-
# `
|
2533
|
+
# ` \| `arn:aws:ssm:region:account-id:opsitem:severity `
|
2425
2534
|
#
|
2426
2535
|
# Valid Values (for use with IAM roles):
|
2427
2536
|
# `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0`
|
@@ -2622,6 +2731,15 @@ module Aws::CloudWatch
|
|
2622
2731
|
# use them to scope user permissions by granting a user permission to
|
2623
2732
|
# access or change only resources with certain tag values.
|
2624
2733
|
#
|
2734
|
+
# If you are using this operation to update an existing alarm, any tags
|
2735
|
+
# you specify in this parameter are ignored. To change the tags of an
|
2736
|
+
# existing alarm, use [TagResource][1] or [UntagResource][2].
|
2737
|
+
#
|
2738
|
+
#
|
2739
|
+
#
|
2740
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html
|
2741
|
+
# [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_UntagResource.html
|
2742
|
+
#
|
2625
2743
|
# @option params [String] :threshold_metric_id
|
2626
2744
|
# If this is an alarm based on an anomaly detection model, make this
|
2627
2745
|
# value match the ID of the `ANOMALY_DETECTION_BAND` function.
|
@@ -2810,6 +2928,134 @@ module Aws::CloudWatch
|
|
2810
2928
|
req.send_request(options)
|
2811
2929
|
end
|
2812
2930
|
|
2931
|
+
# Creates or updates a metric stream. Metric streams can automatically
|
2932
|
+
# stream CloudWatch metrics to AWS destinations including Amazon S3 and
|
2933
|
+
# to many third-party solutions.
|
2934
|
+
#
|
2935
|
+
# For more information, see [ Using Metric Streams][1].
|
2936
|
+
#
|
2937
|
+
# To create a metric stream, you must be logged on to an account that
|
2938
|
+
# has the `iam:PassRole` permission and either the
|
2939
|
+
# `CloudWatchFullAccess` policy or the `cloudwatch:PutMetricStream`
|
2940
|
+
# permission.
|
2941
|
+
#
|
2942
|
+
# When you create or update a metric stream, you choose one of the
|
2943
|
+
# following:
|
2944
|
+
#
|
2945
|
+
# * Stream metrics from all metric namespaces in the account.
|
2946
|
+
#
|
2947
|
+
# * Stream metrics from all metric namespaces in the account, except for
|
2948
|
+
# the namespaces that you list in `ExcludeFilters`.
|
2949
|
+
#
|
2950
|
+
# * Stream metrics from only the metric namespaces that you list in
|
2951
|
+
# `IncludeFilters`.
|
2952
|
+
#
|
2953
|
+
# When you use `PutMetricStream` to create a new metric stream, the
|
2954
|
+
# stream is created in the `running` state. If you use it to update an
|
2955
|
+
# existing stream, the state of the stream is not changed.
|
2956
|
+
#
|
2957
|
+
#
|
2958
|
+
#
|
2959
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Metric-Streams.html
|
2960
|
+
#
|
2961
|
+
# @option params [required, String] :name
|
2962
|
+
# If you are creating a new metric stream, this is the name for the new
|
2963
|
+
# stream. The name must be different than the names of other metric
|
2964
|
+
# streams in this account and Region.
|
2965
|
+
#
|
2966
|
+
# If you are updating a metric stream, specify the name of that stream
|
2967
|
+
# here.
|
2968
|
+
#
|
2969
|
+
# Valid characters are A-Z, a-z, 0-9, "-" and "\_".
|
2970
|
+
#
|
2971
|
+
# @option params [Array<Types::MetricStreamFilter>] :include_filters
|
2972
|
+
# If you specify this parameter, the stream sends only the metrics from
|
2973
|
+
# the metric namespaces that you specify here.
|
2974
|
+
#
|
2975
|
+
# You cannot include `IncludeFilters` and `ExcludeFilters` in the same
|
2976
|
+
# operation.
|
2977
|
+
#
|
2978
|
+
# @option params [Array<Types::MetricStreamFilter>] :exclude_filters
|
2979
|
+
# If you specify this parameter, the stream sends metrics from all
|
2980
|
+
# metric namespaces except for the namespaces that you specify here.
|
2981
|
+
#
|
2982
|
+
# You cannot include `ExcludeFilters` and `IncludeFilters` in the same
|
2983
|
+
# operation.
|
2984
|
+
#
|
2985
|
+
# @option params [required, String] :firehose_arn
|
2986
|
+
# The ARN of the Amazon Kinesis Firehose delivery stream to use for this
|
2987
|
+
# metric stream. This Amazon Kinesis Firehose delivery stream must
|
2988
|
+
# already exist and must be in the same account as the metric stream.
|
2989
|
+
#
|
2990
|
+
# @option params [required, String] :role_arn
|
2991
|
+
# The ARN of an IAM role that this metric stream will use to access
|
2992
|
+
# Amazon Kinesis Firehose resources. This IAM role must already exist
|
2993
|
+
# and must be in the same account as the metric stream. This IAM role
|
2994
|
+
# must include the following permissions:
|
2995
|
+
#
|
2996
|
+
# * firehose:PutRecord
|
2997
|
+
#
|
2998
|
+
# * firehose:PutRecordBatch
|
2999
|
+
#
|
3000
|
+
# @option params [required, String] :output_format
|
3001
|
+
# The output format for the stream. Valid values are `json` and
|
3002
|
+
# `opentelemetry0.7`. For more information about metric stream output
|
3003
|
+
# formats, see [ Metric streams output formats][1].
|
3004
|
+
#
|
3005
|
+
#
|
3006
|
+
#
|
3007
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats.html
|
3008
|
+
#
|
3009
|
+
# @option params [Array<Types::Tag>] :tags
|
3010
|
+
# A list of key-value pairs to associate with the metric stream. You can
|
3011
|
+
# associate as many as 50 tags with a metric stream.
|
3012
|
+
#
|
3013
|
+
# Tags can help you organize and categorize your resources. You can also
|
3014
|
+
# use them to scope user permissions by granting a user permission to
|
3015
|
+
# access or change only resources with certain tag values.
|
3016
|
+
#
|
3017
|
+
# @return [Types::PutMetricStreamOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3018
|
+
#
|
3019
|
+
# * {Types::PutMetricStreamOutput#arn #arn} => String
|
3020
|
+
#
|
3021
|
+
# @example Request syntax with placeholder values
|
3022
|
+
#
|
3023
|
+
# resp = client.put_metric_stream({
|
3024
|
+
# name: "MetricStreamName", # required
|
3025
|
+
# include_filters: [
|
3026
|
+
# {
|
3027
|
+
# namespace: "Namespace",
|
3028
|
+
# },
|
3029
|
+
# ],
|
3030
|
+
# exclude_filters: [
|
3031
|
+
# {
|
3032
|
+
# namespace: "Namespace",
|
3033
|
+
# },
|
3034
|
+
# ],
|
3035
|
+
# firehose_arn: "AmazonResourceName", # required
|
3036
|
+
# role_arn: "AmazonResourceName", # required
|
3037
|
+
# output_format: "json", # required, accepts json, opentelemetry0.7
|
3038
|
+
# tags: [
|
3039
|
+
# {
|
3040
|
+
# key: "TagKey", # required
|
3041
|
+
# value: "TagValue", # required
|
3042
|
+
# },
|
3043
|
+
# ],
|
3044
|
+
# })
|
3045
|
+
#
|
3046
|
+
# @example Response structure
|
3047
|
+
#
|
3048
|
+
# resp.arn #=> String
|
3049
|
+
#
|
3050
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricStream AWS API Documentation
|
3051
|
+
#
|
3052
|
+
# @overload put_metric_stream(params = {})
|
3053
|
+
# @param [Hash] params ({})
|
3054
|
+
def put_metric_stream(params = {}, options = {})
|
3055
|
+
req = build_request(:put_metric_stream, params)
|
3056
|
+
req.send_request(options)
|
3057
|
+
end
|
3058
|
+
|
2813
3059
|
# Temporarily sets the state of an alarm for testing purposes. When the
|
2814
3060
|
# updated state differs from the previous value, the action configured
|
2815
3061
|
# for the appropriate state is invoked. For example, if your alarm is
|
@@ -2874,6 +3120,59 @@ module Aws::CloudWatch
|
|
2874
3120
|
req.send_request(options)
|
2875
3121
|
end
|
2876
3122
|
|
3123
|
+
# Starts the streaming of metrics for one or more of your metric
|
3124
|
+
# streams.
|
3125
|
+
#
|
3126
|
+
# @option params [required, Array<String>] :names
|
3127
|
+
# The array of the names of metric streams to start streaming.
|
3128
|
+
#
|
3129
|
+
# This is an "all or nothing" operation. If you do not have permission
|
3130
|
+
# to access all of the metric streams that you list here, then none of
|
3131
|
+
# the streams that you list in the operation will start streaming.
|
3132
|
+
#
|
3133
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
3134
|
+
#
|
3135
|
+
# @example Request syntax with placeholder values
|
3136
|
+
#
|
3137
|
+
# resp = client.start_metric_streams({
|
3138
|
+
# names: ["MetricStreamName"], # required
|
3139
|
+
# })
|
3140
|
+
#
|
3141
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StartMetricStreams AWS API Documentation
|
3142
|
+
#
|
3143
|
+
# @overload start_metric_streams(params = {})
|
3144
|
+
# @param [Hash] params ({})
|
3145
|
+
def start_metric_streams(params = {}, options = {})
|
3146
|
+
req = build_request(:start_metric_streams, params)
|
3147
|
+
req.send_request(options)
|
3148
|
+
end
|
3149
|
+
|
3150
|
+
# Stops the streaming of metrics for one or more of your metric streams.
|
3151
|
+
#
|
3152
|
+
# @option params [required, Array<String>] :names
|
3153
|
+
# The array of the names of metric streams to stop streaming.
|
3154
|
+
#
|
3155
|
+
# This is an "all or nothing" operation. If you do not have permission
|
3156
|
+
# to access all of the metric streams that you list here, then none of
|
3157
|
+
# the streams that you list in the operation will stop streaming.
|
3158
|
+
#
|
3159
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
3160
|
+
#
|
3161
|
+
# @example Request syntax with placeholder values
|
3162
|
+
#
|
3163
|
+
# resp = client.stop_metric_streams({
|
3164
|
+
# names: ["MetricStreamName"], # required
|
3165
|
+
# })
|
3166
|
+
#
|
3167
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StopMetricStreams AWS API Documentation
|
3168
|
+
#
|
3169
|
+
# @overload stop_metric_streams(params = {})
|
3170
|
+
# @param [Hash] params ({})
|
3171
|
+
def stop_metric_streams(params = {}, options = {})
|
3172
|
+
req = build_request(:stop_metric_streams, params)
|
3173
|
+
req.send_request(options)
|
3174
|
+
end
|
3175
|
+
|
2877
3176
|
# Assigns one or more tags (key-value pairs) to the specified CloudWatch
|
2878
3177
|
# resource. Currently, the only CloudWatch resources that can be tagged
|
2879
3178
|
# are alarms and Contributor Insights rules.
|
@@ -2987,7 +3286,7 @@ module Aws::CloudWatch
|
|
2987
3286
|
params: params,
|
2988
3287
|
config: config)
|
2989
3288
|
context[:gem_name] = 'aws-sdk-cloudwatch'
|
2990
|
-
context[:gem_version] = '1.
|
3289
|
+
context[:gem_version] = '1.51.0'
|
2991
3290
|
Seahorse::Client::Request.new(handlers, context)
|
2992
3291
|
end
|
2993
3292
|
|