aws-sdk-cloudwatch 1.46.0 → 1.51.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/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
@@ -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
|
|
@@ -66,6 +66,8 @@ module Aws::CloudWatch
|
|
66
66
|
DeleteDashboardsOutput = Shapes::StructureShape.new(name: 'DeleteDashboardsOutput')
|
67
67
|
DeleteInsightRulesInput = Shapes::StructureShape.new(name: 'DeleteInsightRulesInput')
|
68
68
|
DeleteInsightRulesOutput = Shapes::StructureShape.new(name: 'DeleteInsightRulesOutput')
|
69
|
+
DeleteMetricStreamInput = Shapes::StructureShape.new(name: 'DeleteMetricStreamInput')
|
70
|
+
DeleteMetricStreamOutput = Shapes::StructureShape.new(name: 'DeleteMetricStreamOutput')
|
69
71
|
DescribeAlarmHistoryInput = Shapes::StructureShape.new(name: 'DescribeAlarmHistoryInput')
|
70
72
|
DescribeAlarmHistoryOutput = Shapes::StructureShape.new(name: 'DescribeAlarmHistoryOutput')
|
71
73
|
DescribeAlarmsForMetricInput = Shapes::StructureShape.new(name: 'DescribeAlarmsForMetricInput')
|
@@ -103,10 +105,13 @@ module Aws::CloudWatch
|
|
103
105
|
GetInsightRuleReportInput = Shapes::StructureShape.new(name: 'GetInsightRuleReportInput')
|
104
106
|
GetInsightRuleReportOutput = Shapes::StructureShape.new(name: 'GetInsightRuleReportOutput')
|
105
107
|
GetMetricDataInput = Shapes::StructureShape.new(name: 'GetMetricDataInput')
|
108
|
+
GetMetricDataLabelTimezone = Shapes::StringShape.new(name: 'GetMetricDataLabelTimezone')
|
106
109
|
GetMetricDataMaxDatapoints = Shapes::IntegerShape.new(name: 'GetMetricDataMaxDatapoints')
|
107
110
|
GetMetricDataOutput = Shapes::StructureShape.new(name: 'GetMetricDataOutput')
|
108
111
|
GetMetricStatisticsInput = Shapes::StructureShape.new(name: 'GetMetricStatisticsInput')
|
109
112
|
GetMetricStatisticsOutput = Shapes::StructureShape.new(name: 'GetMetricStatisticsOutput')
|
113
|
+
GetMetricStreamInput = Shapes::StructureShape.new(name: 'GetMetricStreamInput')
|
114
|
+
GetMetricStreamOutput = Shapes::StructureShape.new(name: 'GetMetricStreamOutput')
|
110
115
|
GetMetricWidgetImageInput = Shapes::StructureShape.new(name: 'GetMetricWidgetImageInput')
|
111
116
|
GetMetricWidgetImageOutput = Shapes::StructureShape.new(name: 'GetMetricWidgetImageOutput')
|
112
117
|
HistoryData = Shapes::StringShape.new(name: 'HistoryData')
|
@@ -142,11 +147,15 @@ module Aws::CloudWatch
|
|
142
147
|
InvalidNextToken = Shapes::StructureShape.new(name: 'InvalidNextToken')
|
143
148
|
InvalidParameterCombinationException = Shapes::StructureShape.new(name: 'InvalidParameterCombinationException')
|
144
149
|
InvalidParameterValueException = Shapes::StructureShape.new(name: 'InvalidParameterValueException')
|
150
|
+
LabelOptions = Shapes::StructureShape.new(name: 'LabelOptions')
|
145
151
|
LastModified = Shapes::TimestampShape.new(name: 'LastModified')
|
146
152
|
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
147
153
|
LimitExceededFault = Shapes::StructureShape.new(name: 'LimitExceededFault')
|
148
154
|
ListDashboardsInput = Shapes::StructureShape.new(name: 'ListDashboardsInput')
|
149
155
|
ListDashboardsOutput = Shapes::StructureShape.new(name: 'ListDashboardsOutput')
|
156
|
+
ListMetricStreamsInput = Shapes::StructureShape.new(name: 'ListMetricStreamsInput')
|
157
|
+
ListMetricStreamsMaxResults = Shapes::IntegerShape.new(name: 'ListMetricStreamsMaxResults')
|
158
|
+
ListMetricStreamsOutput = Shapes::StructureShape.new(name: 'ListMetricStreamsOutput')
|
150
159
|
ListMetricsInput = Shapes::StructureShape.new(name: 'ListMetricsInput')
|
151
160
|
ListMetricsOutput = Shapes::StructureShape.new(name: 'ListMetricsOutput')
|
152
161
|
ListTagsForResourceInput = Shapes::StructureShape.new(name: 'ListTagsForResourceInput')
|
@@ -172,6 +181,14 @@ module Aws::CloudWatch
|
|
172
181
|
MetricLabel = Shapes::StringShape.new(name: 'MetricLabel')
|
173
182
|
MetricName = Shapes::StringShape.new(name: 'MetricName')
|
174
183
|
MetricStat = Shapes::StructureShape.new(name: 'MetricStat')
|
184
|
+
MetricStreamEntries = Shapes::ListShape.new(name: 'MetricStreamEntries')
|
185
|
+
MetricStreamEntry = Shapes::StructureShape.new(name: 'MetricStreamEntry')
|
186
|
+
MetricStreamFilter = Shapes::StructureShape.new(name: 'MetricStreamFilter')
|
187
|
+
MetricStreamFilters = Shapes::ListShape.new(name: 'MetricStreamFilters')
|
188
|
+
MetricStreamName = Shapes::StringShape.new(name: 'MetricStreamName')
|
189
|
+
MetricStreamNames = Shapes::ListShape.new(name: 'MetricStreamNames')
|
190
|
+
MetricStreamOutputFormat = Shapes::StringShape.new(name: 'MetricStreamOutputFormat')
|
191
|
+
MetricStreamState = Shapes::StringShape.new(name: 'MetricStreamState')
|
175
192
|
MetricWidget = Shapes::StringShape.new(name: 'MetricWidget')
|
176
193
|
MetricWidgetImage = Shapes::BlobShape.new(name: 'MetricWidgetImage')
|
177
194
|
Metrics = Shapes::ListShape.new(name: 'Metrics')
|
@@ -190,6 +207,8 @@ module Aws::CloudWatch
|
|
190
207
|
PutInsightRuleOutput = Shapes::StructureShape.new(name: 'PutInsightRuleOutput')
|
191
208
|
PutMetricAlarmInput = Shapes::StructureShape.new(name: 'PutMetricAlarmInput')
|
192
209
|
PutMetricDataInput = Shapes::StructureShape.new(name: 'PutMetricDataInput')
|
210
|
+
PutMetricStreamInput = Shapes::StructureShape.new(name: 'PutMetricStreamInput')
|
211
|
+
PutMetricStreamOutput = Shapes::StructureShape.new(name: 'PutMetricStreamOutput')
|
193
212
|
Range = Shapes::StructureShape.new(name: 'Range')
|
194
213
|
RecentlyActive = Shapes::StringShape.new(name: 'RecentlyActive')
|
195
214
|
ResourceId = Shapes::StringShape.new(name: 'ResourceId')
|
@@ -203,6 +222,8 @@ module Aws::CloudWatch
|
|
203
222
|
SetAlarmStateInput = Shapes::StructureShape.new(name: 'SetAlarmStateInput')
|
204
223
|
Size = Shapes::IntegerShape.new(name: 'Size')
|
205
224
|
StandardUnit = Shapes::StringShape.new(name: 'StandardUnit')
|
225
|
+
StartMetricStreamsInput = Shapes::StructureShape.new(name: 'StartMetricStreamsInput')
|
226
|
+
StartMetricStreamsOutput = Shapes::StructureShape.new(name: 'StartMetricStreamsOutput')
|
206
227
|
Stat = Shapes::StringShape.new(name: 'Stat')
|
207
228
|
StateReason = Shapes::StringShape.new(name: 'StateReason')
|
208
229
|
StateReasonData = Shapes::StringShape.new(name: 'StateReasonData')
|
@@ -211,6 +232,8 @@ module Aws::CloudWatch
|
|
211
232
|
StatisticSet = Shapes::StructureShape.new(name: 'StatisticSet')
|
212
233
|
Statistics = Shapes::ListShape.new(name: 'Statistics')
|
213
234
|
StatusCode = Shapes::StringShape.new(name: 'StatusCode')
|
235
|
+
StopMetricStreamsInput = Shapes::StructureShape.new(name: 'StopMetricStreamsInput')
|
236
|
+
StopMetricStreamsOutput = Shapes::StructureShape.new(name: 'StopMetricStreamsOutput')
|
214
237
|
StorageResolution = Shapes::IntegerShape.new(name: 'StorageResolution')
|
215
238
|
Tag = Shapes::StructureShape.new(name: 'Tag')
|
216
239
|
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
@@ -342,6 +365,11 @@ module Aws::CloudWatch
|
|
342
365
|
DeleteInsightRulesOutput.add_member(:failures, Shapes::ShapeRef.new(shape: BatchFailures, location_name: "Failures"))
|
343
366
|
DeleteInsightRulesOutput.struct_class = Types::DeleteInsightRulesOutput
|
344
367
|
|
368
|
+
DeleteMetricStreamInput.add_member(:name, Shapes::ShapeRef.new(shape: MetricStreamName, required: true, location_name: "Name"))
|
369
|
+
DeleteMetricStreamInput.struct_class = Types::DeleteMetricStreamInput
|
370
|
+
|
371
|
+
DeleteMetricStreamOutput.struct_class = Types::DeleteMetricStreamOutput
|
372
|
+
|
345
373
|
DescribeAlarmHistoryInput.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, location_name: "AlarmName"))
|
346
374
|
DescribeAlarmHistoryInput.add_member(:alarm_types, Shapes::ShapeRef.new(shape: AlarmTypes, location_name: "AlarmTypes"))
|
347
375
|
DescribeAlarmHistoryInput.add_member(:history_item_type, Shapes::ShapeRef.new(shape: HistoryItemType, location_name: "HistoryItemType"))
|
@@ -466,6 +494,7 @@ module Aws::CloudWatch
|
|
466
494
|
GetMetricDataInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
467
495
|
GetMetricDataInput.add_member(:scan_by, Shapes::ShapeRef.new(shape: ScanBy, location_name: "ScanBy"))
|
468
496
|
GetMetricDataInput.add_member(:max_datapoints, Shapes::ShapeRef.new(shape: GetMetricDataMaxDatapoints, location_name: "MaxDatapoints"))
|
497
|
+
GetMetricDataInput.add_member(:label_options, Shapes::ShapeRef.new(shape: LabelOptions, location_name: "LabelOptions"))
|
469
498
|
GetMetricDataInput.struct_class = Types::GetMetricDataInput
|
470
499
|
|
471
500
|
GetMetricDataOutput.add_member(:metric_data_results, Shapes::ShapeRef.new(shape: MetricDataResults, location_name: "MetricDataResults"))
|
@@ -488,6 +517,21 @@ module Aws::CloudWatch
|
|
488
517
|
GetMetricStatisticsOutput.add_member(:datapoints, Shapes::ShapeRef.new(shape: Datapoints, location_name: "Datapoints"))
|
489
518
|
GetMetricStatisticsOutput.struct_class = Types::GetMetricStatisticsOutput
|
490
519
|
|
520
|
+
GetMetricStreamInput.add_member(:name, Shapes::ShapeRef.new(shape: MetricStreamName, required: true, location_name: "Name"))
|
521
|
+
GetMetricStreamInput.struct_class = Types::GetMetricStreamInput
|
522
|
+
|
523
|
+
GetMetricStreamOutput.add_member(:arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "Arn"))
|
524
|
+
GetMetricStreamOutput.add_member(:name, Shapes::ShapeRef.new(shape: MetricStreamName, location_name: "Name"))
|
525
|
+
GetMetricStreamOutput.add_member(:include_filters, Shapes::ShapeRef.new(shape: MetricStreamFilters, location_name: "IncludeFilters"))
|
526
|
+
GetMetricStreamOutput.add_member(:exclude_filters, Shapes::ShapeRef.new(shape: MetricStreamFilters, location_name: "ExcludeFilters"))
|
527
|
+
GetMetricStreamOutput.add_member(:firehose_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "FirehoseArn"))
|
528
|
+
GetMetricStreamOutput.add_member(:role_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "RoleArn"))
|
529
|
+
GetMetricStreamOutput.add_member(:state, Shapes::ShapeRef.new(shape: MetricStreamState, location_name: "State"))
|
530
|
+
GetMetricStreamOutput.add_member(:creation_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationDate"))
|
531
|
+
GetMetricStreamOutput.add_member(:last_update_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastUpdateDate"))
|
532
|
+
GetMetricStreamOutput.add_member(:output_format, Shapes::ShapeRef.new(shape: MetricStreamOutputFormat, location_name: "OutputFormat"))
|
533
|
+
GetMetricStreamOutput.struct_class = Types::GetMetricStreamOutput
|
534
|
+
|
491
535
|
GetMetricWidgetImageInput.add_member(:metric_widget, Shapes::ShapeRef.new(shape: MetricWidget, required: true, location_name: "MetricWidget"))
|
492
536
|
GetMetricWidgetImageInput.add_member(:output_format, Shapes::ShapeRef.new(shape: OutputFormat, location_name: "OutputFormat"))
|
493
537
|
GetMetricWidgetImageInput.struct_class = Types::GetMetricWidgetImageInput
|
@@ -551,6 +595,9 @@ module Aws::CloudWatch
|
|
551
595
|
InvalidParameterValueException.add_member(:message, Shapes::ShapeRef.new(shape: AwsQueryErrorMessage, location_name: "message"))
|
552
596
|
InvalidParameterValueException.struct_class = Types::InvalidParameterValueException
|
553
597
|
|
598
|
+
LabelOptions.add_member(:timezone, Shapes::ShapeRef.new(shape: GetMetricDataLabelTimezone, location_name: "Timezone"))
|
599
|
+
LabelOptions.struct_class = Types::LabelOptions
|
600
|
+
|
554
601
|
LimitExceededException.struct_class = Types::LimitExceededException
|
555
602
|
|
556
603
|
LimitExceededFault.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
@@ -564,6 +611,14 @@ module Aws::CloudWatch
|
|
564
611
|
ListDashboardsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
565
612
|
ListDashboardsOutput.struct_class = Types::ListDashboardsOutput
|
566
613
|
|
614
|
+
ListMetricStreamsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
615
|
+
ListMetricStreamsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListMetricStreamsMaxResults, location_name: "MaxResults"))
|
616
|
+
ListMetricStreamsInput.struct_class = Types::ListMetricStreamsInput
|
617
|
+
|
618
|
+
ListMetricStreamsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
619
|
+
ListMetricStreamsOutput.add_member(:entries, Shapes::ShapeRef.new(shape: MetricStreamEntries, location_name: "Entries"))
|
620
|
+
ListMetricStreamsOutput.struct_class = Types::ListMetricStreamsOutput
|
621
|
+
|
567
622
|
ListMetricsInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, location_name: "Namespace"))
|
568
623
|
ListMetricsInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, location_name: "MetricName"))
|
569
624
|
ListMetricsInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: DimensionFilters, location_name: "Dimensions"))
|
@@ -662,6 +717,24 @@ module Aws::CloudWatch
|
|
662
717
|
MetricStat.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit"))
|
663
718
|
MetricStat.struct_class = Types::MetricStat
|
664
719
|
|
720
|
+
MetricStreamEntries.member = Shapes::ShapeRef.new(shape: MetricStreamEntry)
|
721
|
+
|
722
|
+
MetricStreamEntry.add_member(:arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "Arn"))
|
723
|
+
MetricStreamEntry.add_member(:creation_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationDate"))
|
724
|
+
MetricStreamEntry.add_member(:last_update_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastUpdateDate"))
|
725
|
+
MetricStreamEntry.add_member(:name, Shapes::ShapeRef.new(shape: MetricStreamName, location_name: "Name"))
|
726
|
+
MetricStreamEntry.add_member(:firehose_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "FirehoseArn"))
|
727
|
+
MetricStreamEntry.add_member(:state, Shapes::ShapeRef.new(shape: MetricStreamState, location_name: "State"))
|
728
|
+
MetricStreamEntry.add_member(:output_format, Shapes::ShapeRef.new(shape: MetricStreamOutputFormat, location_name: "OutputFormat"))
|
729
|
+
MetricStreamEntry.struct_class = Types::MetricStreamEntry
|
730
|
+
|
731
|
+
MetricStreamFilter.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, location_name: "Namespace"))
|
732
|
+
MetricStreamFilter.struct_class = Types::MetricStreamFilter
|
733
|
+
|
734
|
+
MetricStreamFilters.member = Shapes::ShapeRef.new(shape: MetricStreamFilter)
|
735
|
+
|
736
|
+
MetricStreamNames.member = Shapes::ShapeRef.new(shape: MetricStreamName)
|
737
|
+
|
665
738
|
Metrics.member = Shapes::ShapeRef.new(shape: Metric)
|
666
739
|
|
667
740
|
MissingRequiredParameterException.add_member(:message, Shapes::ShapeRef.new(shape: AwsQueryErrorMessage, location_name: "message"))
|
@@ -735,6 +808,18 @@ module Aws::CloudWatch
|
|
735
808
|
PutMetricDataInput.add_member(:metric_data, Shapes::ShapeRef.new(shape: MetricData, required: true, location_name: "MetricData"))
|
736
809
|
PutMetricDataInput.struct_class = Types::PutMetricDataInput
|
737
810
|
|
811
|
+
PutMetricStreamInput.add_member(:name, Shapes::ShapeRef.new(shape: MetricStreamName, required: true, location_name: "Name"))
|
812
|
+
PutMetricStreamInput.add_member(:include_filters, Shapes::ShapeRef.new(shape: MetricStreamFilters, location_name: "IncludeFilters"))
|
813
|
+
PutMetricStreamInput.add_member(:exclude_filters, Shapes::ShapeRef.new(shape: MetricStreamFilters, location_name: "ExcludeFilters"))
|
814
|
+
PutMetricStreamInput.add_member(:firehose_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "FirehoseArn"))
|
815
|
+
PutMetricStreamInput.add_member(:role_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "RoleArn"))
|
816
|
+
PutMetricStreamInput.add_member(:output_format, Shapes::ShapeRef.new(shape: MetricStreamOutputFormat, required: true, location_name: "OutputFormat"))
|
817
|
+
PutMetricStreamInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
818
|
+
PutMetricStreamInput.struct_class = Types::PutMetricStreamInput
|
819
|
+
|
820
|
+
PutMetricStreamOutput.add_member(:arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "Arn"))
|
821
|
+
PutMetricStreamOutput.struct_class = Types::PutMetricStreamOutput
|
822
|
+
|
738
823
|
Range.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "StartTime"))
|
739
824
|
Range.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "EndTime"))
|
740
825
|
Range.struct_class = Types::Range
|
@@ -754,6 +839,11 @@ module Aws::CloudWatch
|
|
754
839
|
SetAlarmStateInput.add_member(:state_reason_data, Shapes::ShapeRef.new(shape: StateReasonData, location_name: "StateReasonData"))
|
755
840
|
SetAlarmStateInput.struct_class = Types::SetAlarmStateInput
|
756
841
|
|
842
|
+
StartMetricStreamsInput.add_member(:names, Shapes::ShapeRef.new(shape: MetricStreamNames, required: true, location_name: "Names"))
|
843
|
+
StartMetricStreamsInput.struct_class = Types::StartMetricStreamsInput
|
844
|
+
|
845
|
+
StartMetricStreamsOutput.struct_class = Types::StartMetricStreamsOutput
|
846
|
+
|
757
847
|
StatisticSet.add_member(:sample_count, Shapes::ShapeRef.new(shape: DatapointValue, required: true, location_name: "SampleCount"))
|
758
848
|
StatisticSet.add_member(:sum, Shapes::ShapeRef.new(shape: DatapointValue, required: true, location_name: "Sum"))
|
759
849
|
StatisticSet.add_member(:minimum, Shapes::ShapeRef.new(shape: DatapointValue, required: true, location_name: "Minimum"))
|
@@ -762,6 +852,11 @@ module Aws::CloudWatch
|
|
762
852
|
|
763
853
|
Statistics.member = Shapes::ShapeRef.new(shape: Statistic)
|
764
854
|
|
855
|
+
StopMetricStreamsInput.add_member(:names, Shapes::ShapeRef.new(shape: MetricStreamNames, required: true, location_name: "Names"))
|
856
|
+
StopMetricStreamsInput.struct_class = Types::StopMetricStreamsInput
|
857
|
+
|
858
|
+
StopMetricStreamsOutput.struct_class = Types::StopMetricStreamsOutput
|
859
|
+
|
765
860
|
Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
|
766
861
|
Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "Value"))
|
767
862
|
Tag.struct_class = Types::Tag
|
@@ -846,6 +941,17 @@ module Aws::CloudWatch
|
|
846
941
|
o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
|
847
942
|
end)
|
848
943
|
|
944
|
+
api.add_operation(:delete_metric_stream, Seahorse::Model::Operation.new.tap do |o|
|
945
|
+
o.name = "DeleteMetricStream"
|
946
|
+
o.http_method = "POST"
|
947
|
+
o.http_request_uri = "/"
|
948
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteMetricStreamInput)
|
949
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteMetricStreamOutput)
|
950
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
|
951
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
952
|
+
o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
|
953
|
+
end)
|
954
|
+
|
849
955
|
api.add_operation(:describe_alarm_history, Seahorse::Model::Operation.new.tap do |o|
|
850
956
|
o.name = "DescribeAlarmHistory"
|
851
957
|
o.http_method = "POST"
|
@@ -996,6 +1102,19 @@ module Aws::CloudWatch
|
|
996
1102
|
o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
|
997
1103
|
end)
|
998
1104
|
|
1105
|
+
api.add_operation(:get_metric_stream, Seahorse::Model::Operation.new.tap do |o|
|
1106
|
+
o.name = "GetMetricStream"
|
1107
|
+
o.http_method = "POST"
|
1108
|
+
o.http_request_uri = "/"
|
1109
|
+
o.input = Shapes::ShapeRef.new(shape: GetMetricStreamInput)
|
1110
|
+
o.output = Shapes::ShapeRef.new(shape: GetMetricStreamOutput)
|
1111
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1112
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
|
1113
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1114
|
+
o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
|
1115
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
|
1116
|
+
end)
|
1117
|
+
|
999
1118
|
api.add_operation(:get_metric_widget_image, Seahorse::Model::Operation.new.tap do |o|
|
1000
1119
|
o.name = "GetMetricWidgetImage"
|
1001
1120
|
o.http_method = "POST"
|
@@ -1019,6 +1138,24 @@ module Aws::CloudWatch
|
|
1019
1138
|
)
|
1020
1139
|
end)
|
1021
1140
|
|
1141
|
+
api.add_operation(:list_metric_streams, Seahorse::Model::Operation.new.tap do |o|
|
1142
|
+
o.name = "ListMetricStreams"
|
1143
|
+
o.http_method = "POST"
|
1144
|
+
o.http_request_uri = "/"
|
1145
|
+
o.input = Shapes::ShapeRef.new(shape: ListMetricStreamsInput)
|
1146
|
+
o.output = Shapes::ShapeRef.new(shape: ListMetricStreamsOutput)
|
1147
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
|
1148
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
|
1149
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1150
|
+
o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
|
1151
|
+
o[:pager] = Aws::Pager.new(
|
1152
|
+
limit_key: "max_results",
|
1153
|
+
tokens: {
|
1154
|
+
"next_token" => "next_token"
|
1155
|
+
}
|
1156
|
+
)
|
1157
|
+
end)
|
1158
|
+
|
1022
1159
|
api.add_operation(:list_metrics, Seahorse::Model::Operation.new.tap do |o|
|
1023
1160
|
o.name = "ListMetrics"
|
1024
1161
|
o.http_method = "POST"
|
@@ -1108,6 +1245,19 @@ module Aws::CloudWatch
|
|
1108
1245
|
o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
|
1109
1246
|
end)
|
1110
1247
|
|
1248
|
+
api.add_operation(:put_metric_stream, Seahorse::Model::Operation.new.tap do |o|
|
1249
|
+
o.name = "PutMetricStream"
|
1250
|
+
o.http_method = "POST"
|
1251
|
+
o.http_request_uri = "/"
|
1252
|
+
o.input = Shapes::ShapeRef.new(shape: PutMetricStreamInput)
|
1253
|
+
o.output = Shapes::ShapeRef.new(shape: PutMetricStreamOutput)
|
1254
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
1255
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
|
1256
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1257
|
+
o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
|
1258
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
|
1259
|
+
end)
|
1260
|
+
|
1111
1261
|
api.add_operation(:set_alarm_state, Seahorse::Model::Operation.new.tap do |o|
|
1112
1262
|
o.name = "SetAlarmState"
|
1113
1263
|
o.http_method = "POST"
|
@@ -1118,6 +1268,28 @@ module Aws::CloudWatch
|
|
1118
1268
|
o.errors << Shapes::ShapeRef.new(shape: InvalidFormatFault)
|
1119
1269
|
end)
|
1120
1270
|
|
1271
|
+
api.add_operation(:start_metric_streams, Seahorse::Model::Operation.new.tap do |o|
|
1272
|
+
o.name = "StartMetricStreams"
|
1273
|
+
o.http_method = "POST"
|
1274
|
+
o.http_request_uri = "/"
|
1275
|
+
o.input = Shapes::ShapeRef.new(shape: StartMetricStreamsInput)
|
1276
|
+
o.output = Shapes::ShapeRef.new(shape: StartMetricStreamsOutput)
|
1277
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
|
1278
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1279
|
+
o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
|
1280
|
+
end)
|
1281
|
+
|
1282
|
+
api.add_operation(:stop_metric_streams, Seahorse::Model::Operation.new.tap do |o|
|
1283
|
+
o.name = "StopMetricStreams"
|
1284
|
+
o.http_method = "POST"
|
1285
|
+
o.http_request_uri = "/"
|
1286
|
+
o.input = Shapes::ShapeRef.new(shape: StopMetricStreamsInput)
|
1287
|
+
o.output = Shapes::ShapeRef.new(shape: StopMetricStreamsOutput)
|
1288
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
|
1289
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1290
|
+
o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
|
1291
|
+
end)
|
1292
|
+
|
1121
1293
|
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
1122
1294
|
o.name = "TagResource"
|
1123
1295
|
o.http_method = "POST"
|
@@ -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
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
# WARNING ABOUT GENERATED CODE
|
3
3
|
#
|
4
4
|
# This file is generated. See the contributing for info on making contributions:
|
5
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
5
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
6
6
|
#
|
7
7
|
# WARNING ABOUT GENERATED CODE
|
8
8
|
|
@@ -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
|
|
@@ -388,6 +388,8 @@ module Aws::CloudWatch
|
|
388
388
|
# `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
|
389
389
|
# \|
|
390
390
|
# `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
|
391
|
+
# \|
|
392
|
+
# `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0`
|
391
393
|
# @option options [Array<String>] :alarm_actions
|
392
394
|
# The actions to execute when this alarm transitions to the `ALARM`
|
393
395
|
# state from any other state. Each action is specified as an Amazon
|
@@ -399,7 +401,7 @@ module Aws::CloudWatch
|
|
399
401
|
# `arn:aws:automate:region:ec2:reboot` \|
|
400
402
|
# `arn:aws:sns:region:account-id:sns-topic-name ` \|
|
401
403
|
# `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
402
|
-
# `
|
404
|
+
# ` \| `arn:aws:ssm:region:account-id:opsitem:severity `
|
403
405
|
#
|
404
406
|
# Valid Values (for use with IAM roles):
|
405
407
|
# `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0`
|
@@ -572,6 +574,15 @@ module Aws::CloudWatch
|
|
572
574
|
# Tags can help you organize and categorize your resources. You can also
|
573
575
|
# use them to scope user permissions by granting a user permission to
|
574
576
|
# access or change only resources with certain tag values.
|
577
|
+
#
|
578
|
+
# If you are using this operation to update an existing alarm, any tags
|
579
|
+
# you specify in this parameter are ignored. To change the tags of an
|
580
|
+
# existing alarm, use [TagResource][1] or [UntagResource][2].
|
581
|
+
#
|
582
|
+
#
|
583
|
+
#
|
584
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html
|
585
|
+
# [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_UntagResource.html
|
575
586
|
# @option options [String] :threshold_metric_id
|
576
587
|
# If this is an alarm based on an anomaly detection model, make this
|
577
588
|
# value match the ID of the `ANOMALY_DETECTION_BAND` function.
|
@@ -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
|
|
@@ -486,6 +486,29 @@ module Aws::CloudWatch
|
|
486
486
|
include Aws::Structure
|
487
487
|
end
|
488
488
|
|
489
|
+
# @note When making an API call, you may pass DeleteMetricStreamInput
|
490
|
+
# data as a hash:
|
491
|
+
#
|
492
|
+
# {
|
493
|
+
# name: "MetricStreamName", # required
|
494
|
+
# }
|
495
|
+
#
|
496
|
+
# @!attribute [rw] name
|
497
|
+
# The name of the metric stream to delete.
|
498
|
+
# @return [String]
|
499
|
+
#
|
500
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteMetricStreamInput AWS API Documentation
|
501
|
+
#
|
502
|
+
class DeleteMetricStreamInput < Struct.new(
|
503
|
+
:name)
|
504
|
+
SENSITIVE = []
|
505
|
+
include Aws::Structure
|
506
|
+
end
|
507
|
+
|
508
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteMetricStreamOutput AWS API Documentation
|
509
|
+
#
|
510
|
+
class DeleteMetricStreamOutput < Aws::EmptyStructure; end
|
511
|
+
|
489
512
|
# @note When making an API call, you may pass DescribeAlarmHistoryInput
|
490
513
|
# data as a hash:
|
491
514
|
#
|
@@ -1297,6 +1320,9 @@ module Aws::CloudWatch
|
|
1297
1320
|
# next_token: "NextToken",
|
1298
1321
|
# scan_by: "TimestampDescending", # accepts TimestampDescending, TimestampAscending
|
1299
1322
|
# max_datapoints: 1,
|
1323
|
+
# label_options: {
|
1324
|
+
# timezone: "GetMetricDataLabelTimezone",
|
1325
|
+
# },
|
1300
1326
|
# }
|
1301
1327
|
#
|
1302
1328
|
# @!attribute [rw] metric_data_queries
|
@@ -1374,6 +1400,12 @@ module Aws::CloudWatch
|
|
1374
1400
|
# paginating. If you omit this, the default of 100,800 is used.
|
1375
1401
|
# @return [Integer]
|
1376
1402
|
#
|
1403
|
+
# @!attribute [rw] label_options
|
1404
|
+
# This structure includes the `Timezone` parameter, which you can use
|
1405
|
+
# to specify your time zone so that the labels of returned data
|
1406
|
+
# display the correct time for your time zone.
|
1407
|
+
# @return [Types::LabelOptions]
|
1408
|
+
#
|
1377
1409
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricDataInput AWS API Documentation
|
1378
1410
|
#
|
1379
1411
|
class GetMetricDataInput < Struct.new(
|
@@ -1382,7 +1414,8 @@ module Aws::CloudWatch
|
|
1382
1414
|
:end_time,
|
1383
1415
|
:next_token,
|
1384
1416
|
:scan_by,
|
1385
|
-
:max_datapoints
|
1417
|
+
:max_datapoints,
|
1418
|
+
:label_options)
|
1386
1419
|
SENSITIVE = []
|
1387
1420
|
include Aws::Structure
|
1388
1421
|
end
|
@@ -1586,6 +1619,89 @@ module Aws::CloudWatch
|
|
1586
1619
|
include Aws::Structure
|
1587
1620
|
end
|
1588
1621
|
|
1622
|
+
# @note When making an API call, you may pass GetMetricStreamInput
|
1623
|
+
# data as a hash:
|
1624
|
+
#
|
1625
|
+
# {
|
1626
|
+
# name: "MetricStreamName", # required
|
1627
|
+
# }
|
1628
|
+
#
|
1629
|
+
# @!attribute [rw] name
|
1630
|
+
# The name of the metric stream to retrieve information about.
|
1631
|
+
# @return [String]
|
1632
|
+
#
|
1633
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStreamInput AWS API Documentation
|
1634
|
+
#
|
1635
|
+
class GetMetricStreamInput < Struct.new(
|
1636
|
+
:name)
|
1637
|
+
SENSITIVE = []
|
1638
|
+
include Aws::Structure
|
1639
|
+
end
|
1640
|
+
|
1641
|
+
# @!attribute [rw] arn
|
1642
|
+
# The ARN of the metric stream.
|
1643
|
+
# @return [String]
|
1644
|
+
#
|
1645
|
+
# @!attribute [rw] name
|
1646
|
+
# The name of the metric stream.
|
1647
|
+
# @return [String]
|
1648
|
+
#
|
1649
|
+
# @!attribute [rw] include_filters
|
1650
|
+
# If this array of metric namespaces is present, then these namespaces
|
1651
|
+
# are the only metric namespaces that are streamed by this metric
|
1652
|
+
# stream.
|
1653
|
+
# @return [Array<Types::MetricStreamFilter>]
|
1654
|
+
#
|
1655
|
+
# @!attribute [rw] exclude_filters
|
1656
|
+
# If this array of metric namespaces is present, then these namespaces
|
1657
|
+
# are the only metric namespaces that are not streamed by this metric
|
1658
|
+
# stream. In this case, all other metric namespaces in the account are
|
1659
|
+
# streamed by this metric stream.
|
1660
|
+
# @return [Array<Types::MetricStreamFilter>]
|
1661
|
+
#
|
1662
|
+
# @!attribute [rw] firehose_arn
|
1663
|
+
# The ARN of the Amazon Kinesis Firehose delivery stream that is used
|
1664
|
+
# by this metric stream.
|
1665
|
+
# @return [String]
|
1666
|
+
#
|
1667
|
+
# @!attribute [rw] role_arn
|
1668
|
+
# The ARN of the IAM role that is used by this metric stream.
|
1669
|
+
# @return [String]
|
1670
|
+
#
|
1671
|
+
# @!attribute [rw] state
|
1672
|
+
# The state of the metric stream. The possible values are `running`
|
1673
|
+
# and `stopped`.
|
1674
|
+
# @return [String]
|
1675
|
+
#
|
1676
|
+
# @!attribute [rw] creation_date
|
1677
|
+
# The date that the metric stream was created.
|
1678
|
+
# @return [Time]
|
1679
|
+
#
|
1680
|
+
# @!attribute [rw] last_update_date
|
1681
|
+
# The date of the most recent update to the metric stream's
|
1682
|
+
# configuration.
|
1683
|
+
# @return [Time]
|
1684
|
+
#
|
1685
|
+
# @!attribute [rw] output_format
|
1686
|
+
# @return [String]
|
1687
|
+
#
|
1688
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStreamOutput AWS API Documentation
|
1689
|
+
#
|
1690
|
+
class GetMetricStreamOutput < Struct.new(
|
1691
|
+
:arn,
|
1692
|
+
:name,
|
1693
|
+
:include_filters,
|
1694
|
+
:exclude_filters,
|
1695
|
+
:firehose_arn,
|
1696
|
+
:role_arn,
|
1697
|
+
:state,
|
1698
|
+
:creation_date,
|
1699
|
+
:last_update_date,
|
1700
|
+
:output_format)
|
1701
|
+
SENSITIVE = []
|
1702
|
+
include Aws::Structure
|
1703
|
+
end
|
1704
|
+
|
1589
1705
|
# @note When making an API call, you may pass GetMetricWidgetImageInput
|
1590
1706
|
# data as a hash:
|
1591
1707
|
#
|
@@ -1926,6 +2042,42 @@ module Aws::CloudWatch
|
|
1926
2042
|
include Aws::Structure
|
1927
2043
|
end
|
1928
2044
|
|
2045
|
+
# This structure includes the `Timezone` parameter, which you can use to
|
2046
|
+
# specify your time zone so that the labels that are associated with
|
2047
|
+
# returned metrics display the correct time for your time zone.
|
2048
|
+
#
|
2049
|
+
# The `Timezone` value affects a label only if you have a time-based
|
2050
|
+
# dynamic expression in the label. For more information about dynamic
|
2051
|
+
# expressions in labels, see [Using Dynamic Labels][1].
|
2052
|
+
#
|
2053
|
+
#
|
2054
|
+
#
|
2055
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html
|
2056
|
+
#
|
2057
|
+
# @note When making an API call, you may pass LabelOptions
|
2058
|
+
# data as a hash:
|
2059
|
+
#
|
2060
|
+
# {
|
2061
|
+
# timezone: "GetMetricDataLabelTimezone",
|
2062
|
+
# }
|
2063
|
+
#
|
2064
|
+
# @!attribute [rw] timezone
|
2065
|
+
# The time zone to use for metric data return in this operation. The
|
2066
|
+
# format is `+` or `-` followed by four digits. The first two digits
|
2067
|
+
# indicate the number of hours ahead or behind of UTC, and the final
|
2068
|
+
# two digits are the number of minutes. For example, +0130 indicates a
|
2069
|
+
# time zone that is 1 hour and 30 minutes ahead of UTC. The default is
|
2070
|
+
# +0000.
|
2071
|
+
# @return [String]
|
2072
|
+
#
|
2073
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/LabelOptions AWS API Documentation
|
2074
|
+
#
|
2075
|
+
class LabelOptions < Struct.new(
|
2076
|
+
:timezone)
|
2077
|
+
SENSITIVE = []
|
2078
|
+
include Aws::Structure
|
2079
|
+
end
|
2080
|
+
|
1929
2081
|
# The operation exceeded one or more limits.
|
1930
2082
|
#
|
1931
2083
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/LimitExceededException AWS API Documentation
|
@@ -1992,6 +2144,51 @@ module Aws::CloudWatch
|
|
1992
2144
|
include Aws::Structure
|
1993
2145
|
end
|
1994
2146
|
|
2147
|
+
# @note When making an API call, you may pass ListMetricStreamsInput
|
2148
|
+
# data as a hash:
|
2149
|
+
#
|
2150
|
+
# {
|
2151
|
+
# next_token: "NextToken",
|
2152
|
+
# max_results: 1,
|
2153
|
+
# }
|
2154
|
+
#
|
2155
|
+
# @!attribute [rw] next_token
|
2156
|
+
# Include this value, if it was returned by the previous call, to get
|
2157
|
+
# the next set of metric streams.
|
2158
|
+
# @return [String]
|
2159
|
+
#
|
2160
|
+
# @!attribute [rw] max_results
|
2161
|
+
# The maximum number of results to return in one operation.
|
2162
|
+
# @return [Integer]
|
2163
|
+
#
|
2164
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetricStreamsInput AWS API Documentation
|
2165
|
+
#
|
2166
|
+
class ListMetricStreamsInput < Struct.new(
|
2167
|
+
:next_token,
|
2168
|
+
:max_results)
|
2169
|
+
SENSITIVE = []
|
2170
|
+
include Aws::Structure
|
2171
|
+
end
|
2172
|
+
|
2173
|
+
# @!attribute [rw] next_token
|
2174
|
+
# The token that marks the start of the next batch of returned
|
2175
|
+
# results. You can use this token in a subsequent operation to get the
|
2176
|
+
# next batch of results.
|
2177
|
+
# @return [String]
|
2178
|
+
#
|
2179
|
+
# @!attribute [rw] entries
|
2180
|
+
# The array of metric stream information.
|
2181
|
+
# @return [Array<Types::MetricStreamEntry>]
|
2182
|
+
#
|
2183
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetricStreamsOutput AWS API Documentation
|
2184
|
+
#
|
2185
|
+
class ListMetricStreamsOutput < Struct.new(
|
2186
|
+
:next_token,
|
2187
|
+
:entries)
|
2188
|
+
SENSITIVE = []
|
2189
|
+
include Aws::Structure
|
2190
|
+
end
|
2191
|
+
|
1995
2192
|
# @note When making an API call, you may pass ListMetricsInput
|
1996
2193
|
# data as a hash:
|
1997
2194
|
#
|
@@ -2445,6 +2642,13 @@ module Aws::CloudWatch
|
|
2445
2642
|
# the value represents. If the metric or expression is shown in a
|
2446
2643
|
# CloudWatch dashboard widget, the label is shown. If Label is
|
2447
2644
|
# omitted, CloudWatch generates a default.
|
2645
|
+
#
|
2646
|
+
# You can put dynamic expressions into a label, so that it is more
|
2647
|
+
# descriptive. For more information, see [Using Dynamic Labels][1].
|
2648
|
+
#
|
2649
|
+
#
|
2650
|
+
#
|
2651
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html
|
2448
2652
|
# @return [String]
|
2449
2653
|
#
|
2450
2654
|
# @!attribute [rw] return_data
|
@@ -2736,6 +2940,77 @@ module Aws::CloudWatch
|
|
2736
2940
|
include Aws::Structure
|
2737
2941
|
end
|
2738
2942
|
|
2943
|
+
# This structure contains the configuration information about one metric
|
2944
|
+
# stream.
|
2945
|
+
#
|
2946
|
+
# @!attribute [rw] arn
|
2947
|
+
# The ARN of the metric stream.
|
2948
|
+
# @return [String]
|
2949
|
+
#
|
2950
|
+
# @!attribute [rw] creation_date
|
2951
|
+
# The date that the metric stream was originally created.
|
2952
|
+
# @return [Time]
|
2953
|
+
#
|
2954
|
+
# @!attribute [rw] last_update_date
|
2955
|
+
# The date that the configuration of this metric stream was most
|
2956
|
+
# recently updated.
|
2957
|
+
# @return [Time]
|
2958
|
+
#
|
2959
|
+
# @!attribute [rw] name
|
2960
|
+
# The name of the metric stream.
|
2961
|
+
# @return [String]
|
2962
|
+
#
|
2963
|
+
# @!attribute [rw] firehose_arn
|
2964
|
+
# The ARN of the Kinesis Firehose devlivery stream that is used for
|
2965
|
+
# this metric stream.
|
2966
|
+
# @return [String]
|
2967
|
+
#
|
2968
|
+
# @!attribute [rw] state
|
2969
|
+
# The current state of this stream. Valid values are `running` and
|
2970
|
+
# `stopped`.
|
2971
|
+
# @return [String]
|
2972
|
+
#
|
2973
|
+
# @!attribute [rw] output_format
|
2974
|
+
# The output format of this metric stream. Valid values are `json` and
|
2975
|
+
# `opentelemetry0.7`.
|
2976
|
+
# @return [String]
|
2977
|
+
#
|
2978
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/MetricStreamEntry AWS API Documentation
|
2979
|
+
#
|
2980
|
+
class MetricStreamEntry < Struct.new(
|
2981
|
+
:arn,
|
2982
|
+
:creation_date,
|
2983
|
+
:last_update_date,
|
2984
|
+
:name,
|
2985
|
+
:firehose_arn,
|
2986
|
+
:state,
|
2987
|
+
:output_format)
|
2988
|
+
SENSITIVE = []
|
2989
|
+
include Aws::Structure
|
2990
|
+
end
|
2991
|
+
|
2992
|
+
# This structure contains the name of one of the metric namespaces that
|
2993
|
+
# is listed in a filter of a metric stream.
|
2994
|
+
#
|
2995
|
+
# @note When making an API call, you may pass MetricStreamFilter
|
2996
|
+
# data as a hash:
|
2997
|
+
#
|
2998
|
+
# {
|
2999
|
+
# namespace: "Namespace",
|
3000
|
+
# }
|
3001
|
+
#
|
3002
|
+
# @!attribute [rw] namespace
|
3003
|
+
# The name of the metric namespace in the filter.
|
3004
|
+
# @return [String]
|
3005
|
+
#
|
3006
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/MetricStreamFilter AWS API Documentation
|
3007
|
+
#
|
3008
|
+
class MetricStreamFilter < Struct.new(
|
3009
|
+
:namespace)
|
3010
|
+
SENSITIVE = []
|
3011
|
+
include Aws::Structure
|
3012
|
+
end
|
3013
|
+
|
2739
3014
|
# An input parameter that is required is missing.
|
2740
3015
|
#
|
2741
3016
|
# @!attribute [rw] message
|
@@ -2876,7 +3151,8 @@ module Aws::CloudWatch
|
|
2876
3151
|
# state from any other state. Each action is specified as an Amazon
|
2877
3152
|
# Resource Name (ARN).
|
2878
3153
|
#
|
2879
|
-
# Valid Values: `arn:aws:sns:region:account-id:sns-topic-name `
|
3154
|
+
# Valid Values: `arn:aws:sns:region:account-id:sns-topic-name ` \|
|
3155
|
+
# `arn:aws:ssm:region:account-id:opsitem:severity `
|
2880
3156
|
# @return [Array<String>]
|
2881
3157
|
#
|
2882
3158
|
# @!attribute [rw] alarm_description
|
@@ -3208,6 +3484,8 @@ module Aws::CloudWatch
|
|
3208
3484
|
# `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
|
3209
3485
|
# \|
|
3210
3486
|
# `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
|
3487
|
+
# \|
|
3488
|
+
# `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0`
|
3211
3489
|
# @return [Array<String>]
|
3212
3490
|
#
|
3213
3491
|
# @!attribute [rw] alarm_actions
|
@@ -3221,7 +3499,7 @@ module Aws::CloudWatch
|
|
3221
3499
|
# `arn:aws:automate:region:ec2:reboot` \|
|
3222
3500
|
# `arn:aws:sns:region:account-id:sns-topic-name ` \|
|
3223
3501
|
# `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
3224
|
-
# `
|
3502
|
+
# ` \| `arn:aws:ssm:region:account-id:opsitem:severity `
|
3225
3503
|
#
|
3226
3504
|
# Valid Values (for use with IAM roles):
|
3227
3505
|
# `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0`
|
@@ -3441,6 +3719,15 @@ module Aws::CloudWatch
|
|
3441
3719
|
# also use them to scope user permissions by granting a user
|
3442
3720
|
# permission to access or change only resources with certain tag
|
3443
3721
|
# values.
|
3722
|
+
#
|
3723
|
+
# If you are using this operation to update an existing alarm, any
|
3724
|
+
# tags you specify in this parameter are ignored. To change the tags
|
3725
|
+
# of an existing alarm, use [TagResource][1] or [UntagResource][2].
|
3726
|
+
#
|
3727
|
+
#
|
3728
|
+
#
|
3729
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html
|
3730
|
+
# [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_UntagResource.html
|
3444
3731
|
# @return [Array<Types::Tag>]
|
3445
3732
|
#
|
3446
3733
|
# @!attribute [rw] threshold_metric_id
|
@@ -3534,6 +3821,123 @@ module Aws::CloudWatch
|
|
3534
3821
|
include Aws::Structure
|
3535
3822
|
end
|
3536
3823
|
|
3824
|
+
# @note When making an API call, you may pass PutMetricStreamInput
|
3825
|
+
# data as a hash:
|
3826
|
+
#
|
3827
|
+
# {
|
3828
|
+
# name: "MetricStreamName", # required
|
3829
|
+
# include_filters: [
|
3830
|
+
# {
|
3831
|
+
# namespace: "Namespace",
|
3832
|
+
# },
|
3833
|
+
# ],
|
3834
|
+
# exclude_filters: [
|
3835
|
+
# {
|
3836
|
+
# namespace: "Namespace",
|
3837
|
+
# },
|
3838
|
+
# ],
|
3839
|
+
# firehose_arn: "AmazonResourceName", # required
|
3840
|
+
# role_arn: "AmazonResourceName", # required
|
3841
|
+
# output_format: "json", # required, accepts json, opentelemetry0.7
|
3842
|
+
# tags: [
|
3843
|
+
# {
|
3844
|
+
# key: "TagKey", # required
|
3845
|
+
# value: "TagValue", # required
|
3846
|
+
# },
|
3847
|
+
# ],
|
3848
|
+
# }
|
3849
|
+
#
|
3850
|
+
# @!attribute [rw] name
|
3851
|
+
# If you are creating a new metric stream, this is the name for the
|
3852
|
+
# new stream. The name must be different than the names of other
|
3853
|
+
# metric streams in this account and Region.
|
3854
|
+
#
|
3855
|
+
# If you are updating a metric stream, specify the name of that stream
|
3856
|
+
# here.
|
3857
|
+
#
|
3858
|
+
# Valid characters are A-Z, a-z, 0-9, "-" and "\_".
|
3859
|
+
# @return [String]
|
3860
|
+
#
|
3861
|
+
# @!attribute [rw] include_filters
|
3862
|
+
# If you specify this parameter, the stream sends only the metrics
|
3863
|
+
# from the metric namespaces that you specify here.
|
3864
|
+
#
|
3865
|
+
# You cannot include `IncludeFilters` and `ExcludeFilters` in the same
|
3866
|
+
# operation.
|
3867
|
+
# @return [Array<Types::MetricStreamFilter>]
|
3868
|
+
#
|
3869
|
+
# @!attribute [rw] exclude_filters
|
3870
|
+
# If you specify this parameter, the stream sends metrics from all
|
3871
|
+
# metric namespaces except for the namespaces that you specify here.
|
3872
|
+
#
|
3873
|
+
# You cannot include `ExcludeFilters` and `IncludeFilters` in the same
|
3874
|
+
# operation.
|
3875
|
+
# @return [Array<Types::MetricStreamFilter>]
|
3876
|
+
#
|
3877
|
+
# @!attribute [rw] firehose_arn
|
3878
|
+
# The ARN of the Amazon Kinesis Firehose delivery stream to use for
|
3879
|
+
# this metric stream. This Amazon Kinesis Firehose delivery stream
|
3880
|
+
# must already exist and must be in the same account as the metric
|
3881
|
+
# stream.
|
3882
|
+
# @return [String]
|
3883
|
+
#
|
3884
|
+
# @!attribute [rw] role_arn
|
3885
|
+
# The ARN of an IAM role that this metric stream will use to access
|
3886
|
+
# Amazon Kinesis Firehose resources. This IAM role must already exist
|
3887
|
+
# and must be in the same account as the metric stream. This IAM role
|
3888
|
+
# must include the following permissions:
|
3889
|
+
#
|
3890
|
+
# * firehose:PutRecord
|
3891
|
+
#
|
3892
|
+
# * firehose:PutRecordBatch
|
3893
|
+
# @return [String]
|
3894
|
+
#
|
3895
|
+
# @!attribute [rw] output_format
|
3896
|
+
# The output format for the stream. Valid values are `json` and
|
3897
|
+
# `opentelemetry0.7`. For more information about metric stream output
|
3898
|
+
# formats, see [ Metric streams output formats][1].
|
3899
|
+
#
|
3900
|
+
#
|
3901
|
+
#
|
3902
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats.html
|
3903
|
+
# @return [String]
|
3904
|
+
#
|
3905
|
+
# @!attribute [rw] tags
|
3906
|
+
# A list of key-value pairs to associate with the metric stream. You
|
3907
|
+
# can associate as many as 50 tags with a metric stream.
|
3908
|
+
#
|
3909
|
+
# Tags can help you organize and categorize your resources. You can
|
3910
|
+
# also use them to scope user permissions by granting a user
|
3911
|
+
# permission to access or change only resources with certain tag
|
3912
|
+
# values.
|
3913
|
+
# @return [Array<Types::Tag>]
|
3914
|
+
#
|
3915
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricStreamInput AWS API Documentation
|
3916
|
+
#
|
3917
|
+
class PutMetricStreamInput < Struct.new(
|
3918
|
+
:name,
|
3919
|
+
:include_filters,
|
3920
|
+
:exclude_filters,
|
3921
|
+
:firehose_arn,
|
3922
|
+
:role_arn,
|
3923
|
+
:output_format,
|
3924
|
+
:tags)
|
3925
|
+
SENSITIVE = []
|
3926
|
+
include Aws::Structure
|
3927
|
+
end
|
3928
|
+
|
3929
|
+
# @!attribute [rw] arn
|
3930
|
+
# The ARN of the metric stream.
|
3931
|
+
# @return [String]
|
3932
|
+
#
|
3933
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricStreamOutput AWS API Documentation
|
3934
|
+
#
|
3935
|
+
class PutMetricStreamOutput < Struct.new(
|
3936
|
+
:arn)
|
3937
|
+
SENSITIVE = []
|
3938
|
+
include Aws::Structure
|
3939
|
+
end
|
3940
|
+
|
3537
3941
|
# Specifies one range of days or times to exclude from use for training
|
3538
3942
|
# an anomaly detection model.
|
3539
3943
|
#
|
@@ -3638,6 +4042,34 @@ module Aws::CloudWatch
|
|
3638
4042
|
include Aws::Structure
|
3639
4043
|
end
|
3640
4044
|
|
4045
|
+
# @note When making an API call, you may pass StartMetricStreamsInput
|
4046
|
+
# data as a hash:
|
4047
|
+
#
|
4048
|
+
# {
|
4049
|
+
# names: ["MetricStreamName"], # required
|
4050
|
+
# }
|
4051
|
+
#
|
4052
|
+
# @!attribute [rw] names
|
4053
|
+
# The array of the names of metric streams to start streaming.
|
4054
|
+
#
|
4055
|
+
# This is an "all or nothing" operation. If you do not have
|
4056
|
+
# permission to access all of the metric streams that you list here,
|
4057
|
+
# then none of the streams that you list in the operation will start
|
4058
|
+
# streaming.
|
4059
|
+
# @return [Array<String>]
|
4060
|
+
#
|
4061
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StartMetricStreamsInput AWS API Documentation
|
4062
|
+
#
|
4063
|
+
class StartMetricStreamsInput < Struct.new(
|
4064
|
+
:names)
|
4065
|
+
SENSITIVE = []
|
4066
|
+
include Aws::Structure
|
4067
|
+
end
|
4068
|
+
|
4069
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StartMetricStreamsOutput AWS API Documentation
|
4070
|
+
#
|
4071
|
+
class StartMetricStreamsOutput < Aws::EmptyStructure; end
|
4072
|
+
|
3641
4073
|
# Represents a set of statistics that describes a specific metric.
|
3642
4074
|
#
|
3643
4075
|
# @note When making an API call, you may pass StatisticSet
|
@@ -3677,6 +4109,34 @@ module Aws::CloudWatch
|
|
3677
4109
|
include Aws::Structure
|
3678
4110
|
end
|
3679
4111
|
|
4112
|
+
# @note When making an API call, you may pass StopMetricStreamsInput
|
4113
|
+
# data as a hash:
|
4114
|
+
#
|
4115
|
+
# {
|
4116
|
+
# names: ["MetricStreamName"], # required
|
4117
|
+
# }
|
4118
|
+
#
|
4119
|
+
# @!attribute [rw] names
|
4120
|
+
# The array of the names of metric streams to stop streaming.
|
4121
|
+
#
|
4122
|
+
# This is an "all or nothing" operation. If you do not have
|
4123
|
+
# permission to access all of the metric streams that you list here,
|
4124
|
+
# then none of the streams that you list in the operation will stop
|
4125
|
+
# streaming.
|
4126
|
+
# @return [Array<String>]
|
4127
|
+
#
|
4128
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StopMetricStreamsInput AWS API Documentation
|
4129
|
+
#
|
4130
|
+
class StopMetricStreamsInput < Struct.new(
|
4131
|
+
:names)
|
4132
|
+
SENSITIVE = []
|
4133
|
+
include Aws::Structure
|
4134
|
+
end
|
4135
|
+
|
4136
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StopMetricStreamsOutput AWS API Documentation
|
4137
|
+
#
|
4138
|
+
class StopMetricStreamsOutput < Aws::EmptyStructure; end
|
4139
|
+
|
3680
4140
|
# A key-value pair associated with a CloudWatch resource.
|
3681
4141
|
#
|
3682
4142
|
# @note When making an API call, you may pass Tag
|