aws-sdk-cloudwatch 1.83.0 → 1.85.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d4e522341d375827b47ae1435426e7a489ff3cb71ea3031624d9a3ea69bffe0
4
- data.tar.gz: 56caa2842783bdf2209ad20886dbf694d79f1c7ae9e2cdf93ee4ab0fbb163cbb
3
+ metadata.gz: 52d042734194575e9297e245ed2fbec389f5cdc0c076313cdcee7f3ef6755057
4
+ data.tar.gz: 559762c2f41b66c82bc68bf263b89501e7580aaeb42b7214b53917acf5d9d85c
5
5
  SHA512:
6
- metadata.gz: 3e0f12bdaa80bb68ebab372422a8cf51f79a7df517fc33a16f392ed2f6e171f89ecce1a6fa7ceb8bef65cb14e11d0e466d254cbf5a67cc1190ba935655ee736b
7
- data.tar.gz: b3498f8c80fd3697cf17b1c21f7083cca2efecb2d515dbfedefe40afb0eec6014dc312bc5e2417eae548a98dc14381ffa92191861e5d2a8873927b0fb5bff4d3
6
+ metadata.gz: 64e5cb29bd670b2f01b8998daae49011ebc93fd19ab19c1b57028f28c33e0371743d18de39eb5e66b8a8d6e81c3e17abe094674e22fc562782f0374b6bc89345
7
+ data.tar.gz: 2ea02017f387f04cb82db7803031358d91af91d662bb723db138f6d8a332fe975d36e5e16528ac3ee405921de0e806d20720cbae614397537412f10fecfa6fd1
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.85.0 (2024-01-26)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.84.0 (2023-12-08)
10
+ ------------------
11
+
12
+ * Feature - Adds support for the OpenTelemetry 1.0 output format in CloudWatch Metric Streams.
13
+
4
14
  1.83.0 (2023-11-28)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.83.0
1
+ 1.85.0
@@ -1995,7 +1995,7 @@ module Aws::CloudWatch
1995
1995
  # resp.state #=> String
1996
1996
  # resp.creation_date #=> Time
1997
1997
  # resp.last_update_date #=> Time
1998
- # resp.output_format #=> String, one of "json", "opentelemetry0.7"
1998
+ # resp.output_format #=> String, one of "json", "opentelemetry0.7", "opentelemetry1.0"
1999
1999
  # resp.statistics_configurations #=> Array
2000
2000
  # resp.statistics_configurations[0].include_metrics #=> Array
2001
2001
  # resp.statistics_configurations[0].include_metrics[0].namespace #=> String
@@ -2238,7 +2238,7 @@ module Aws::CloudWatch
2238
2238
  # resp.data.entries[0].name #=> String
2239
2239
  # resp.data.entries[0].firehose_arn #=> String
2240
2240
  # resp.data.entries[0].state #=> String
2241
- # resp.data.entries[0].output_format #=> String, one of "json", "opentelemetry0.7"
2241
+ # resp.data.entries[0].output_format #=> String, one of "json", "opentelemetry0.7", "opentelemetry1.0"
2242
2242
  #
2243
2243
  # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetricStreams AWS API Documentation
2244
2244
  #
@@ -3158,9 +3158,9 @@ module Aws::CloudWatch
3158
3158
  # `Metrics` array.
3159
3159
  #
3160
3160
  # If you are creating an alarm based on a math expression, you cannot
3161
- # specify this parameter, or any of the `Dimensions`, `Period`,
3162
- # `Namespace`, `Statistic`, or `ExtendedStatistic` parameters. Instead,
3163
- # you specify all this information in the `Metrics` array.
3161
+ # specify this parameter, or any of the `Namespace`, `Dimensions`,
3162
+ # `Period`, `Unit`, `Statistic`, or `ExtendedStatistic` parameters.
3163
+ # Instead, you specify all this information in the `Metrics` array.
3164
3164
  #
3165
3165
  # @option params [String] :namespace
3166
3166
  # The namespace for the metric associated specified in `MetricName`.
@@ -3245,6 +3245,9 @@ module Aws::CloudWatch
3245
3245
  # You can also specify a unit when you create a custom metric. Units
3246
3246
  # help provide conceptual meaning to your data. Metric data points that
3247
3247
  # specify a unit of measure, such as Percent, are aggregated separately.
3248
+ # If you are creating an alarm based on a metric math expression, you
3249
+ # can specify the unit for each metric (if needed) within the objects in
3250
+ # the `Metrics` array.
3248
3251
  #
3249
3252
  # If you don't specify `Unit`, CloudWatch retrieves all unit types that
3250
3253
  # have been published for the metric and attempts to evaluate the alarm.
@@ -3344,10 +3347,10 @@ module Aws::CloudWatch
3344
3347
  # [MetricDataQuery][1].
3345
3348
  #
3346
3349
  # If you use the `Metrics` parameter, you cannot include the
3347
- # `MetricName`, `Dimensions`, `Period`, `Namespace`, `Statistic`, or
3348
- # `ExtendedStatistic` parameters of `PutMetricAlarm` in the same
3349
- # operation. Instead, you retrieve the metrics you are using in your
3350
- # math expression as part of the `Metrics` array.
3350
+ # `Namespace`, `MetricName`, `Dimensions`, `Period`, `Unit`,
3351
+ # `Statistic`, or `ExtendedStatistic` parameters of `PutMetricAlarm` in
3352
+ # the same operation. Instead, you retrieve the metrics you are using in
3353
+ # your math expression as part of the `Metrics` array.
3351
3354
  #
3352
3355
  #
3353
3356
  #
@@ -3647,9 +3650,9 @@ module Aws::CloudWatch
3647
3650
  # * firehose:PutRecordBatch
3648
3651
  #
3649
3652
  # @option params [required, String] :output_format
3650
- # The output format for the stream. Valid values are `json` and
3651
- # `opentelemetry0.7`. For more information about metric stream output
3652
- # formats, see [ Metric streams output formats][1].
3653
+ # The output format for the stream. Valid values are `json`,
3654
+ # `opentelemetry1.0`, and `opentelemetry0.7`. For more information about
3655
+ # metric stream output formats, see [ Metric streams output formats][1].
3653
3656
  #
3654
3657
  #
3655
3658
  #
@@ -3686,8 +3689,8 @@ module Aws::CloudWatch
3686
3689
  # `OutputFormat`. If the `OutputFormat` is `json`, you can stream any
3687
3690
  # additional statistic that is supported by CloudWatch, listed in [
3688
3691
  # CloudWatch statistics definitions][1]. If the `OutputFormat` is
3689
- # `opentelemetry0.7`, you can stream percentile statistics such as p95,
3690
- # p99.9, and so on.
3692
+ # `opentelemetry1.0` or `opentelemetry0.7`, you can stream percentile
3693
+ # statistics such as p95, p99.9, and so on.
3691
3694
  #
3692
3695
  #
3693
3696
  #
@@ -3719,7 +3722,7 @@ module Aws::CloudWatch
3719
3722
  # ],
3720
3723
  # firehose_arn: "AmazonResourceName", # required
3721
3724
  # role_arn: "AmazonResourceName", # required
3722
- # output_format: "json", # required, accepts json, opentelemetry0.7
3725
+ # output_format: "json", # required, accepts json, opentelemetry0.7, opentelemetry1.0
3723
3726
  # tags: [
3724
3727
  # {
3725
3728
  # key: "TagKey", # required
@@ -3983,7 +3986,7 @@ module Aws::CloudWatch
3983
3986
  params: params,
3984
3987
  config: config)
3985
3988
  context[:gem_name] = 'aws-sdk-cloudwatch'
3986
- context[:gem_version] = '1.83.0'
3989
+ context[:gem_version] = '1.85.0'
3987
3990
  Seahorse::Client::Request.new(handlers, context)
3988
3991
  end
3989
3992
 
@@ -32,8 +32,8 @@ module Aws::CloudWatch
32
32
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
33
  end
34
34
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
- if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
35
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov")
37
37
  return Aws::Endpoints::Endpoint.new(url: "https://monitoring.#{region}.amazonaws.com", headers: {}, properties: {})
38
38
  end
39
39
  return Aws::Endpoints::Endpoint.new(url: "https://monitoring-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
@@ -584,6 +584,9 @@ module Aws::CloudWatch
584
584
  # You can also specify a unit when you create a custom metric. Units
585
585
  # help provide conceptual meaning to your data. Metric data points that
586
586
  # specify a unit of measure, such as Percent, are aggregated separately.
587
+ # If you are creating an alarm based on a metric math expression, you
588
+ # can specify the unit for each metric (if needed) within the objects in
589
+ # the `Metrics` array.
587
590
  #
588
591
  # If you don't specify `Unit`, CloudWatch retrieves all unit types that
589
592
  # have been published for the metric and attempts to evaluate the alarm.
@@ -676,10 +679,10 @@ module Aws::CloudWatch
676
679
  # [MetricDataQuery][1].
677
680
  #
678
681
  # If you use the `Metrics` parameter, you cannot include the
679
- # `MetricName`, `Dimensions`, `Period`, `Namespace`, `Statistic`, or
680
- # `ExtendedStatistic` parameters of `PutMetricAlarm` in the same
681
- # operation. Instead, you retrieve the metrics you are using in your
682
- # math expression as part of the `Metrics` array.
682
+ # `Namespace`, `MetricName`, `Dimensions`, `Period`, `Unit`,
683
+ # `Statistic`, or `ExtendedStatistic` parameters of `PutMetricAlarm` in
684
+ # the same operation. Instead, you retrieve the metrics you are using in
685
+ # your math expression as part of the `Metrics` array.
683
686
  #
684
687
  #
685
688
  #
@@ -14,6 +14,7 @@ module Aws::CloudWatch
14
14
  option(
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::CloudWatch::EndpointProvider',
17
+ rbs_type: 'untyped',
17
18
  docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
19
  'object that responds to `#resolve_endpoint(parameters)` '\
19
20
  'where `parameters` is a Struct similar to '\
@@ -1558,9 +1558,10 @@ module Aws::CloudWatch
1558
1558
  # @return [Time]
1559
1559
  #
1560
1560
  # @!attribute [rw] output_format
1561
- # The output format for the stream. Valid values are `json` and
1562
- # `opentelemetry0.7`. For more information about metric stream output
1563
- # formats, see [Metric streams output formats][1].
1561
+ # The output format for the stream. Valid values are `json`,
1562
+ # `opentelemetry1.0`, and `opentelemetry0.7`. For more information
1563
+ # about metric stream output formats, see [Metric streams output
1564
+ # formats][1].
1564
1565
  #
1565
1566
  #
1566
1567
  #
@@ -2977,8 +2978,8 @@ module Aws::CloudWatch
2977
2978
  # @return [String]
2978
2979
  #
2979
2980
  # @!attribute [rw] output_format
2980
- # The output format of this metric stream. Valid values are `json` and
2981
- # `opentelemetry0.7`.
2981
+ # The output format of this metric stream. Valid values are `json`,
2982
+ # `opentelemetry1.0`, and `opentelemetry0.7`.
2982
2983
  # @return [String]
2983
2984
  #
2984
2985
  # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/MetricStreamEntry AWS API Documentation
@@ -3061,9 +3062,9 @@ module Aws::CloudWatch
3061
3062
  # metrics listed in the `IncludeMetrics` array in this structure. This
3062
3063
  # list can include as many as 20 statistics.
3063
3064
  #
3064
- # If the `OutputFormat` for the stream is `opentelemetry0.7`, the only
3065
- # valid values are `p?? ` percentile statistics such as `p90`, `p99`
3066
- # and so on.
3065
+ # If the `OutputFormat` for the stream is `opentelemetry1.0` or
3066
+ # `opentelemetry0.7`, the only valid values are `p?? ` percentile
3067
+ # statistics such as `p90`, `p99` and so on.
3067
3068
  #
3068
3069
  # If the `OutputFormat` for the stream is `json`, the valid values
3069
3070
  # include the abbreviations for all of the statistics listed in [
@@ -3672,8 +3673,8 @@ module Aws::CloudWatch
3672
3673
  # a `Metrics` array.
3673
3674
  #
3674
3675
  # If you are creating an alarm based on a math expression, you cannot
3675
- # specify this parameter, or any of the `Dimensions`, `Period`,
3676
- # `Namespace`, `Statistic`, or `ExtendedStatistic` parameters.
3676
+ # specify this parameter, or any of the `Namespace`, `Dimensions`,
3677
+ # `Period`, `Unit`, `Statistic`, or `ExtendedStatistic` parameters.
3677
3678
  # Instead, you specify all this information in the `Metrics` array.
3678
3679
  # @return [String]
3679
3680
  #
@@ -3766,7 +3767,9 @@ module Aws::CloudWatch
3766
3767
  # interfaces. You can also specify a unit when you create a custom
3767
3768
  # metric. Units help provide conceptual meaning to your data. Metric
3768
3769
  # data points that specify a unit of measure, such as Percent, are
3769
- # aggregated separately.
3770
+ # aggregated separately. If you are creating an alarm based on a
3771
+ # metric math expression, you can specify the unit for each metric (if
3772
+ # needed) within the objects in the `Metrics` array.
3770
3773
  #
3771
3774
  # If you don't specify `Unit`, CloudWatch retrieves all unit types
3772
3775
  # that have been published for the metric and attempts to evaluate the
@@ -3874,10 +3877,10 @@ module Aws::CloudWatch
3874
3877
  # [MetricDataQuery][1].
3875
3878
  #
3876
3879
  # If you use the `Metrics` parameter, you cannot include the
3877
- # `MetricName`, `Dimensions`, `Period`, `Namespace`, `Statistic`, or
3878
- # `ExtendedStatistic` parameters of `PutMetricAlarm` in the same
3879
- # operation. Instead, you retrieve the metrics you are using in your
3880
- # math expression as part of the `Metrics` array.
3880
+ # `Namespace`, `MetricName`, `Dimensions`, `Period`, `Unit`,
3881
+ # `Statistic`, or `ExtendedStatistic` parameters of `PutMetricAlarm`
3882
+ # in the same operation. Instead, you retrieve the metrics you are
3883
+ # using in your math expression as part of the `Metrics` array.
3881
3884
  #
3882
3885
  #
3883
3886
  #
@@ -4014,9 +4017,10 @@ module Aws::CloudWatch
4014
4017
  # @return [String]
4015
4018
  #
4016
4019
  # @!attribute [rw] output_format
4017
- # The output format for the stream. Valid values are `json` and
4018
- # `opentelemetry0.7`. For more information about metric stream output
4019
- # formats, see [ Metric streams output formats][1].
4020
+ # The output format for the stream. Valid values are `json`,
4021
+ # `opentelemetry1.0`, and `opentelemetry0.7`. For more information
4022
+ # about metric stream output formats, see [ Metric streams output
4023
+ # formats][1].
4020
4024
  #
4021
4025
  #
4022
4026
  #
@@ -4057,8 +4061,8 @@ module Aws::CloudWatch
4057
4061
  # `OutputFormat`. If the `OutputFormat` is `json`, you can stream any
4058
4062
  # additional statistic that is supported by CloudWatch, listed in [
4059
4063
  # CloudWatch statistics definitions][1]. If the `OutputFormat` is
4060
- # `opentelemetry0.7`, you can stream percentile statistics such as
4061
- # p95, p99.9, and so on.
4064
+ # `opentelemetry1.0` or `opentelemetry0.7`, you can stream percentile
4065
+ # statistics such as p95, p99.9, and so on.
4062
4066
  #
4063
4067
  #
4064
4068
  #
@@ -56,6 +56,6 @@ require_relative 'aws-sdk-cloudwatch/customizations'
56
56
  # @!group service
57
57
  module Aws::CloudWatch
58
58
 
59
- GEM_VERSION = '1.83.0'
59
+ GEM_VERSION = '1.85.0'
60
60
 
61
61
  end
data/sig/alarm.rbs ADDED
@@ -0,0 +1,179 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module CloudWatch
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html
11
+ class Alarm
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#initialize-instance_method
13
+ def initialize: (String name, Hash[Symbol, untyped] options) -> void
14
+ | (name: String, ?client: Client) -> void
15
+ | (Hash[Symbol, untyped] args) -> void
16
+
17
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#name-instance_method
18
+ def name: () -> String
19
+ alias alarm_name name
20
+
21
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#alarm_arn-instance_method
22
+ def alarm_arn: () -> ::String
23
+
24
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#alarm_description-instance_method
25
+ def alarm_description: () -> ::String
26
+
27
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#alarm_configuration_updated_timestamp-instance_method
28
+ def alarm_configuration_updated_timestamp: () -> ::Time
29
+
30
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#actions_enabled-instance_method
31
+ def actions_enabled: () -> bool
32
+
33
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#ok_actions-instance_method
34
+ def ok_actions: () -> ::Array[::String]
35
+
36
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#alarm_actions-instance_method
37
+ def alarm_actions: () -> ::Array[::String]
38
+
39
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#insufficient_data_actions-instance_method
40
+ def insufficient_data_actions: () -> ::Array[::String]
41
+
42
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#state_value-instance_method
43
+ def state_value: () -> ("OK" | "ALARM" | "INSUFFICIENT_DATA")
44
+
45
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#state_reason-instance_method
46
+ def state_reason: () -> ::String
47
+
48
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#state_reason_data-instance_method
49
+ def state_reason_data: () -> ::String
50
+
51
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#state_updated_timestamp-instance_method
52
+ def state_updated_timestamp: () -> ::Time
53
+
54
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#metric_name-instance_method
55
+ def metric_name: () -> ::String
56
+
57
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#namespace-instance_method
58
+ def namespace: () -> ::String
59
+
60
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#statistic-instance_method
61
+ def statistic: () -> ("SampleCount" | "Average" | "Sum" | "Minimum" | "Maximum")
62
+
63
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#extended_statistic-instance_method
64
+ def extended_statistic: () -> ::String
65
+
66
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#dimensions-instance_method
67
+ def dimensions: () -> ::Array[Types::Dimension]
68
+
69
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#period-instance_method
70
+ def period: () -> ::Integer
71
+
72
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#unit-instance_method
73
+ def unit: () -> ("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")
74
+
75
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#evaluation_periods-instance_method
76
+ def evaluation_periods: () -> ::Integer
77
+
78
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#datapoints_to_alarm-instance_method
79
+ def datapoints_to_alarm: () -> ::Integer
80
+
81
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#threshold-instance_method
82
+ def threshold: () -> ::Float
83
+
84
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#comparison_operator-instance_method
85
+ def comparison_operator: () -> ("GreaterThanOrEqualToThreshold" | "GreaterThanThreshold" | "LessThanThreshold" | "LessThanOrEqualToThreshold" | "LessThanLowerOrGreaterThanUpperThreshold" | "LessThanLowerThreshold" | "GreaterThanUpperThreshold")
86
+
87
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#treat_missing_data-instance_method
88
+ def treat_missing_data: () -> ::String
89
+
90
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#evaluate_low_sample_count_percentile-instance_method
91
+ def evaluate_low_sample_count_percentile: () -> ::String
92
+
93
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#metrics-instance_method
94
+ def metrics: () -> ::Array[Types::MetricDataQuery]
95
+
96
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#threshold_metric_id-instance_method
97
+ def threshold_metric_id: () -> ::String
98
+
99
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#evaluation_state-instance_method
100
+ def evaluation_state: () -> ("PARTIAL_DATA")
101
+
102
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#state_transitioned_timestamp-instance_method
103
+ def state_transitioned_timestamp: () -> ::Time
104
+
105
+ def client: () -> Client
106
+
107
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#load-instance_method
108
+ def load: () -> self
109
+ alias reload load
110
+
111
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#data-instance_method
112
+ def data: () -> Types::MetricAlarm
113
+
114
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#data_loaded?-instance_method
115
+ def data_loaded?: () -> bool
116
+
117
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#exists?-instance_method
118
+ def exists?: (?max_attempts: Integer, ?delay: Numeric, ?before_attempt: (^(Integer attempts) -> void), ?before_wait: (^(Integer attempts, untyped response) -> void)) -> bool
119
+ | (?Hash[Symbol, untyped]) -> bool
120
+
121
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#wait_until_exists-instance_method
122
+ def wait_until_exists: (?max_attempts: Integer, ?delay: Numeric, ?before_attempt: (^(Integer attempts) -> void), ?before_wait: (^(Integer attempts, untyped response) -> void)) ?{ (untyped waiter) -> void } -> Alarm
123
+ | (?Hash[Symbol, untyped]) ?{ (untyped waiter) -> void } -> Alarm
124
+
125
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#delete-instance_method
126
+ def delete: (
127
+ ) -> ::Aws::EmptyStructure
128
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
129
+
130
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#describe_history-instance_method
131
+ def describe_history: (
132
+ ?alarm_types: Array[("CompositeAlarm" | "MetricAlarm")],
133
+ ?history_item_type: ("ConfigurationUpdate" | "StateUpdate" | "Action"),
134
+ ?start_date: ::Time,
135
+ ?end_date: ::Time,
136
+ ?max_records: ::Integer,
137
+ ?next_token: ::String,
138
+ ?scan_by: ("TimestampDescending" | "TimestampAscending")
139
+ ) -> Types::DescribeAlarmHistoryOutput
140
+ | (?Hash[Symbol, untyped]) -> Types::DescribeAlarmHistoryOutput
141
+
142
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#disable_actions-instance_method
143
+ def disable_actions: (
144
+ ) -> ::Aws::EmptyStructure
145
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
146
+
147
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#enable_actions-instance_method
148
+ def enable_actions: (
149
+ ) -> ::Aws::EmptyStructure
150
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
151
+
152
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#set_state-instance_method
153
+ def set_state: (
154
+ state_value: ("OK" | "ALARM" | "INSUFFICIENT_DATA"),
155
+ state_reason: ::String,
156
+ ?state_reason_data: ::String
157
+ ) -> ::Aws::EmptyStructure
158
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
159
+
160
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#metric-instance_method
161
+ def metric: () -> Metric?
162
+
163
+ class Collection < ::Aws::Resources::Collection[Alarm]
164
+
165
+ def batch_delete!: (
166
+ ) -> void
167
+ | (?Hash[Symbol, untyped]) -> void
168
+
169
+ def batch_disable_actions: (
170
+ ) -> void
171
+ | (?Hash[Symbol, untyped]) -> void
172
+
173
+ def batch_enable_actions: (
174
+ ) -> void
175
+ | (?Hash[Symbol, untyped]) -> void
176
+ end
177
+ end
178
+ end
179
+ end