aws-sdk-cloudwatch 1.66.0 → 1.67.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudwatch/client.rb +104 -1
- data/lib/aws-sdk-cloudwatch/client_api.rb +78 -0
- data/lib/aws-sdk-cloudwatch/types.rb +204 -3
- data/lib/aws-sdk-cloudwatch.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 77aa43f9ac7f6a446224746c7bf4d2f71c4d8aa8c5a209fe0e0eaa40d6e9613a
|
|
4
|
+
data.tar.gz: 0f5e736cc4731e3ccd81db6b9ecd4e0743e8b517f8143006623cdda22694e013
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5e392ee3e4e164dcb0bd7bbb1ab240cbb90a93de990a04012905488e0a8c6e250a5a635734df7ecfd9c922b3a300307079648729298fb78d4ffc4340ff24cfd1
|
|
7
|
+
data.tar.gz: f814e4b8fb78aebfe9e72e872858653a6b9e25d6c08c0d409caf8ea44185c22e697eaa22f10947bc4ebc6e111c8a07e4e863ea07518a91794d1b98487a927974
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.67.0
|
|
@@ -1044,6 +1044,8 @@ module Aws::CloudWatch
|
|
|
1044
1044
|
# * {Types::DescribeAnomalyDetectorsOutput#anomaly_detectors #anomaly_detectors} => Array<Types::AnomalyDetector>
|
|
1045
1045
|
# * {Types::DescribeAnomalyDetectorsOutput#next_token #next_token} => String
|
|
1046
1046
|
#
|
|
1047
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
1048
|
+
#
|
|
1047
1049
|
# @example Request syntax with placeholder values
|
|
1048
1050
|
#
|
|
1049
1051
|
# resp = client.describe_anomaly_detectors({
|
|
@@ -1145,6 +1147,7 @@ module Aws::CloudWatch
|
|
|
1145
1147
|
# resp.insight_rules[0].state #=> String
|
|
1146
1148
|
# resp.insight_rules[0].schema #=> String
|
|
1147
1149
|
# resp.insight_rules[0].definition #=> String
|
|
1150
|
+
# resp.insight_rules[0].managed_rule #=> Boolean
|
|
1148
1151
|
#
|
|
1149
1152
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeInsightRules AWS API Documentation
|
|
1150
1153
|
#
|
|
@@ -2090,6 +2093,55 @@ module Aws::CloudWatch
|
|
|
2090
2093
|
req.send_request(options)
|
|
2091
2094
|
end
|
|
2092
2095
|
|
|
2096
|
+
# Returns a list that contains the number of managed Contributor
|
|
2097
|
+
# Insights rules in your account.
|
|
2098
|
+
#
|
|
2099
|
+
# @option params [required, String] :resource_arn
|
|
2100
|
+
# The ARN of an Amazon Web Services resource that has managed
|
|
2101
|
+
# Contributor Insights rules.
|
|
2102
|
+
#
|
|
2103
|
+
# @option params [String] :next_token
|
|
2104
|
+
# Include this value to get the next set of rules if the value was
|
|
2105
|
+
# returned by the previous operation.
|
|
2106
|
+
#
|
|
2107
|
+
# @option params [Integer] :max_results
|
|
2108
|
+
# The maximum number of results to return in one operation. If you omit
|
|
2109
|
+
# this parameter, the default number is used. The default number is
|
|
2110
|
+
# `100`.
|
|
2111
|
+
#
|
|
2112
|
+
# @return [Types::ListManagedInsightRulesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2113
|
+
#
|
|
2114
|
+
# * {Types::ListManagedInsightRulesOutput#managed_rules #managed_rules} => Array<Types::ManagedRuleDescription>
|
|
2115
|
+
# * {Types::ListManagedInsightRulesOutput#next_token #next_token} => String
|
|
2116
|
+
#
|
|
2117
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
2118
|
+
#
|
|
2119
|
+
# @example Request syntax with placeholder values
|
|
2120
|
+
#
|
|
2121
|
+
# resp = client.list_managed_insight_rules({
|
|
2122
|
+
# resource_arn: "AmazonResourceName", # required
|
|
2123
|
+
# next_token: "NextToken",
|
|
2124
|
+
# max_results: 1,
|
|
2125
|
+
# })
|
|
2126
|
+
#
|
|
2127
|
+
# @example Response structure
|
|
2128
|
+
#
|
|
2129
|
+
# resp.managed_rules #=> Array
|
|
2130
|
+
# resp.managed_rules[0].template_name #=> String
|
|
2131
|
+
# resp.managed_rules[0].resource_arn #=> String
|
|
2132
|
+
# resp.managed_rules[0].rule_state.rule_name #=> String
|
|
2133
|
+
# resp.managed_rules[0].rule_state.state #=> String
|
|
2134
|
+
# resp.next_token #=> String
|
|
2135
|
+
#
|
|
2136
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListManagedInsightRules AWS API Documentation
|
|
2137
|
+
#
|
|
2138
|
+
# @overload list_managed_insight_rules(params = {})
|
|
2139
|
+
# @param [Hash] params ({})
|
|
2140
|
+
def list_managed_insight_rules(params = {}, options = {})
|
|
2141
|
+
req = build_request(:list_managed_insight_rules, params)
|
|
2142
|
+
req.send_request(options)
|
|
2143
|
+
end
|
|
2144
|
+
|
|
2093
2145
|
# Returns a list of metric streams in this account.
|
|
2094
2146
|
#
|
|
2095
2147
|
# @option params [String] :next_token
|
|
@@ -2753,6 +2805,57 @@ module Aws::CloudWatch
|
|
|
2753
2805
|
req.send_request(options)
|
|
2754
2806
|
end
|
|
2755
2807
|
|
|
2808
|
+
# Creates a managed Contributor Insights rule for a specified Amazon Web
|
|
2809
|
+
# Services resource. When you enable a managed rule, you create a
|
|
2810
|
+
# Contributor Insights rule that collects data from Amazon Web Services
|
|
2811
|
+
# services. You cannot edit these rules with `PutInsightRule`. The rules
|
|
2812
|
+
# can be enabled, disabled, and deleted using `EnableInsightRules`,
|
|
2813
|
+
# `DisableInsightRules`, and `DeleteInsightRules`. If a previously
|
|
2814
|
+
# created managed rule is currently disabled, a subsequent call to this
|
|
2815
|
+
# API will re-enable it. Use `ListManagedInsightRules` to describe all
|
|
2816
|
+
# available rules.
|
|
2817
|
+
#
|
|
2818
|
+
# @option params [required, Array<Types::ManagedRule>] :managed_rules
|
|
2819
|
+
# A list of `ManagedRules` to enable.
|
|
2820
|
+
#
|
|
2821
|
+
# @return [Types::PutManagedInsightRulesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2822
|
+
#
|
|
2823
|
+
# * {Types::PutManagedInsightRulesOutput#failures #failures} => Array<Types::PartialFailure>
|
|
2824
|
+
#
|
|
2825
|
+
# @example Request syntax with placeholder values
|
|
2826
|
+
#
|
|
2827
|
+
# resp = client.put_managed_insight_rules({
|
|
2828
|
+
# managed_rules: [ # required
|
|
2829
|
+
# {
|
|
2830
|
+
# template_name: "TemplateName", # required
|
|
2831
|
+
# resource_arn: "AmazonResourceName", # required
|
|
2832
|
+
# tags: [
|
|
2833
|
+
# {
|
|
2834
|
+
# key: "TagKey", # required
|
|
2835
|
+
# value: "TagValue", # required
|
|
2836
|
+
# },
|
|
2837
|
+
# ],
|
|
2838
|
+
# },
|
|
2839
|
+
# ],
|
|
2840
|
+
# })
|
|
2841
|
+
#
|
|
2842
|
+
# @example Response structure
|
|
2843
|
+
#
|
|
2844
|
+
# resp.failures #=> Array
|
|
2845
|
+
# resp.failures[0].failure_resource #=> String
|
|
2846
|
+
# resp.failures[0].exception_type #=> String
|
|
2847
|
+
# resp.failures[0].failure_code #=> String
|
|
2848
|
+
# resp.failures[0].failure_description #=> String
|
|
2849
|
+
#
|
|
2850
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutManagedInsightRules AWS API Documentation
|
|
2851
|
+
#
|
|
2852
|
+
# @overload put_managed_insight_rules(params = {})
|
|
2853
|
+
# @param [Hash] params ({})
|
|
2854
|
+
def put_managed_insight_rules(params = {}, options = {})
|
|
2855
|
+
req = build_request(:put_managed_insight_rules, params)
|
|
2856
|
+
req.send_request(options)
|
|
2857
|
+
end
|
|
2858
|
+
|
|
2756
2859
|
# Creates or updates an alarm and associates it with the specified
|
|
2757
2860
|
# metric, metric math expression, or anomaly detection model.
|
|
2758
2861
|
#
|
|
@@ -3669,7 +3772,7 @@ module Aws::CloudWatch
|
|
|
3669
3772
|
params: params,
|
|
3670
3773
|
config: config)
|
|
3671
3774
|
context[:gem_name] = 'aws-sdk-cloudwatch'
|
|
3672
|
-
context[:gem_version] = '1.
|
|
3775
|
+
context[:gem_version] = '1.67.0'
|
|
3673
3776
|
Seahorse::Client::Request.new(handlers, context)
|
|
3674
3777
|
end
|
|
3675
3778
|
|
|
@@ -133,6 +133,7 @@ module Aws::CloudWatch
|
|
|
133
133
|
InsightRuleContributorKeys = Shapes::ListShape.new(name: 'InsightRuleContributorKeys')
|
|
134
134
|
InsightRuleContributors = Shapes::ListShape.new(name: 'InsightRuleContributors')
|
|
135
135
|
InsightRuleDefinition = Shapes::StringShape.new(name: 'InsightRuleDefinition')
|
|
136
|
+
InsightRuleIsManaged = Shapes::BooleanShape.new(name: 'InsightRuleIsManaged')
|
|
136
137
|
InsightRuleMaxResults = Shapes::IntegerShape.new(name: 'InsightRuleMaxResults')
|
|
137
138
|
InsightRuleMetricDatapoint = Shapes::StructureShape.new(name: 'InsightRuleMetricDatapoint')
|
|
138
139
|
InsightRuleMetricDatapoints = Shapes::ListShape.new(name: 'InsightRuleMetricDatapoints')
|
|
@@ -158,6 +159,8 @@ module Aws::CloudWatch
|
|
|
158
159
|
LimitExceededFault = Shapes::StructureShape.new(name: 'LimitExceededFault')
|
|
159
160
|
ListDashboardsInput = Shapes::StructureShape.new(name: 'ListDashboardsInput')
|
|
160
161
|
ListDashboardsOutput = Shapes::StructureShape.new(name: 'ListDashboardsOutput')
|
|
162
|
+
ListManagedInsightRulesInput = Shapes::StructureShape.new(name: 'ListManagedInsightRulesInput')
|
|
163
|
+
ListManagedInsightRulesOutput = Shapes::StructureShape.new(name: 'ListManagedInsightRulesOutput')
|
|
161
164
|
ListMetricStreamsInput = Shapes::StructureShape.new(name: 'ListMetricStreamsInput')
|
|
162
165
|
ListMetricStreamsMaxResults = Shapes::IntegerShape.new(name: 'ListMetricStreamsMaxResults')
|
|
163
166
|
ListMetricStreamsOutput = Shapes::StructureShape.new(name: 'ListMetricStreamsOutput')
|
|
@@ -165,6 +168,11 @@ module Aws::CloudWatch
|
|
|
165
168
|
ListMetricsOutput = Shapes::StructureShape.new(name: 'ListMetricsOutput')
|
|
166
169
|
ListTagsForResourceInput = Shapes::StructureShape.new(name: 'ListTagsForResourceInput')
|
|
167
170
|
ListTagsForResourceOutput = Shapes::StructureShape.new(name: 'ListTagsForResourceOutput')
|
|
171
|
+
ManagedRule = Shapes::StructureShape.new(name: 'ManagedRule')
|
|
172
|
+
ManagedRuleDescription = Shapes::StructureShape.new(name: 'ManagedRuleDescription')
|
|
173
|
+
ManagedRuleDescriptions = Shapes::ListShape.new(name: 'ManagedRuleDescriptions')
|
|
174
|
+
ManagedRuleState = Shapes::StructureShape.new(name: 'ManagedRuleState')
|
|
175
|
+
ManagedRules = Shapes::ListShape.new(name: 'ManagedRules')
|
|
168
176
|
MaxRecords = Shapes::IntegerShape.new(name: 'MaxRecords')
|
|
169
177
|
MaxReturnedResultsCount = Shapes::IntegerShape.new(name: 'MaxReturnedResultsCount')
|
|
170
178
|
Message = Shapes::StringShape.new(name: 'Message')
|
|
@@ -217,6 +225,8 @@ module Aws::CloudWatch
|
|
|
217
225
|
PutDashboardOutput = Shapes::StructureShape.new(name: 'PutDashboardOutput')
|
|
218
226
|
PutInsightRuleInput = Shapes::StructureShape.new(name: 'PutInsightRuleInput')
|
|
219
227
|
PutInsightRuleOutput = Shapes::StructureShape.new(name: 'PutInsightRuleOutput')
|
|
228
|
+
PutManagedInsightRulesInput = Shapes::StructureShape.new(name: 'PutManagedInsightRulesInput')
|
|
229
|
+
PutManagedInsightRulesOutput = Shapes::StructureShape.new(name: 'PutManagedInsightRulesOutput')
|
|
220
230
|
PutMetricAlarmInput = Shapes::StructureShape.new(name: 'PutMetricAlarmInput')
|
|
221
231
|
PutMetricDataInput = Shapes::StructureShape.new(name: 'PutMetricDataInput')
|
|
222
232
|
PutMetricStreamInput = Shapes::StructureShape.new(name: 'PutMetricStreamInput')
|
|
@@ -256,6 +266,7 @@ module Aws::CloudWatch
|
|
|
256
266
|
TagResourceInput = Shapes::StructureShape.new(name: 'TagResourceInput')
|
|
257
267
|
TagResourceOutput = Shapes::StructureShape.new(name: 'TagResourceOutput')
|
|
258
268
|
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
|
269
|
+
TemplateName = Shapes::StringShape.new(name: 'TemplateName')
|
|
259
270
|
Threshold = Shapes::FloatShape.new(name: 'Threshold')
|
|
260
271
|
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
|
261
272
|
Timestamps = Shapes::ListShape.new(name: 'Timestamps')
|
|
@@ -571,6 +582,7 @@ module Aws::CloudWatch
|
|
|
571
582
|
InsightRule.add_member(:state, Shapes::ShapeRef.new(shape: InsightRuleState, required: true, location_name: "State"))
|
|
572
583
|
InsightRule.add_member(:schema, Shapes::ShapeRef.new(shape: InsightRuleSchema, required: true, location_name: "Schema"))
|
|
573
584
|
InsightRule.add_member(:definition, Shapes::ShapeRef.new(shape: InsightRuleDefinition, required: true, location_name: "Definition"))
|
|
585
|
+
InsightRule.add_member(:managed_rule, Shapes::ShapeRef.new(shape: InsightRuleIsManaged, location_name: "ManagedRule"))
|
|
574
586
|
InsightRule.struct_class = Types::InsightRule
|
|
575
587
|
|
|
576
588
|
InsightRuleContributor.add_member(:keys, Shapes::ShapeRef.new(shape: InsightRuleContributorKeys, required: true, location_name: "Keys"))
|
|
@@ -639,6 +651,15 @@ module Aws::CloudWatch
|
|
|
639
651
|
ListDashboardsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
|
640
652
|
ListDashboardsOutput.struct_class = Types::ListDashboardsOutput
|
|
641
653
|
|
|
654
|
+
ListManagedInsightRulesInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
|
|
655
|
+
ListManagedInsightRulesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
|
656
|
+
ListManagedInsightRulesInput.add_member(:max_results, Shapes::ShapeRef.new(shape: InsightRuleMaxResults, location_name: "MaxResults"))
|
|
657
|
+
ListManagedInsightRulesInput.struct_class = Types::ListManagedInsightRulesInput
|
|
658
|
+
|
|
659
|
+
ListManagedInsightRulesOutput.add_member(:managed_rules, Shapes::ShapeRef.new(shape: ManagedRuleDescriptions, location_name: "ManagedRules"))
|
|
660
|
+
ListManagedInsightRulesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
|
661
|
+
ListManagedInsightRulesOutput.struct_class = Types::ListManagedInsightRulesOutput
|
|
662
|
+
|
|
642
663
|
ListMetricStreamsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
|
643
664
|
ListMetricStreamsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListMetricStreamsMaxResults, location_name: "MaxResults"))
|
|
644
665
|
ListMetricStreamsInput.struct_class = Types::ListMetricStreamsInput
|
|
@@ -664,6 +685,24 @@ module Aws::CloudWatch
|
|
|
664
685
|
ListTagsForResourceOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
|
665
686
|
ListTagsForResourceOutput.struct_class = Types::ListTagsForResourceOutput
|
|
666
687
|
|
|
688
|
+
ManagedRule.add_member(:template_name, Shapes::ShapeRef.new(shape: TemplateName, required: true, location_name: "TemplateName"))
|
|
689
|
+
ManagedRule.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
|
|
690
|
+
ManagedRule.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
|
691
|
+
ManagedRule.struct_class = Types::ManagedRule
|
|
692
|
+
|
|
693
|
+
ManagedRuleDescription.add_member(:template_name, Shapes::ShapeRef.new(shape: TemplateName, location_name: "TemplateName"))
|
|
694
|
+
ManagedRuleDescription.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "ResourceARN"))
|
|
695
|
+
ManagedRuleDescription.add_member(:rule_state, Shapes::ShapeRef.new(shape: ManagedRuleState, location_name: "RuleState"))
|
|
696
|
+
ManagedRuleDescription.struct_class = Types::ManagedRuleDescription
|
|
697
|
+
|
|
698
|
+
ManagedRuleDescriptions.member = Shapes::ShapeRef.new(shape: ManagedRuleDescription)
|
|
699
|
+
|
|
700
|
+
ManagedRuleState.add_member(:rule_name, Shapes::ShapeRef.new(shape: InsightRuleName, required: true, location_name: "RuleName"))
|
|
701
|
+
ManagedRuleState.add_member(:state, Shapes::ShapeRef.new(shape: InsightRuleState, required: true, location_name: "State"))
|
|
702
|
+
ManagedRuleState.struct_class = Types::ManagedRuleState
|
|
703
|
+
|
|
704
|
+
ManagedRules.member = Shapes::ShapeRef.new(shape: ManagedRule)
|
|
705
|
+
|
|
667
706
|
MessageData.add_member(:code, Shapes::ShapeRef.new(shape: MessageDataCode, location_name: "Code"))
|
|
668
707
|
MessageData.add_member(:value, Shapes::ShapeRef.new(shape: MessageDataValue, location_name: "Value"))
|
|
669
708
|
MessageData.struct_class = Types::MessageData
|
|
@@ -831,6 +870,12 @@ module Aws::CloudWatch
|
|
|
831
870
|
|
|
832
871
|
PutInsightRuleOutput.struct_class = Types::PutInsightRuleOutput
|
|
833
872
|
|
|
873
|
+
PutManagedInsightRulesInput.add_member(:managed_rules, Shapes::ShapeRef.new(shape: ManagedRules, required: true, location_name: "ManagedRules"))
|
|
874
|
+
PutManagedInsightRulesInput.struct_class = Types::PutManagedInsightRulesInput
|
|
875
|
+
|
|
876
|
+
PutManagedInsightRulesOutput.add_member(:failures, Shapes::ShapeRef.new(shape: BatchFailures, location_name: "Failures"))
|
|
877
|
+
PutManagedInsightRulesOutput.struct_class = Types::PutManagedInsightRulesOutput
|
|
878
|
+
|
|
834
879
|
PutMetricAlarmInput.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, required: true, location_name: "AlarmName"))
|
|
835
880
|
PutMetricAlarmInput.add_member(:alarm_description, Shapes::ShapeRef.new(shape: AlarmDescription, location_name: "AlarmDescription"))
|
|
836
881
|
PutMetricAlarmInput.add_member(:actions_enabled, Shapes::ShapeRef.new(shape: ActionsEnabled, location_name: "ActionsEnabled"))
|
|
@@ -1059,6 +1104,12 @@ module Aws::CloudWatch
|
|
|
1059
1104
|
o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
|
|
1060
1105
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
|
1061
1106
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
|
|
1107
|
+
o[:pager] = Aws::Pager.new(
|
|
1108
|
+
limit_key: "max_results",
|
|
1109
|
+
tokens: {
|
|
1110
|
+
"next_token" => "next_token"
|
|
1111
|
+
}
|
|
1112
|
+
)
|
|
1062
1113
|
end)
|
|
1063
1114
|
|
|
1064
1115
|
api.add_operation(:describe_insight_rules, Seahorse::Model::Operation.new.tap do |o|
|
|
@@ -1198,6 +1249,23 @@ module Aws::CloudWatch
|
|
|
1198
1249
|
)
|
|
1199
1250
|
end)
|
|
1200
1251
|
|
|
1252
|
+
api.add_operation(:list_managed_insight_rules, Seahorse::Model::Operation.new.tap do |o|
|
|
1253
|
+
o.name = "ListManagedInsightRules"
|
|
1254
|
+
o.http_method = "POST"
|
|
1255
|
+
o.http_request_uri = "/"
|
|
1256
|
+
o.input = Shapes::ShapeRef.new(shape: ListManagedInsightRulesInput)
|
|
1257
|
+
o.output = Shapes::ShapeRef.new(shape: ListManagedInsightRulesOutput)
|
|
1258
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
|
1259
|
+
o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
|
|
1260
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
|
|
1261
|
+
o[:pager] = Aws::Pager.new(
|
|
1262
|
+
limit_key: "max_results",
|
|
1263
|
+
tokens: {
|
|
1264
|
+
"next_token" => "next_token"
|
|
1265
|
+
}
|
|
1266
|
+
)
|
|
1267
|
+
end)
|
|
1268
|
+
|
|
1201
1269
|
api.add_operation(:list_metric_streams, Seahorse::Model::Operation.new.tap do |o|
|
|
1202
1270
|
o.name = "ListMetricStreams"
|
|
1203
1271
|
o.http_method = "POST"
|
|
@@ -1285,6 +1353,16 @@ module Aws::CloudWatch
|
|
|
1285
1353
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
|
1286
1354
|
end)
|
|
1287
1355
|
|
|
1356
|
+
api.add_operation(:put_managed_insight_rules, Seahorse::Model::Operation.new.tap do |o|
|
|
1357
|
+
o.name = "PutManagedInsightRules"
|
|
1358
|
+
o.http_method = "POST"
|
|
1359
|
+
o.http_request_uri = "/"
|
|
1360
|
+
o.input = Shapes::ShapeRef.new(shape: PutManagedInsightRulesInput)
|
|
1361
|
+
o.output = Shapes::ShapeRef.new(shape: PutManagedInsightRulesOutput)
|
|
1362
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
|
1363
|
+
o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
|
|
1364
|
+
end)
|
|
1365
|
+
|
|
1288
1366
|
api.add_operation(:put_metric_alarm, Seahorse::Model::Operation.new.tap do |o|
|
|
1289
1367
|
o.name = "PutMetricAlarm"
|
|
1290
1368
|
o.http_method = "POST"
|
|
@@ -1843,7 +1843,7 @@ module Aws::CloudWatch
|
|
|
1843
1843
|
# @!attribute [rw] output_format
|
|
1844
1844
|
# The output format for the stream. Valid values are `json` and
|
|
1845
1845
|
# `opentelemetry0.7`. For more information about metric stream output
|
|
1846
|
-
# formats, see [
|
|
1846
|
+
# formats, see [Metric streams output formats][1].
|
|
1847
1847
|
#
|
|
1848
1848
|
#
|
|
1849
1849
|
#
|
|
@@ -1996,13 +1996,18 @@ module Aws::CloudWatch
|
|
|
1996
1996
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights-RuleSyntax.html
|
|
1997
1997
|
# @return [String]
|
|
1998
1998
|
#
|
|
1999
|
+
# @!attribute [rw] managed_rule
|
|
2000
|
+
# An optional built-in rule that Amazon Web Services manages.
|
|
2001
|
+
# @return [Boolean]
|
|
2002
|
+
#
|
|
1999
2003
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/InsightRule AWS API Documentation
|
|
2000
2004
|
#
|
|
2001
2005
|
class InsightRule < Struct.new(
|
|
2002
2006
|
:name,
|
|
2003
2007
|
:state,
|
|
2004
2008
|
:schema,
|
|
2005
|
-
:definition
|
|
2009
|
+
:definition,
|
|
2010
|
+
:managed_rule)
|
|
2006
2011
|
SENSITIVE = []
|
|
2007
2012
|
include Aws::Structure
|
|
2008
2013
|
end
|
|
@@ -2327,6 +2332,60 @@ module Aws::CloudWatch
|
|
|
2327
2332
|
include Aws::Structure
|
|
2328
2333
|
end
|
|
2329
2334
|
|
|
2335
|
+
# @note When making an API call, you may pass ListManagedInsightRulesInput
|
|
2336
|
+
# data as a hash:
|
|
2337
|
+
#
|
|
2338
|
+
# {
|
|
2339
|
+
# resource_arn: "AmazonResourceName", # required
|
|
2340
|
+
# next_token: "NextToken",
|
|
2341
|
+
# max_results: 1,
|
|
2342
|
+
# }
|
|
2343
|
+
#
|
|
2344
|
+
# @!attribute [rw] resource_arn
|
|
2345
|
+
# The ARN of an Amazon Web Services resource that has managed
|
|
2346
|
+
# Contributor Insights rules.
|
|
2347
|
+
# @return [String]
|
|
2348
|
+
#
|
|
2349
|
+
# @!attribute [rw] next_token
|
|
2350
|
+
# Include this value to get the next set of rules if the value was
|
|
2351
|
+
# returned by the previous operation.
|
|
2352
|
+
# @return [String]
|
|
2353
|
+
#
|
|
2354
|
+
# @!attribute [rw] max_results
|
|
2355
|
+
# The maximum number of results to return in one operation. If you
|
|
2356
|
+
# omit this parameter, the default number is used. The default number
|
|
2357
|
+
# is `100`.
|
|
2358
|
+
# @return [Integer]
|
|
2359
|
+
#
|
|
2360
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListManagedInsightRulesInput AWS API Documentation
|
|
2361
|
+
#
|
|
2362
|
+
class ListManagedInsightRulesInput < Struct.new(
|
|
2363
|
+
:resource_arn,
|
|
2364
|
+
:next_token,
|
|
2365
|
+
:max_results)
|
|
2366
|
+
SENSITIVE = []
|
|
2367
|
+
include Aws::Structure
|
|
2368
|
+
end
|
|
2369
|
+
|
|
2370
|
+
# @!attribute [rw] managed_rules
|
|
2371
|
+
# The managed rules that are available for the specified Amazon Web
|
|
2372
|
+
# Services resource.
|
|
2373
|
+
# @return [Array<Types::ManagedRuleDescription>]
|
|
2374
|
+
#
|
|
2375
|
+
# @!attribute [rw] next_token
|
|
2376
|
+
# Include this value to get the next set of rules if the value was
|
|
2377
|
+
# returned by the previous operation.
|
|
2378
|
+
# @return [String]
|
|
2379
|
+
#
|
|
2380
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListManagedInsightRulesOutput AWS API Documentation
|
|
2381
|
+
#
|
|
2382
|
+
class ListManagedInsightRulesOutput < Struct.new(
|
|
2383
|
+
:managed_rules,
|
|
2384
|
+
:next_token)
|
|
2385
|
+
SENSITIVE = []
|
|
2386
|
+
include Aws::Structure
|
|
2387
|
+
end
|
|
2388
|
+
|
|
2330
2389
|
# @note When making an API call, you may pass ListMetricStreamsInput
|
|
2331
2390
|
# data as a hash:
|
|
2332
2391
|
#
|
|
@@ -2496,6 +2555,106 @@ module Aws::CloudWatch
|
|
|
2496
2555
|
include Aws::Structure
|
|
2497
2556
|
end
|
|
2498
2557
|
|
|
2558
|
+
# Contains the information that's required to enable a managed
|
|
2559
|
+
# Contributor Insights rule for an Amazon Web Services resource.
|
|
2560
|
+
#
|
|
2561
|
+
# @note When making an API call, you may pass ManagedRule
|
|
2562
|
+
# data as a hash:
|
|
2563
|
+
#
|
|
2564
|
+
# {
|
|
2565
|
+
# template_name: "TemplateName", # required
|
|
2566
|
+
# resource_arn: "AmazonResourceName", # required
|
|
2567
|
+
# tags: [
|
|
2568
|
+
# {
|
|
2569
|
+
# key: "TagKey", # required
|
|
2570
|
+
# value: "TagValue", # required
|
|
2571
|
+
# },
|
|
2572
|
+
# ],
|
|
2573
|
+
# }
|
|
2574
|
+
#
|
|
2575
|
+
# @!attribute [rw] template_name
|
|
2576
|
+
# The template name for the managed Contributor Insights rule, as
|
|
2577
|
+
# returned by `ListManagedInsightRules`.
|
|
2578
|
+
# @return [String]
|
|
2579
|
+
#
|
|
2580
|
+
# @!attribute [rw] resource_arn
|
|
2581
|
+
# The ARN of an Amazon Web Services resource that has managed
|
|
2582
|
+
# Contributor Insights rules.
|
|
2583
|
+
# @return [String]
|
|
2584
|
+
#
|
|
2585
|
+
# @!attribute [rw] tags
|
|
2586
|
+
# A list of key-value pairs that you can associate with a managed
|
|
2587
|
+
# Contributor Insights rule. You can associate as many as 50 tags with
|
|
2588
|
+
# a rule. Tags can help you organize and categorize your resources.
|
|
2589
|
+
# You also can use them to scope user permissions by granting a user
|
|
2590
|
+
# permission to access or change only the resources that have certain
|
|
2591
|
+
# tag values. To associate tags with a rule, you must have the
|
|
2592
|
+
# `cloudwatch:TagResource` permission in addition to the
|
|
2593
|
+
# `cloudwatch:PutInsightRule` permission. If you are using this
|
|
2594
|
+
# operation to update an existing Contributor Insights rule, any tags
|
|
2595
|
+
# that you specify in this parameter are ignored. To change the tags
|
|
2596
|
+
# of an existing rule, use `TagResource`.
|
|
2597
|
+
# @return [Array<Types::Tag>]
|
|
2598
|
+
#
|
|
2599
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ManagedRule AWS API Documentation
|
|
2600
|
+
#
|
|
2601
|
+
class ManagedRule < Struct.new(
|
|
2602
|
+
:template_name,
|
|
2603
|
+
:resource_arn,
|
|
2604
|
+
:tags)
|
|
2605
|
+
SENSITIVE = []
|
|
2606
|
+
include Aws::Structure
|
|
2607
|
+
end
|
|
2608
|
+
|
|
2609
|
+
# Contains information about managed Contributor Insights rules, as
|
|
2610
|
+
# returned by `ListManagedInsightRules`.
|
|
2611
|
+
#
|
|
2612
|
+
# @!attribute [rw] template_name
|
|
2613
|
+
# The template name for the managed rule. Used to enable managed rules
|
|
2614
|
+
# using `PutManagedInsightRules`.
|
|
2615
|
+
# @return [String]
|
|
2616
|
+
#
|
|
2617
|
+
# @!attribute [rw] resource_arn
|
|
2618
|
+
# If a managed rule is enabled, this is the ARN for the related Amazon
|
|
2619
|
+
# Web Services resource.
|
|
2620
|
+
# @return [String]
|
|
2621
|
+
#
|
|
2622
|
+
# @!attribute [rw] rule_state
|
|
2623
|
+
# Describes the state of a managed rule. If present, it contains
|
|
2624
|
+
# information about the Contributor Insights rule that contains
|
|
2625
|
+
# information about the related Amazon Web Services resource.
|
|
2626
|
+
# @return [Types::ManagedRuleState]
|
|
2627
|
+
#
|
|
2628
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ManagedRuleDescription AWS API Documentation
|
|
2629
|
+
#
|
|
2630
|
+
class ManagedRuleDescription < Struct.new(
|
|
2631
|
+
:template_name,
|
|
2632
|
+
:resource_arn,
|
|
2633
|
+
:rule_state)
|
|
2634
|
+
SENSITIVE = []
|
|
2635
|
+
include Aws::Structure
|
|
2636
|
+
end
|
|
2637
|
+
|
|
2638
|
+
# The status of a managed Contributor Insights rule.
|
|
2639
|
+
#
|
|
2640
|
+
# @!attribute [rw] rule_name
|
|
2641
|
+
# The name of the Contributor Insights rule that contains data for the
|
|
2642
|
+
# specified Amazon Web Services resource.
|
|
2643
|
+
# @return [String]
|
|
2644
|
+
#
|
|
2645
|
+
# @!attribute [rw] state
|
|
2646
|
+
# Indicates whether the rule is enabled or disabled.
|
|
2647
|
+
# @return [String]
|
|
2648
|
+
#
|
|
2649
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ManagedRuleState AWS API Documentation
|
|
2650
|
+
#
|
|
2651
|
+
class ManagedRuleState < Struct.new(
|
|
2652
|
+
:rule_name,
|
|
2653
|
+
:state)
|
|
2654
|
+
SENSITIVE = []
|
|
2655
|
+
include Aws::Structure
|
|
2656
|
+
end
|
|
2657
|
+
|
|
2499
2658
|
# A message returned by the `GetMetricData`API, including a code and a
|
|
2500
2659
|
# description.
|
|
2501
2660
|
#
|
|
@@ -3011,7 +3170,7 @@ module Aws::CloudWatch
|
|
|
3011
3170
|
# period. Each unique value is listed just once in this array, and the
|
|
3012
3171
|
# corresponding number in the `Counts` array specifies the number of
|
|
3013
3172
|
# times that value occurred during the period. You can include up to
|
|
3014
|
-
#
|
|
3173
|
+
# 150 unique values in each `PutMetricData` action that specifies a
|
|
3015
3174
|
# `Values` array.
|
|
3016
3175
|
#
|
|
3017
3176
|
# Although the `Values` array accepts numbers of type `Double`,
|
|
@@ -3859,6 +4018,48 @@ module Aws::CloudWatch
|
|
|
3859
4018
|
#
|
|
3860
4019
|
class PutInsightRuleOutput < Aws::EmptyStructure; end
|
|
3861
4020
|
|
|
4021
|
+
# @note When making an API call, you may pass PutManagedInsightRulesInput
|
|
4022
|
+
# data as a hash:
|
|
4023
|
+
#
|
|
4024
|
+
# {
|
|
4025
|
+
# managed_rules: [ # required
|
|
4026
|
+
# {
|
|
4027
|
+
# template_name: "TemplateName", # required
|
|
4028
|
+
# resource_arn: "AmazonResourceName", # required
|
|
4029
|
+
# tags: [
|
|
4030
|
+
# {
|
|
4031
|
+
# key: "TagKey", # required
|
|
4032
|
+
# value: "TagValue", # required
|
|
4033
|
+
# },
|
|
4034
|
+
# ],
|
|
4035
|
+
# },
|
|
4036
|
+
# ],
|
|
4037
|
+
# }
|
|
4038
|
+
#
|
|
4039
|
+
# @!attribute [rw] managed_rules
|
|
4040
|
+
# A list of `ManagedRules` to enable.
|
|
4041
|
+
# @return [Array<Types::ManagedRule>]
|
|
4042
|
+
#
|
|
4043
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutManagedInsightRulesInput AWS API Documentation
|
|
4044
|
+
#
|
|
4045
|
+
class PutManagedInsightRulesInput < Struct.new(
|
|
4046
|
+
:managed_rules)
|
|
4047
|
+
SENSITIVE = []
|
|
4048
|
+
include Aws::Structure
|
|
4049
|
+
end
|
|
4050
|
+
|
|
4051
|
+
# @!attribute [rw] failures
|
|
4052
|
+
# An array that lists the rules that could not be enabled.
|
|
4053
|
+
# @return [Array<Types::PartialFailure>]
|
|
4054
|
+
#
|
|
4055
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutManagedInsightRulesOutput AWS API Documentation
|
|
4056
|
+
#
|
|
4057
|
+
class PutManagedInsightRulesOutput < Struct.new(
|
|
4058
|
+
:failures)
|
|
4059
|
+
SENSITIVE = []
|
|
4060
|
+
include Aws::Structure
|
|
4061
|
+
end
|
|
4062
|
+
|
|
3862
4063
|
# @note When making an API call, you may pass PutMetricAlarmInput
|
|
3863
4064
|
# data as a hash:
|
|
3864
4065
|
#
|
data/lib/aws-sdk-cloudwatch.rb
CHANGED
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.67.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: 2022-08-
|
|
11
|
+
date: 2022-08-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-core
|