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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +55 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudwatch/client.rb +161 -21
- data/lib/aws-sdk-cloudwatch/client_api.rb +30 -1
- data/lib/aws-sdk-cloudwatch/endpoint_parameters.rb +9 -6
- data/lib/aws-sdk-cloudwatch/endpoints.rb +2 -530
- data/lib/aws-sdk-cloudwatch/metric.rb +101 -3
- data/lib/aws-sdk-cloudwatch/plugins/endpoints.rb +19 -88
- data/lib/aws-sdk-cloudwatch/resource.rb +1 -1
- data/lib/aws-sdk-cloudwatch/types.rb +148 -6
- data/lib/aws-sdk-cloudwatch.rb +19 -15
- data/sig/client.rbs +36 -2
- data/sig/metric.rbs +34 -2
- data/sig/resource.rbs +2 -0
- data/sig/types.rbs +14 -0
- metadata +4 -4
@@ -15,11 +15,11 @@ module Aws::CloudWatch
|
|
15
15
|
:endpoint_provider,
|
16
16
|
doc_type: 'Aws::CloudWatch::EndpointProvider',
|
17
17
|
rbs_type: 'untyped',
|
18
|
-
docstring:
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
18
|
+
docstring: <<~DOCS) do |_cfg|
|
19
|
+
The endpoint provider used to resolve endpoints. Any object that responds to
|
20
|
+
`#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
|
21
|
+
`Aws::CloudWatch::EndpointParameters`.
|
22
|
+
DOCS
|
23
23
|
Aws::CloudWatch::EndpointProvider.new
|
24
24
|
end
|
25
25
|
|
@@ -27,7 +27,7 @@ module Aws::CloudWatch
|
|
27
27
|
class Handler < Seahorse::Client::Handler
|
28
28
|
def call(context)
|
29
29
|
unless context[:discovered_endpoint]
|
30
|
-
params = parameters_for_operation(context)
|
30
|
+
params = Aws::CloudWatch::Endpoints.parameters_for_operation(context)
|
31
31
|
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
32
|
|
33
33
|
context.http_request.endpoint = endpoint.url
|
@@ -40,11 +40,23 @@ module Aws::CloudWatch
|
|
40
40
|
context[:auth_scheme] =
|
41
41
|
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
42
42
|
|
43
|
-
@handler.call(context)
|
43
|
+
with_metrics(context) { @handler.call(context) }
|
44
44
|
end
|
45
45
|
|
46
46
|
private
|
47
47
|
|
48
|
+
def with_metrics(context, &block)
|
49
|
+
metrics = []
|
50
|
+
metrics << 'ENDPOINT_OVERRIDE' unless context.config.regional_endpoint
|
51
|
+
if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
|
52
|
+
metrics << 'SIGV4A_SIGNING'
|
53
|
+
end
|
54
|
+
if context.config.credentials&.credentials&.account_id
|
55
|
+
metrics << 'RESOLVED_ACCOUNT_ID'
|
56
|
+
end
|
57
|
+
Aws::Plugins::UserAgent.metric(*metrics, &block)
|
58
|
+
end
|
59
|
+
|
48
60
|
def apply_endpoint_headers(context, headers)
|
49
61
|
headers.each do |key, values|
|
50
62
|
value = values
|
@@ -55,87 +67,6 @@ module Aws::CloudWatch
|
|
55
67
|
context.http_request.headers[key] = value
|
56
68
|
end
|
57
69
|
end
|
58
|
-
|
59
|
-
def parameters_for_operation(context)
|
60
|
-
case context.operation_name
|
61
|
-
when :delete_alarms
|
62
|
-
Aws::CloudWatch::Endpoints::DeleteAlarms.build(context)
|
63
|
-
when :delete_anomaly_detector
|
64
|
-
Aws::CloudWatch::Endpoints::DeleteAnomalyDetector.build(context)
|
65
|
-
when :delete_dashboards
|
66
|
-
Aws::CloudWatch::Endpoints::DeleteDashboards.build(context)
|
67
|
-
when :delete_insight_rules
|
68
|
-
Aws::CloudWatch::Endpoints::DeleteInsightRules.build(context)
|
69
|
-
when :delete_metric_stream
|
70
|
-
Aws::CloudWatch::Endpoints::DeleteMetricStream.build(context)
|
71
|
-
when :describe_alarm_history
|
72
|
-
Aws::CloudWatch::Endpoints::DescribeAlarmHistory.build(context)
|
73
|
-
when :describe_alarms
|
74
|
-
Aws::CloudWatch::Endpoints::DescribeAlarms.build(context)
|
75
|
-
when :describe_alarms_for_metric
|
76
|
-
Aws::CloudWatch::Endpoints::DescribeAlarmsForMetric.build(context)
|
77
|
-
when :describe_anomaly_detectors
|
78
|
-
Aws::CloudWatch::Endpoints::DescribeAnomalyDetectors.build(context)
|
79
|
-
when :describe_insight_rules
|
80
|
-
Aws::CloudWatch::Endpoints::DescribeInsightRules.build(context)
|
81
|
-
when :disable_alarm_actions
|
82
|
-
Aws::CloudWatch::Endpoints::DisableAlarmActions.build(context)
|
83
|
-
when :disable_insight_rules
|
84
|
-
Aws::CloudWatch::Endpoints::DisableInsightRules.build(context)
|
85
|
-
when :enable_alarm_actions
|
86
|
-
Aws::CloudWatch::Endpoints::EnableAlarmActions.build(context)
|
87
|
-
when :enable_insight_rules
|
88
|
-
Aws::CloudWatch::Endpoints::EnableInsightRules.build(context)
|
89
|
-
when :get_dashboard
|
90
|
-
Aws::CloudWatch::Endpoints::GetDashboard.build(context)
|
91
|
-
when :get_insight_rule_report
|
92
|
-
Aws::CloudWatch::Endpoints::GetInsightRuleReport.build(context)
|
93
|
-
when :get_metric_data
|
94
|
-
Aws::CloudWatch::Endpoints::GetMetricData.build(context)
|
95
|
-
when :get_metric_statistics
|
96
|
-
Aws::CloudWatch::Endpoints::GetMetricStatistics.build(context)
|
97
|
-
when :get_metric_stream
|
98
|
-
Aws::CloudWatch::Endpoints::GetMetricStream.build(context)
|
99
|
-
when :get_metric_widget_image
|
100
|
-
Aws::CloudWatch::Endpoints::GetMetricWidgetImage.build(context)
|
101
|
-
when :list_dashboards
|
102
|
-
Aws::CloudWatch::Endpoints::ListDashboards.build(context)
|
103
|
-
when :list_managed_insight_rules
|
104
|
-
Aws::CloudWatch::Endpoints::ListManagedInsightRules.build(context)
|
105
|
-
when :list_metric_streams
|
106
|
-
Aws::CloudWatch::Endpoints::ListMetricStreams.build(context)
|
107
|
-
when :list_metrics
|
108
|
-
Aws::CloudWatch::Endpoints::ListMetrics.build(context)
|
109
|
-
when :list_tags_for_resource
|
110
|
-
Aws::CloudWatch::Endpoints::ListTagsForResource.build(context)
|
111
|
-
when :put_anomaly_detector
|
112
|
-
Aws::CloudWatch::Endpoints::PutAnomalyDetector.build(context)
|
113
|
-
when :put_composite_alarm
|
114
|
-
Aws::CloudWatch::Endpoints::PutCompositeAlarm.build(context)
|
115
|
-
when :put_dashboard
|
116
|
-
Aws::CloudWatch::Endpoints::PutDashboard.build(context)
|
117
|
-
when :put_insight_rule
|
118
|
-
Aws::CloudWatch::Endpoints::PutInsightRule.build(context)
|
119
|
-
when :put_managed_insight_rules
|
120
|
-
Aws::CloudWatch::Endpoints::PutManagedInsightRules.build(context)
|
121
|
-
when :put_metric_alarm
|
122
|
-
Aws::CloudWatch::Endpoints::PutMetricAlarm.build(context)
|
123
|
-
when :put_metric_data
|
124
|
-
Aws::CloudWatch::Endpoints::PutMetricData.build(context)
|
125
|
-
when :put_metric_stream
|
126
|
-
Aws::CloudWatch::Endpoints::PutMetricStream.build(context)
|
127
|
-
when :set_alarm_state
|
128
|
-
Aws::CloudWatch::Endpoints::SetAlarmState.build(context)
|
129
|
-
when :start_metric_streams
|
130
|
-
Aws::CloudWatch::Endpoints::StartMetricStreams.build(context)
|
131
|
-
when :stop_metric_streams
|
132
|
-
Aws::CloudWatch::Endpoints::StopMetricStreams.build(context)
|
133
|
-
when :tag_resource
|
134
|
-
Aws::CloudWatch::Endpoints::TagResource.build(context)
|
135
|
-
when :untag_resource
|
136
|
-
Aws::CloudWatch::Endpoints::UntagResource.build(context)
|
137
|
-
end
|
138
|
-
end
|
139
70
|
end
|
140
71
|
|
141
72
|
def add_handlers(handlers, _config)
|
@@ -294,7 +294,7 @@ module Aws::CloudWatch
|
|
294
294
|
#
|
295
295
|
# The results that are returned are an approximation of the value you
|
296
296
|
# specify. There is a low probability that the returned results include
|
297
|
-
# metrics with last published data as much as
|
297
|
+
# metrics with last published data as much as 50 minutes more than the
|
298
298
|
# specified time interval.
|
299
299
|
# @option options [Boolean] :include_linked_accounts
|
300
300
|
# If you are using this operation in a monitoring account, specify
|
@@ -1073,6 +1073,73 @@ module Aws::CloudWatch
|
|
1073
1073
|
include Aws::Structure
|
1074
1074
|
end
|
1075
1075
|
|
1076
|
+
# An entity associated with metrics, to allow for finding related
|
1077
|
+
# telemetry. An entity is typically a resource or service within your
|
1078
|
+
# system. For example, metrics from an Amazon EC2 instance could be
|
1079
|
+
# associated with that instance as the entity. Similarly, metrics from a
|
1080
|
+
# service that you own could be associated with that service as the
|
1081
|
+
# entity.
|
1082
|
+
#
|
1083
|
+
# @!attribute [rw] key_attributes
|
1084
|
+
# The attributes of the entity which identify the specific entity, as
|
1085
|
+
# a list of key-value pairs. Entities with the same `KeyAttributes`
|
1086
|
+
# are considered to be the same entity. For an entity to be valid, the
|
1087
|
+
# `KeyAttributes` must exist and be formatted correctly.
|
1088
|
+
#
|
1089
|
+
# There are five allowed attributes (key names): `Type`,
|
1090
|
+
# `ResourceType`, `Identifier`, `Name`, and `Environment`.
|
1091
|
+
#
|
1092
|
+
# For details about how to use the key attributes to specify an
|
1093
|
+
# entity, see [How to add related information to telemetry][1] in the
|
1094
|
+
# *CloudWatch User Guide*.
|
1095
|
+
#
|
1096
|
+
#
|
1097
|
+
#
|
1098
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/adding-your-own-related-telemetry.html
|
1099
|
+
# @return [Hash<String,String>]
|
1100
|
+
#
|
1101
|
+
# @!attribute [rw] attributes
|
1102
|
+
# Additional attributes of the entity that are not used to specify the
|
1103
|
+
# identity of the entity. A list of key-value pairs.
|
1104
|
+
#
|
1105
|
+
# For details about how to use the attributes, see [How to add related
|
1106
|
+
# information to telemetry][1] in the *CloudWatch User Guide*.
|
1107
|
+
#
|
1108
|
+
#
|
1109
|
+
#
|
1110
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/adding-your-own-related-telemetry.html
|
1111
|
+
# @return [Hash<String,String>]
|
1112
|
+
#
|
1113
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/Entity AWS API Documentation
|
1114
|
+
#
|
1115
|
+
class Entity < Struct.new(
|
1116
|
+
:key_attributes,
|
1117
|
+
:attributes)
|
1118
|
+
SENSITIVE = []
|
1119
|
+
include Aws::Structure
|
1120
|
+
end
|
1121
|
+
|
1122
|
+
# A set of metrics that are associated with an entity, such as a
|
1123
|
+
# specific service or resource. Contains the entity and the list of
|
1124
|
+
# metric data associated with it.
|
1125
|
+
#
|
1126
|
+
# @!attribute [rw] entity
|
1127
|
+
# The entity associated with the metrics.
|
1128
|
+
# @return [Types::Entity]
|
1129
|
+
#
|
1130
|
+
# @!attribute [rw] metric_data
|
1131
|
+
# The metric data.
|
1132
|
+
# @return [Array<Types::MetricDatum>]
|
1133
|
+
#
|
1134
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EntityMetricData AWS API Documentation
|
1135
|
+
#
|
1136
|
+
class EntityMetricData < Struct.new(
|
1137
|
+
:entity,
|
1138
|
+
:metric_data)
|
1139
|
+
SENSITIVE = []
|
1140
|
+
include Aws::Structure
|
1141
|
+
end
|
1142
|
+
|
1076
1143
|
# @!attribute [rw] dashboard_name
|
1077
1144
|
# The name of the dashboard to be described.
|
1078
1145
|
# @return [String]
|
@@ -1710,9 +1777,9 @@ module Aws::CloudWatch
|
|
1710
1777
|
# @return [String]
|
1711
1778
|
#
|
1712
1779
|
# @!attribute [rw] schema
|
1713
|
-
# For rules that you create, this is always
|
1714
|
-
# "CloudWatchLogRule", "Version": 1
|
1715
|
-
#
|
1780
|
+
# For rules that you create, this is always `{"Name":
|
1781
|
+
# "CloudWatchLogRule", "Version": 1}`. For managed rules, this is
|
1782
|
+
# `{"Name": "ServiceLogRule", "Version": 1}`
|
1716
1783
|
# @return [String]
|
1717
1784
|
#
|
1718
1785
|
# @!attribute [rw] definition
|
@@ -2157,7 +2224,7 @@ module Aws::CloudWatch
|
|
2157
2224
|
#
|
2158
2225
|
# The results that are returned are an approximation of the value you
|
2159
2226
|
# specify. There is a low probability that the returned results
|
2160
|
-
# include metrics with last published data as much as
|
2227
|
+
# include metrics with last published data as much as 50 minutes more
|
2161
2228
|
# than the specified time interval.
|
2162
2229
|
# @return [String]
|
2163
2230
|
#
|
@@ -3310,6 +3377,11 @@ module Aws::CloudWatch
|
|
3310
3377
|
# **Systems Manager actions:**
|
3311
3378
|
#
|
3312
3379
|
# `arn:aws:ssm:region:account-id:opsitem:severity `
|
3380
|
+
#
|
3381
|
+
# **Start a Amazon Q Developer operational investigation**
|
3382
|
+
#
|
3383
|
+
# `arn:aws:aiops:region:account-id:investigation-group:ingestigation-group-id
|
3384
|
+
# `
|
3313
3385
|
# @return [Array<String>]
|
3314
3386
|
#
|
3315
3387
|
# @!attribute [rw] alarm_description
|
@@ -3750,6 +3822,11 @@ module Aws::CloudWatch
|
|
3750
3822
|
#
|
3751
3823
|
# * `arn:aws:ssm-incidents::account-id:responseplan/response-plan-name
|
3752
3824
|
# `
|
3825
|
+
#
|
3826
|
+
# **Start a Amazon Q Developer operational investigation**
|
3827
|
+
#
|
3828
|
+
# `arn:aws:aiops:region:account-id:investigation-group:ingestigation-group-id
|
3829
|
+
# `
|
3753
3830
|
# @return [Array<String>]
|
3754
3831
|
#
|
3755
3832
|
# @!attribute [rw] insufficient_data_actions
|
@@ -4045,6 +4122,10 @@ module Aws::CloudWatch
|
|
4045
4122
|
# tags you specify in this parameter are ignored. To change the tags
|
4046
4123
|
# of an existing alarm, use [TagResource][1] or [UntagResource][2].
|
4047
4124
|
#
|
4125
|
+
# To use this field to set tags for an alarm when you create it, you
|
4126
|
+
# must be signed on with both the `cloudwatch:PutMetricAlarm` and
|
4127
|
+
# `cloudwatch:TagResource` permissions.
|
4128
|
+
#
|
4048
4129
|
#
|
4049
4130
|
#
|
4050
4131
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html
|
@@ -4101,15 +4182,75 @@ module Aws::CloudWatch
|
|
4101
4182
|
# @return [String]
|
4102
4183
|
#
|
4103
4184
|
# @!attribute [rw] metric_data
|
4104
|
-
# The data for the
|
4185
|
+
# The data for the metrics. Use this parameter if your metrics do not
|
4186
|
+
# contain associated entities. The array can include no more than 1000
|
4105
4187
|
# metrics per call.
|
4188
|
+
#
|
4189
|
+
# The limit of metrics allowed, 1000, is the sum of both
|
4190
|
+
# `EntityMetricData` and `MetricData` metrics.
|
4106
4191
|
# @return [Array<Types::MetricDatum>]
|
4107
4192
|
#
|
4193
|
+
# @!attribute [rw] entity_metric_data
|
4194
|
+
# Data for metrics that contain associated entity information. You can
|
4195
|
+
# include up to two `EntityMetricData` objects, each of which can
|
4196
|
+
# contain a single `Entity` and associated metrics.
|
4197
|
+
#
|
4198
|
+
# The limit of metrics allowed, 1000, is the sum of both
|
4199
|
+
# `EntityMetricData` and `MetricData` metrics.
|
4200
|
+
# @return [Array<Types::EntityMetricData>]
|
4201
|
+
#
|
4202
|
+
# @!attribute [rw] strict_entity_validation
|
4203
|
+
# Whether to accept valid metric data when an invalid entity is sent.
|
4204
|
+
#
|
4205
|
+
# * When set to `true`: Any validation error (for entity or metric
|
4206
|
+
# data) will fail the entire request, and no data will be ingested.
|
4207
|
+
# The failed operation will return a 400 result with the error.
|
4208
|
+
#
|
4209
|
+
# * When set to `false`: Validation errors in the entity will not
|
4210
|
+
# associate the metric with the entity, but the metric data will
|
4211
|
+
# still be accepted and ingested. Validation errors in the metric
|
4212
|
+
# data will fail the entire request, and no data will be ingested.
|
4213
|
+
#
|
4214
|
+
# In the case of an invalid entity, the operation will return a
|
4215
|
+
# `200` status, but an additional response header will contain
|
4216
|
+
# information about the validation errors. The new header,
|
4217
|
+
# `X-Amzn-Failure-Message` is an enumeration of the following
|
4218
|
+
# values:
|
4219
|
+
#
|
4220
|
+
# * `InvalidEntity` - The provided entity is invalid.
|
4221
|
+
#
|
4222
|
+
# * `InvalidKeyAttributes` - The provided `KeyAttributes` of an
|
4223
|
+
# entity is invalid.
|
4224
|
+
#
|
4225
|
+
# * `InvalidAttributes` - The provided `Attributes` of an entity is
|
4226
|
+
# invalid.
|
4227
|
+
#
|
4228
|
+
# * `InvalidTypeValue` - The provided `Type` in the `KeyAttributes`
|
4229
|
+
# of an entity is invalid.
|
4230
|
+
#
|
4231
|
+
# * `EntitySizeTooLarge` - The number of `EntityMetricData` objects
|
4232
|
+
# allowed is 2.
|
4233
|
+
#
|
4234
|
+
# * `MissingRequiredFields` - There are missing required fields in
|
4235
|
+
# the `KeyAttributes` for the provided `Type`.
|
4236
|
+
# For details of the requirements for specifying an entity, see [How
|
4237
|
+
# to add related information to telemetry][1] in the *CloudWatch
|
4238
|
+
# User Guide*.
|
4239
|
+
#
|
4240
|
+
# This parameter is *required* when `EntityMetricData` is included.
|
4241
|
+
#
|
4242
|
+
#
|
4243
|
+
#
|
4244
|
+
# [1]: https://docs.aws.amazon.com/adding-your-own-related-telemetry.html
|
4245
|
+
# @return [Boolean]
|
4246
|
+
#
|
4108
4247
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricDataInput AWS API Documentation
|
4109
4248
|
#
|
4110
4249
|
class PutMetricDataInput < Struct.new(
|
4111
4250
|
:namespace,
|
4112
|
-
:metric_data
|
4251
|
+
:metric_data,
|
4252
|
+
:entity_metric_data,
|
4253
|
+
:strict_entity_validation)
|
4113
4254
|
SENSITIVE = []
|
4114
4255
|
include Aws::Structure
|
4115
4256
|
end
|
@@ -4537,3 +4678,4 @@ module Aws::CloudWatch
|
|
4537
4678
|
|
4538
4679
|
end
|
4539
4680
|
end
|
4681
|
+
|
data/lib/aws-sdk-cloudwatch.rb
CHANGED
@@ -11,20 +11,7 @@
|
|
11
11
|
require 'aws-sdk-core'
|
12
12
|
require 'aws-sigv4'
|
13
13
|
|
14
|
-
|
15
|
-
require_relative 'aws-sdk-cloudwatch/client_api'
|
16
|
-
require_relative 'aws-sdk-cloudwatch/plugins/endpoints.rb'
|
17
|
-
require_relative 'aws-sdk-cloudwatch/client'
|
18
|
-
require_relative 'aws-sdk-cloudwatch/errors'
|
19
|
-
require_relative 'aws-sdk-cloudwatch/waiters'
|
20
|
-
require_relative 'aws-sdk-cloudwatch/resource'
|
21
|
-
require_relative 'aws-sdk-cloudwatch/endpoint_parameters'
|
22
|
-
require_relative 'aws-sdk-cloudwatch/endpoint_provider'
|
23
|
-
require_relative 'aws-sdk-cloudwatch/endpoints'
|
24
|
-
require_relative 'aws-sdk-cloudwatch/alarm'
|
25
|
-
require_relative 'aws-sdk-cloudwatch/composite_alarm'
|
26
|
-
require_relative 'aws-sdk-cloudwatch/metric'
|
27
|
-
require_relative 'aws-sdk-cloudwatch/customizations'
|
14
|
+
Aws::Plugins::GlobalConfiguration.add_identifier(:cloudwatch)
|
28
15
|
|
29
16
|
# This module provides support for Amazon CloudWatch. This module is available in the
|
30
17
|
# `aws-sdk-cloudwatch` gem.
|
@@ -55,7 +42,24 @@ require_relative 'aws-sdk-cloudwatch/customizations'
|
|
55
42
|
#
|
56
43
|
# @!group service
|
57
44
|
module Aws::CloudWatch
|
45
|
+
autoload :Types, 'aws-sdk-cloudwatch/types'
|
46
|
+
autoload :ClientApi, 'aws-sdk-cloudwatch/client_api'
|
47
|
+
module Plugins
|
48
|
+
autoload :Endpoints, 'aws-sdk-cloudwatch/plugins/endpoints.rb'
|
49
|
+
end
|
50
|
+
autoload :Client, 'aws-sdk-cloudwatch/client'
|
51
|
+
autoload :Errors, 'aws-sdk-cloudwatch/errors'
|
52
|
+
autoload :Waiters, 'aws-sdk-cloudwatch/waiters'
|
53
|
+
autoload :Resource, 'aws-sdk-cloudwatch/resource'
|
54
|
+
autoload :EndpointParameters, 'aws-sdk-cloudwatch/endpoint_parameters'
|
55
|
+
autoload :EndpointProvider, 'aws-sdk-cloudwatch/endpoint_provider'
|
56
|
+
autoload :Endpoints, 'aws-sdk-cloudwatch/endpoints'
|
57
|
+
autoload :Alarm, 'aws-sdk-cloudwatch/alarm'
|
58
|
+
autoload :CompositeAlarm, 'aws-sdk-cloudwatch/composite_alarm'
|
59
|
+
autoload :Metric, 'aws-sdk-cloudwatch/metric'
|
58
60
|
|
59
|
-
GEM_VERSION = '1.
|
61
|
+
GEM_VERSION = '1.108.0'
|
60
62
|
|
61
63
|
end
|
64
|
+
|
65
|
+
require_relative 'aws-sdk-cloudwatch/customizations'
|
data/sig/client.rbs
CHANGED
@@ -15,6 +15,7 @@ module Aws
|
|
15
15
|
?credentials: untyped,
|
16
16
|
?region: String,
|
17
17
|
?access_key_id: String,
|
18
|
+
?account_id: String,
|
18
19
|
?active_endpoint_cache: bool,
|
19
20
|
?adaptive_retry_wait_to_fill: bool,
|
20
21
|
?client_side_monitoring: bool,
|
@@ -50,6 +51,7 @@ module Aws
|
|
50
51
|
?session_token: String,
|
51
52
|
?sigv4a_signing_region_set: Array[String],
|
52
53
|
?stub_responses: untyped,
|
54
|
+
?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
|
53
55
|
?token_provider: untyped,
|
54
56
|
?use_dualstack_endpoint: bool,
|
55
57
|
?use_fips_endpoint: bool,
|
@@ -692,7 +694,7 @@ module Aws
|
|
692
694
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Client.html#put_metric_data-instance_method
|
693
695
|
def put_metric_data: (
|
694
696
|
namespace: ::String,
|
695
|
-
metric_data: Array[
|
697
|
+
?metric_data: Array[
|
696
698
|
{
|
697
699
|
metric_name: ::String,
|
698
700
|
dimensions: Array[
|
@@ -714,7 +716,39 @@ module Aws
|
|
714
716
|
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")?,
|
715
717
|
storage_resolution: ::Integer?
|
716
718
|
},
|
717
|
-
]
|
719
|
+
],
|
720
|
+
?entity_metric_data: Array[
|
721
|
+
{
|
722
|
+
entity: {
|
723
|
+
key_attributes: Hash[::String, ::String]?,
|
724
|
+
attributes: Hash[::String, ::String]?
|
725
|
+
}?,
|
726
|
+
metric_data: Array[
|
727
|
+
{
|
728
|
+
metric_name: ::String,
|
729
|
+
dimensions: Array[
|
730
|
+
{
|
731
|
+
name: ::String,
|
732
|
+
value: ::String
|
733
|
+
},
|
734
|
+
]?,
|
735
|
+
timestamp: ::Time?,
|
736
|
+
value: ::Float?,
|
737
|
+
statistic_values: {
|
738
|
+
sample_count: ::Float,
|
739
|
+
sum: ::Float,
|
740
|
+
minimum: ::Float,
|
741
|
+
maximum: ::Float
|
742
|
+
}?,
|
743
|
+
values: Array[::Float]?,
|
744
|
+
counts: Array[::Float]?,
|
745
|
+
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")?,
|
746
|
+
storage_resolution: ::Integer?
|
747
|
+
},
|
748
|
+
]?
|
749
|
+
},
|
750
|
+
],
|
751
|
+
?strict_entity_validation: bool
|
718
752
|
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
719
753
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
720
754
|
|
data/sig/metric.rbs
CHANGED
@@ -115,7 +115,7 @@ module Aws
|
|
115
115
|
|
116
116
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Metric.html#put_data-instance_method
|
117
117
|
def put_data: (
|
118
|
-
metric_data: Array[
|
118
|
+
?metric_data: Array[
|
119
119
|
{
|
120
120
|
metric_name: ::String,
|
121
121
|
dimensions: Array[
|
@@ -137,7 +137,39 @@ module Aws
|
|
137
137
|
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")?,
|
138
138
|
storage_resolution: ::Integer?
|
139
139
|
},
|
140
|
-
]
|
140
|
+
],
|
141
|
+
?entity_metric_data: Array[
|
142
|
+
{
|
143
|
+
entity: {
|
144
|
+
key_attributes: Hash[::String, ::String]?,
|
145
|
+
attributes: Hash[::String, ::String]?
|
146
|
+
}?,
|
147
|
+
metric_data: Array[
|
148
|
+
{
|
149
|
+
metric_name: ::String,
|
150
|
+
dimensions: Array[
|
151
|
+
{
|
152
|
+
name: ::String,
|
153
|
+
value: ::String
|
154
|
+
},
|
155
|
+
]?,
|
156
|
+
timestamp: ::Time?,
|
157
|
+
value: ::Float?,
|
158
|
+
statistic_values: {
|
159
|
+
sample_count: ::Float,
|
160
|
+
sum: ::Float,
|
161
|
+
minimum: ::Float,
|
162
|
+
maximum: ::Float
|
163
|
+
}?,
|
164
|
+
values: Array[::Float]?,
|
165
|
+
counts: Array[::Float]?,
|
166
|
+
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")?,
|
167
|
+
storage_resolution: ::Integer?
|
168
|
+
},
|
169
|
+
]?
|
170
|
+
},
|
171
|
+
],
|
172
|
+
?strict_entity_validation: bool
|
141
173
|
) -> ::Aws::EmptyStructure
|
142
174
|
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
143
175
|
|
data/sig/resource.rbs
CHANGED
@@ -15,6 +15,7 @@ module Aws
|
|
15
15
|
?credentials: untyped,
|
16
16
|
?region: String,
|
17
17
|
?access_key_id: String,
|
18
|
+
?account_id: String,
|
18
19
|
?active_endpoint_cache: bool,
|
19
20
|
?adaptive_retry_wait_to_fill: bool,
|
20
21
|
?client_side_monitoring: bool,
|
@@ -50,6 +51,7 @@ module Aws
|
|
50
51
|
?session_token: String,
|
51
52
|
?sigv4a_signing_region_set: Array[String],
|
52
53
|
?stub_responses: untyped,
|
54
|
+
?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
|
53
55
|
?token_provider: untyped,
|
54
56
|
?use_dualstack_endpoint: bool,
|
55
57
|
?use_fips_endpoint: bool,
|
data/sig/types.rbs
CHANGED
@@ -268,6 +268,18 @@ module Aws::CloudWatch
|
|
268
268
|
SENSITIVE: []
|
269
269
|
end
|
270
270
|
|
271
|
+
class Entity
|
272
|
+
attr_accessor key_attributes: ::Hash[::String, ::String]
|
273
|
+
attr_accessor attributes: ::Hash[::String, ::String]
|
274
|
+
SENSITIVE: []
|
275
|
+
end
|
276
|
+
|
277
|
+
class EntityMetricData
|
278
|
+
attr_accessor entity: Types::Entity
|
279
|
+
attr_accessor metric_data: ::Array[Types::MetricDatum]
|
280
|
+
SENSITIVE: []
|
281
|
+
end
|
282
|
+
|
271
283
|
class GetDashboardInput
|
272
284
|
attr_accessor dashboard_name: ::String
|
273
285
|
SENSITIVE: []
|
@@ -758,6 +770,8 @@ module Aws::CloudWatch
|
|
758
770
|
class PutMetricDataInput
|
759
771
|
attr_accessor namespace: ::String
|
760
772
|
attr_accessor metric_data: ::Array[Types::MetricDatum]
|
773
|
+
attr_accessor entity_metric_data: ::Array[Types::EntityMetricData]
|
774
|
+
attr_accessor strict_entity_validation: bool
|
761
775
|
SENSITIVE: []
|
762
776
|
end
|
763
777
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-cloudwatch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.108.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.210.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.210.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|