aws-sdk-cloudwatch 1.97.0 → 1.108.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,537 +12,9 @@ module Aws::CloudWatch
12
12
  # @api private
13
13
  module Endpoints
14
14
 
15
- class DeleteAlarms
16
- def self.build(context)
17
- unless context.config.regional_endpoint
18
- endpoint = context.config.endpoint.to_s
19
- end
20
- Aws::CloudWatch::EndpointParameters.new(
21
- region: context.config.region,
22
- use_dual_stack: context.config.use_dualstack_endpoint,
23
- use_fips: context.config.use_fips_endpoint,
24
- endpoint: endpoint,
25
- )
26
- end
27
- end
28
-
29
- class DeleteAnomalyDetector
30
- def self.build(context)
31
- unless context.config.regional_endpoint
32
- endpoint = context.config.endpoint.to_s
33
- end
34
- Aws::CloudWatch::EndpointParameters.new(
35
- region: context.config.region,
36
- use_dual_stack: context.config.use_dualstack_endpoint,
37
- use_fips: context.config.use_fips_endpoint,
38
- endpoint: endpoint,
39
- )
40
- end
41
- end
42
-
43
- class DeleteDashboards
44
- def self.build(context)
45
- unless context.config.regional_endpoint
46
- endpoint = context.config.endpoint.to_s
47
- end
48
- Aws::CloudWatch::EndpointParameters.new(
49
- region: context.config.region,
50
- use_dual_stack: context.config.use_dualstack_endpoint,
51
- use_fips: context.config.use_fips_endpoint,
52
- endpoint: endpoint,
53
- )
54
- end
55
- end
56
-
57
- class DeleteInsightRules
58
- def self.build(context)
59
- unless context.config.regional_endpoint
60
- endpoint = context.config.endpoint.to_s
61
- end
62
- Aws::CloudWatch::EndpointParameters.new(
63
- region: context.config.region,
64
- use_dual_stack: context.config.use_dualstack_endpoint,
65
- use_fips: context.config.use_fips_endpoint,
66
- endpoint: endpoint,
67
- )
68
- end
69
- end
70
-
71
- class DeleteMetricStream
72
- def self.build(context)
73
- unless context.config.regional_endpoint
74
- endpoint = context.config.endpoint.to_s
75
- end
76
- Aws::CloudWatch::EndpointParameters.new(
77
- region: context.config.region,
78
- use_dual_stack: context.config.use_dualstack_endpoint,
79
- use_fips: context.config.use_fips_endpoint,
80
- endpoint: endpoint,
81
- )
82
- end
83
- end
84
-
85
- class DescribeAlarmHistory
86
- def self.build(context)
87
- unless context.config.regional_endpoint
88
- endpoint = context.config.endpoint.to_s
89
- end
90
- Aws::CloudWatch::EndpointParameters.new(
91
- region: context.config.region,
92
- use_dual_stack: context.config.use_dualstack_endpoint,
93
- use_fips: context.config.use_fips_endpoint,
94
- endpoint: endpoint,
95
- )
96
- end
97
- end
98
-
99
- class DescribeAlarms
100
- def self.build(context)
101
- unless context.config.regional_endpoint
102
- endpoint = context.config.endpoint.to_s
103
- end
104
- Aws::CloudWatch::EndpointParameters.new(
105
- region: context.config.region,
106
- use_dual_stack: context.config.use_dualstack_endpoint,
107
- use_fips: context.config.use_fips_endpoint,
108
- endpoint: endpoint,
109
- )
110
- end
111
- end
112
-
113
- class DescribeAlarmsForMetric
114
- def self.build(context)
115
- unless context.config.regional_endpoint
116
- endpoint = context.config.endpoint.to_s
117
- end
118
- Aws::CloudWatch::EndpointParameters.new(
119
- region: context.config.region,
120
- use_dual_stack: context.config.use_dualstack_endpoint,
121
- use_fips: context.config.use_fips_endpoint,
122
- endpoint: endpoint,
123
- )
124
- end
125
- end
126
-
127
- class DescribeAnomalyDetectors
128
- def self.build(context)
129
- unless context.config.regional_endpoint
130
- endpoint = context.config.endpoint.to_s
131
- end
132
- Aws::CloudWatch::EndpointParameters.new(
133
- region: context.config.region,
134
- use_dual_stack: context.config.use_dualstack_endpoint,
135
- use_fips: context.config.use_fips_endpoint,
136
- endpoint: endpoint,
137
- )
138
- end
139
- end
140
-
141
- class DescribeInsightRules
142
- def self.build(context)
143
- unless context.config.regional_endpoint
144
- endpoint = context.config.endpoint.to_s
145
- end
146
- Aws::CloudWatch::EndpointParameters.new(
147
- region: context.config.region,
148
- use_dual_stack: context.config.use_dualstack_endpoint,
149
- use_fips: context.config.use_fips_endpoint,
150
- endpoint: endpoint,
151
- )
152
- end
153
- end
154
-
155
- class DisableAlarmActions
156
- def self.build(context)
157
- unless context.config.regional_endpoint
158
- endpoint = context.config.endpoint.to_s
159
- end
160
- Aws::CloudWatch::EndpointParameters.new(
161
- region: context.config.region,
162
- use_dual_stack: context.config.use_dualstack_endpoint,
163
- use_fips: context.config.use_fips_endpoint,
164
- endpoint: endpoint,
165
- )
166
- end
167
- end
168
-
169
- class DisableInsightRules
170
- def self.build(context)
171
- unless context.config.regional_endpoint
172
- endpoint = context.config.endpoint.to_s
173
- end
174
- Aws::CloudWatch::EndpointParameters.new(
175
- region: context.config.region,
176
- use_dual_stack: context.config.use_dualstack_endpoint,
177
- use_fips: context.config.use_fips_endpoint,
178
- endpoint: endpoint,
179
- )
180
- end
181
- end
182
-
183
- class EnableAlarmActions
184
- def self.build(context)
185
- unless context.config.regional_endpoint
186
- endpoint = context.config.endpoint.to_s
187
- end
188
- Aws::CloudWatch::EndpointParameters.new(
189
- region: context.config.region,
190
- use_dual_stack: context.config.use_dualstack_endpoint,
191
- use_fips: context.config.use_fips_endpoint,
192
- endpoint: endpoint,
193
- )
194
- end
195
- end
196
-
197
- class EnableInsightRules
198
- def self.build(context)
199
- unless context.config.regional_endpoint
200
- endpoint = context.config.endpoint.to_s
201
- end
202
- Aws::CloudWatch::EndpointParameters.new(
203
- region: context.config.region,
204
- use_dual_stack: context.config.use_dualstack_endpoint,
205
- use_fips: context.config.use_fips_endpoint,
206
- endpoint: endpoint,
207
- )
208
- end
209
- end
210
-
211
- class GetDashboard
212
- def self.build(context)
213
- unless context.config.regional_endpoint
214
- endpoint = context.config.endpoint.to_s
215
- end
216
- Aws::CloudWatch::EndpointParameters.new(
217
- region: context.config.region,
218
- use_dual_stack: context.config.use_dualstack_endpoint,
219
- use_fips: context.config.use_fips_endpoint,
220
- endpoint: endpoint,
221
- )
222
- end
223
- end
224
-
225
- class GetInsightRuleReport
226
- def self.build(context)
227
- unless context.config.regional_endpoint
228
- endpoint = context.config.endpoint.to_s
229
- end
230
- Aws::CloudWatch::EndpointParameters.new(
231
- region: context.config.region,
232
- use_dual_stack: context.config.use_dualstack_endpoint,
233
- use_fips: context.config.use_fips_endpoint,
234
- endpoint: endpoint,
235
- )
236
- end
237
- end
238
-
239
- class GetMetricData
240
- def self.build(context)
241
- unless context.config.regional_endpoint
242
- endpoint = context.config.endpoint.to_s
243
- end
244
- Aws::CloudWatch::EndpointParameters.new(
245
- region: context.config.region,
246
- use_dual_stack: context.config.use_dualstack_endpoint,
247
- use_fips: context.config.use_fips_endpoint,
248
- endpoint: endpoint,
249
- )
250
- end
251
- end
252
-
253
- class GetMetricStatistics
254
- def self.build(context)
255
- unless context.config.regional_endpoint
256
- endpoint = context.config.endpoint.to_s
257
- end
258
- Aws::CloudWatch::EndpointParameters.new(
259
- region: context.config.region,
260
- use_dual_stack: context.config.use_dualstack_endpoint,
261
- use_fips: context.config.use_fips_endpoint,
262
- endpoint: endpoint,
263
- )
264
- end
265
- end
266
-
267
- class GetMetricStream
268
- def self.build(context)
269
- unless context.config.regional_endpoint
270
- endpoint = context.config.endpoint.to_s
271
- end
272
- Aws::CloudWatch::EndpointParameters.new(
273
- region: context.config.region,
274
- use_dual_stack: context.config.use_dualstack_endpoint,
275
- use_fips: context.config.use_fips_endpoint,
276
- endpoint: endpoint,
277
- )
278
- end
279
- end
280
15
 
281
- class GetMetricWidgetImage
282
- def self.build(context)
283
- unless context.config.regional_endpoint
284
- endpoint = context.config.endpoint.to_s
285
- end
286
- Aws::CloudWatch::EndpointParameters.new(
287
- region: context.config.region,
288
- use_dual_stack: context.config.use_dualstack_endpoint,
289
- use_fips: context.config.use_fips_endpoint,
290
- endpoint: endpoint,
291
- )
292
- end
16
+ def self.parameters_for_operation(context)
17
+ Aws::CloudWatch::EndpointParameters.create(context.config)
293
18
  end
294
-
295
- class ListDashboards
296
- def self.build(context)
297
- unless context.config.regional_endpoint
298
- endpoint = context.config.endpoint.to_s
299
- end
300
- Aws::CloudWatch::EndpointParameters.new(
301
- region: context.config.region,
302
- use_dual_stack: context.config.use_dualstack_endpoint,
303
- use_fips: context.config.use_fips_endpoint,
304
- endpoint: endpoint,
305
- )
306
- end
307
- end
308
-
309
- class ListManagedInsightRules
310
- def self.build(context)
311
- unless context.config.regional_endpoint
312
- endpoint = context.config.endpoint.to_s
313
- end
314
- Aws::CloudWatch::EndpointParameters.new(
315
- region: context.config.region,
316
- use_dual_stack: context.config.use_dualstack_endpoint,
317
- use_fips: context.config.use_fips_endpoint,
318
- endpoint: endpoint,
319
- )
320
- end
321
- end
322
-
323
- class ListMetricStreams
324
- def self.build(context)
325
- unless context.config.regional_endpoint
326
- endpoint = context.config.endpoint.to_s
327
- end
328
- Aws::CloudWatch::EndpointParameters.new(
329
- region: context.config.region,
330
- use_dual_stack: context.config.use_dualstack_endpoint,
331
- use_fips: context.config.use_fips_endpoint,
332
- endpoint: endpoint,
333
- )
334
- end
335
- end
336
-
337
- class ListMetrics
338
- def self.build(context)
339
- unless context.config.regional_endpoint
340
- endpoint = context.config.endpoint.to_s
341
- end
342
- Aws::CloudWatch::EndpointParameters.new(
343
- region: context.config.region,
344
- use_dual_stack: context.config.use_dualstack_endpoint,
345
- use_fips: context.config.use_fips_endpoint,
346
- endpoint: endpoint,
347
- )
348
- end
349
- end
350
-
351
- class ListTagsForResource
352
- def self.build(context)
353
- unless context.config.regional_endpoint
354
- endpoint = context.config.endpoint.to_s
355
- end
356
- Aws::CloudWatch::EndpointParameters.new(
357
- region: context.config.region,
358
- use_dual_stack: context.config.use_dualstack_endpoint,
359
- use_fips: context.config.use_fips_endpoint,
360
- endpoint: endpoint,
361
- )
362
- end
363
- end
364
-
365
- class PutAnomalyDetector
366
- def self.build(context)
367
- unless context.config.regional_endpoint
368
- endpoint = context.config.endpoint.to_s
369
- end
370
- Aws::CloudWatch::EndpointParameters.new(
371
- region: context.config.region,
372
- use_dual_stack: context.config.use_dualstack_endpoint,
373
- use_fips: context.config.use_fips_endpoint,
374
- endpoint: endpoint,
375
- )
376
- end
377
- end
378
-
379
- class PutCompositeAlarm
380
- def self.build(context)
381
- unless context.config.regional_endpoint
382
- endpoint = context.config.endpoint.to_s
383
- end
384
- Aws::CloudWatch::EndpointParameters.new(
385
- region: context.config.region,
386
- use_dual_stack: context.config.use_dualstack_endpoint,
387
- use_fips: context.config.use_fips_endpoint,
388
- endpoint: endpoint,
389
- )
390
- end
391
- end
392
-
393
- class PutDashboard
394
- def self.build(context)
395
- unless context.config.regional_endpoint
396
- endpoint = context.config.endpoint.to_s
397
- end
398
- Aws::CloudWatch::EndpointParameters.new(
399
- region: context.config.region,
400
- use_dual_stack: context.config.use_dualstack_endpoint,
401
- use_fips: context.config.use_fips_endpoint,
402
- endpoint: endpoint,
403
- )
404
- end
405
- end
406
-
407
- class PutInsightRule
408
- def self.build(context)
409
- unless context.config.regional_endpoint
410
- endpoint = context.config.endpoint.to_s
411
- end
412
- Aws::CloudWatch::EndpointParameters.new(
413
- region: context.config.region,
414
- use_dual_stack: context.config.use_dualstack_endpoint,
415
- use_fips: context.config.use_fips_endpoint,
416
- endpoint: endpoint,
417
- )
418
- end
419
- end
420
-
421
- class PutManagedInsightRules
422
- def self.build(context)
423
- unless context.config.regional_endpoint
424
- endpoint = context.config.endpoint.to_s
425
- end
426
- Aws::CloudWatch::EndpointParameters.new(
427
- region: context.config.region,
428
- use_dual_stack: context.config.use_dualstack_endpoint,
429
- use_fips: context.config.use_fips_endpoint,
430
- endpoint: endpoint,
431
- )
432
- end
433
- end
434
-
435
- class PutMetricAlarm
436
- def self.build(context)
437
- unless context.config.regional_endpoint
438
- endpoint = context.config.endpoint.to_s
439
- end
440
- Aws::CloudWatch::EndpointParameters.new(
441
- region: context.config.region,
442
- use_dual_stack: context.config.use_dualstack_endpoint,
443
- use_fips: context.config.use_fips_endpoint,
444
- endpoint: endpoint,
445
- )
446
- end
447
- end
448
-
449
- class PutMetricData
450
- def self.build(context)
451
- unless context.config.regional_endpoint
452
- endpoint = context.config.endpoint.to_s
453
- end
454
- Aws::CloudWatch::EndpointParameters.new(
455
- region: context.config.region,
456
- use_dual_stack: context.config.use_dualstack_endpoint,
457
- use_fips: context.config.use_fips_endpoint,
458
- endpoint: endpoint,
459
- )
460
- end
461
- end
462
-
463
- class PutMetricStream
464
- def self.build(context)
465
- unless context.config.regional_endpoint
466
- endpoint = context.config.endpoint.to_s
467
- end
468
- Aws::CloudWatch::EndpointParameters.new(
469
- region: context.config.region,
470
- use_dual_stack: context.config.use_dualstack_endpoint,
471
- use_fips: context.config.use_fips_endpoint,
472
- endpoint: endpoint,
473
- )
474
- end
475
- end
476
-
477
- class SetAlarmState
478
- def self.build(context)
479
- unless context.config.regional_endpoint
480
- endpoint = context.config.endpoint.to_s
481
- end
482
- Aws::CloudWatch::EndpointParameters.new(
483
- region: context.config.region,
484
- use_dual_stack: context.config.use_dualstack_endpoint,
485
- use_fips: context.config.use_fips_endpoint,
486
- endpoint: endpoint,
487
- )
488
- end
489
- end
490
-
491
- class StartMetricStreams
492
- def self.build(context)
493
- unless context.config.regional_endpoint
494
- endpoint = context.config.endpoint.to_s
495
- end
496
- Aws::CloudWatch::EndpointParameters.new(
497
- region: context.config.region,
498
- use_dual_stack: context.config.use_dualstack_endpoint,
499
- use_fips: context.config.use_fips_endpoint,
500
- endpoint: endpoint,
501
- )
502
- end
503
- end
504
-
505
- class StopMetricStreams
506
- def self.build(context)
507
- unless context.config.regional_endpoint
508
- endpoint = context.config.endpoint.to_s
509
- end
510
- Aws::CloudWatch::EndpointParameters.new(
511
- region: context.config.region,
512
- use_dual_stack: context.config.use_dualstack_endpoint,
513
- use_fips: context.config.use_fips_endpoint,
514
- endpoint: endpoint,
515
- )
516
- end
517
- end
518
-
519
- class TagResource
520
- def self.build(context)
521
- unless context.config.regional_endpoint
522
- endpoint = context.config.endpoint.to_s
523
- end
524
- Aws::CloudWatch::EndpointParameters.new(
525
- region: context.config.region,
526
- use_dual_stack: context.config.use_dualstack_endpoint,
527
- use_fips: context.config.use_fips_endpoint,
528
- endpoint: endpoint,
529
- )
530
- end
531
- end
532
-
533
- class UntagResource
534
- def self.build(context)
535
- unless context.config.regional_endpoint
536
- endpoint = context.config.endpoint.to_s
537
- end
538
- Aws::CloudWatch::EndpointParameters.new(
539
- region: context.config.region,
540
- use_dual_stack: context.config.use_dualstack_endpoint,
541
- use_fips: context.config.use_fips_endpoint,
542
- endpoint: endpoint,
543
- )
544
- end
545
- end
546
-
547
19
  end
548
20
  end
@@ -489,6 +489,11 @@ module Aws::CloudWatch
489
489
  # `
490
490
  #
491
491
  # * `arn:aws:ssm-incidents::account-id:responseplan/response-plan-name `
492
+ #
493
+ # **Start a Amazon Q Developer operational investigation**
494
+ #
495
+ # `arn:aws:aiops:region:account-id:investigation-group:ingestigation-group-id
496
+ # `
492
497
  # @option options [Array<String>] :insufficient_data_actions
493
498
  # The actions to execute when this alarm transitions to the
494
499
  # `INSUFFICIENT_DATA` state from any other state. Each action is
@@ -737,6 +742,10 @@ module Aws::CloudWatch
737
742
  # you specify in this parameter are ignored. To change the tags of an
738
743
  # existing alarm, use [TagResource][1] or [UntagResource][2].
739
744
  #
745
+ # To use this field to set tags for an alarm when you create it, you
746
+ # must be signed on with both the `cloudwatch:PutMetricAlarm` and
747
+ # `cloudwatch:TagResource` permissions.
748
+ #
740
749
  #
741
750
  #
742
751
  # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html
@@ -768,7 +777,7 @@ module Aws::CloudWatch
768
777
  # @example Request syntax with placeholder values
769
778
  #
770
779
  # metric.put_data({
771
- # metric_data: [ # required
780
+ # metric_data: [
772
781
  # {
773
782
  # metric_name: "MetricName", # required
774
783
  # dimensions: [
@@ -791,11 +800,100 @@ module Aws::CloudWatch
791
800
  # storage_resolution: 1,
792
801
  # },
793
802
  # ],
803
+ # entity_metric_data: [
804
+ # {
805
+ # entity: {
806
+ # key_attributes: {
807
+ # "EntityKeyAttributesMapKeyString" => "EntityKeyAttributesMapValueString",
808
+ # },
809
+ # attributes: {
810
+ # "EntityAttributesMapKeyString" => "EntityAttributesMapValueString",
811
+ # },
812
+ # },
813
+ # metric_data: [
814
+ # {
815
+ # metric_name: "MetricName", # required
816
+ # dimensions: [
817
+ # {
818
+ # name: "DimensionName", # required
819
+ # value: "DimensionValue", # required
820
+ # },
821
+ # ],
822
+ # timestamp: Time.now,
823
+ # value: 1.0,
824
+ # statistic_values: {
825
+ # sample_count: 1.0, # required
826
+ # sum: 1.0, # required
827
+ # minimum: 1.0, # required
828
+ # maximum: 1.0, # required
829
+ # },
830
+ # values: [1.0],
831
+ # counts: [1.0],
832
+ # unit: "Seconds", # accepts Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None
833
+ # storage_resolution: 1,
834
+ # },
835
+ # ],
836
+ # },
837
+ # ],
838
+ # strict_entity_validation: false,
794
839
  # })
795
840
  # @param [Hash] options ({})
796
- # @option options [required, Array<Types::MetricDatum>] :metric_data
797
- # The data for the metric. The array can include no more than 1000
841
+ # @option options [Array<Types::MetricDatum>] :metric_data
842
+ # The data for the metrics. Use this parameter if your metrics do not
843
+ # contain associated entities. The array can include no more than 1000
798
844
  # metrics per call.
845
+ #
846
+ # The limit of metrics allowed, 1000, is the sum of both
847
+ # `EntityMetricData` and `MetricData` metrics.
848
+ # @option options [Array<Types::EntityMetricData>] :entity_metric_data
849
+ # Data for metrics that contain associated entity information. You can
850
+ # include up to two `EntityMetricData` objects, each of which can
851
+ # contain a single `Entity` and associated metrics.
852
+ #
853
+ # The limit of metrics allowed, 1000, is the sum of both
854
+ # `EntityMetricData` and `MetricData` metrics.
855
+ # @option options [Boolean] :strict_entity_validation
856
+ # Whether to accept valid metric data when an invalid entity is sent.
857
+ #
858
+ # * When set to `true`: Any validation error (for entity or metric data)
859
+ # will fail the entire request, and no data will be ingested. The
860
+ # failed operation will return a 400 result with the error.
861
+ #
862
+ # * When set to `false`: Validation errors in the entity will not
863
+ # associate the metric with the entity, but the metric data will still
864
+ # be accepted and ingested. Validation errors in the metric data will
865
+ # fail the entire request, and no data will be ingested.
866
+ #
867
+ # In the case of an invalid entity, the operation will return a `200`
868
+ # status, but an additional response header will contain information
869
+ # about the validation errors. The new header,
870
+ # `X-Amzn-Failure-Message` is an enumeration of the following values:
871
+ #
872
+ # * `InvalidEntity` - The provided entity is invalid.
873
+ #
874
+ # * `InvalidKeyAttributes` - The provided `KeyAttributes` of an entity
875
+ # is invalid.
876
+ #
877
+ # * `InvalidAttributes` - The provided `Attributes` of an entity is
878
+ # invalid.
879
+ #
880
+ # * `InvalidTypeValue` - The provided `Type` in the `KeyAttributes` of
881
+ # an entity is invalid.
882
+ #
883
+ # * `EntitySizeTooLarge` - The number of `EntityMetricData` objects
884
+ # allowed is 2.
885
+ #
886
+ # * `MissingRequiredFields` - There are missing required fields in the
887
+ # `KeyAttributes` for the provided `Type`.
888
+ # For details of the requirements for specifying an entity, see [How
889
+ # to add related information to telemetry][1] in the *CloudWatch User
890
+ # Guide*.
891
+ #
892
+ # This parameter is *required* when `EntityMetricData` is included.
893
+ #
894
+ #
895
+ #
896
+ # [1]: https://docs.aws.amazon.com/adding-your-own-related-telemetry.html
799
897
  # @return [EmptyStructure]
800
898
  def put_data(options = {})
801
899
  options = Aws::Util.deep_merge(options,