aws-sdk-cloudwatch 1.30.0 → 1.31.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,6 +27,7 @@ module Aws::CloudWatch
27
27
  AnomalyDetectorMetricTimezone = Shapes::StringShape.new(name: 'AnomalyDetectorMetricTimezone')
28
28
  AnomalyDetectors = Shapes::ListShape.new(name: 'AnomalyDetectors')
29
29
  AwsQueryErrorMessage = Shapes::StringShape.new(name: 'AwsQueryErrorMessage')
30
+ BatchFailures = Shapes::ListShape.new(name: 'BatchFailures')
30
31
  ComparisonOperator = Shapes::StringShape.new(name: 'ComparisonOperator')
31
32
  ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
32
33
  Counts = Shapes::ListShape.new(name: 'Counts')
@@ -54,6 +55,8 @@ module Aws::CloudWatch
54
55
  DeleteAnomalyDetectorOutput = Shapes::StructureShape.new(name: 'DeleteAnomalyDetectorOutput')
55
56
  DeleteDashboardsInput = Shapes::StructureShape.new(name: 'DeleteDashboardsInput')
56
57
  DeleteDashboardsOutput = Shapes::StructureShape.new(name: 'DeleteDashboardsOutput')
58
+ DeleteInsightRulesInput = Shapes::StructureShape.new(name: 'DeleteInsightRulesInput')
59
+ DeleteInsightRulesOutput = Shapes::StructureShape.new(name: 'DeleteInsightRulesOutput')
57
60
  DescribeAlarmHistoryInput = Shapes::StructureShape.new(name: 'DescribeAlarmHistoryInput')
58
61
  DescribeAlarmHistoryOutput = Shapes::StructureShape.new(name: 'DescribeAlarmHistoryOutput')
59
62
  DescribeAlarmsForMetricInput = Shapes::StructureShape.new(name: 'DescribeAlarmsForMetricInput')
@@ -62,6 +65,8 @@ module Aws::CloudWatch
62
65
  DescribeAlarmsOutput = Shapes::StructureShape.new(name: 'DescribeAlarmsOutput')
63
66
  DescribeAnomalyDetectorsInput = Shapes::StructureShape.new(name: 'DescribeAnomalyDetectorsInput')
64
67
  DescribeAnomalyDetectorsOutput = Shapes::StructureShape.new(name: 'DescribeAnomalyDetectorsOutput')
68
+ DescribeInsightRulesInput = Shapes::StructureShape.new(name: 'DescribeInsightRulesInput')
69
+ DescribeInsightRulesOutput = Shapes::StructureShape.new(name: 'DescribeInsightRulesOutput')
65
70
  Dimension = Shapes::StructureShape.new(name: 'Dimension')
66
71
  DimensionFilter = Shapes::StructureShape.new(name: 'DimensionFilter')
67
72
  DimensionFilters = Shapes::ListShape.new(name: 'DimensionFilters')
@@ -69,15 +74,25 @@ module Aws::CloudWatch
69
74
  DimensionValue = Shapes::StringShape.new(name: 'DimensionValue')
70
75
  Dimensions = Shapes::ListShape.new(name: 'Dimensions')
71
76
  DisableAlarmActionsInput = Shapes::StructureShape.new(name: 'DisableAlarmActionsInput')
77
+ DisableInsightRulesInput = Shapes::StructureShape.new(name: 'DisableInsightRulesInput')
78
+ DisableInsightRulesOutput = Shapes::StructureShape.new(name: 'DisableInsightRulesOutput')
72
79
  EnableAlarmActionsInput = Shapes::StructureShape.new(name: 'EnableAlarmActionsInput')
80
+ EnableInsightRulesInput = Shapes::StructureShape.new(name: 'EnableInsightRulesInput')
81
+ EnableInsightRulesOutput = Shapes::StructureShape.new(name: 'EnableInsightRulesOutput')
73
82
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
74
83
  EvaluateLowSampleCountPercentile = Shapes::StringShape.new(name: 'EvaluateLowSampleCountPercentile')
75
84
  EvaluationPeriods = Shapes::IntegerShape.new(name: 'EvaluationPeriods')
85
+ ExceptionType = Shapes::StringShape.new(name: 'ExceptionType')
76
86
  ExtendedStatistic = Shapes::StringShape.new(name: 'ExtendedStatistic')
77
87
  ExtendedStatistics = Shapes::ListShape.new(name: 'ExtendedStatistics')
88
+ FailureCode = Shapes::StringShape.new(name: 'FailureCode')
89
+ FailureDescription = Shapes::StringShape.new(name: 'FailureDescription')
90
+ FailureResource = Shapes::StringShape.new(name: 'FailureResource')
78
91
  FaultDescription = Shapes::StringShape.new(name: 'FaultDescription')
79
92
  GetDashboardInput = Shapes::StructureShape.new(name: 'GetDashboardInput')
80
93
  GetDashboardOutput = Shapes::StructureShape.new(name: 'GetDashboardOutput')
94
+ GetInsightRuleReportInput = Shapes::StructureShape.new(name: 'GetInsightRuleReportInput')
95
+ GetInsightRuleReportOutput = Shapes::StructureShape.new(name: 'GetInsightRuleReportOutput')
81
96
  GetMetricDataInput = Shapes::StructureShape.new(name: 'GetMetricDataInput')
82
97
  GetMetricDataMaxDatapoints = Shapes::IntegerShape.new(name: 'GetMetricDataMaxDatapoints')
83
98
  GetMetricDataOutput = Shapes::StructureShape.new(name: 'GetMetricDataOutput')
@@ -88,6 +103,31 @@ module Aws::CloudWatch
88
103
  HistoryData = Shapes::StringShape.new(name: 'HistoryData')
89
104
  HistoryItemType = Shapes::StringShape.new(name: 'HistoryItemType')
90
105
  HistorySummary = Shapes::StringShape.new(name: 'HistorySummary')
106
+ InsightRule = Shapes::StructureShape.new(name: 'InsightRule')
107
+ InsightRuleAggregationStatistic = Shapes::StringShape.new(name: 'InsightRuleAggregationStatistic')
108
+ InsightRuleContributor = Shapes::StructureShape.new(name: 'InsightRuleContributor')
109
+ InsightRuleContributorDatapoint = Shapes::StructureShape.new(name: 'InsightRuleContributorDatapoint')
110
+ InsightRuleContributorDatapoints = Shapes::ListShape.new(name: 'InsightRuleContributorDatapoints')
111
+ InsightRuleContributorKey = Shapes::StringShape.new(name: 'InsightRuleContributorKey')
112
+ InsightRuleContributorKeyLabel = Shapes::StringShape.new(name: 'InsightRuleContributorKeyLabel')
113
+ InsightRuleContributorKeyLabels = Shapes::ListShape.new(name: 'InsightRuleContributorKeyLabels')
114
+ InsightRuleContributorKeys = Shapes::ListShape.new(name: 'InsightRuleContributorKeys')
115
+ InsightRuleContributors = Shapes::ListShape.new(name: 'InsightRuleContributors')
116
+ InsightRuleDefinition = Shapes::StringShape.new(name: 'InsightRuleDefinition')
117
+ InsightRuleMaxResults = Shapes::IntegerShape.new(name: 'InsightRuleMaxResults')
118
+ InsightRuleMetricDatapoint = Shapes::StructureShape.new(name: 'InsightRuleMetricDatapoint')
119
+ InsightRuleMetricDatapoints = Shapes::ListShape.new(name: 'InsightRuleMetricDatapoints')
120
+ InsightRuleMetricList = Shapes::ListShape.new(name: 'InsightRuleMetricList')
121
+ InsightRuleMetricName = Shapes::StringShape.new(name: 'InsightRuleMetricName')
122
+ InsightRuleName = Shapes::StringShape.new(name: 'InsightRuleName')
123
+ InsightRuleNames = Shapes::ListShape.new(name: 'InsightRuleNames')
124
+ InsightRuleOrderBy = Shapes::StringShape.new(name: 'InsightRuleOrderBy')
125
+ InsightRuleSchema = Shapes::StringShape.new(name: 'InsightRuleSchema')
126
+ InsightRuleState = Shapes::StringShape.new(name: 'InsightRuleState')
127
+ InsightRuleUnboundDouble = Shapes::FloatShape.new(name: 'InsightRuleUnboundDouble')
128
+ InsightRuleUnboundInteger = Shapes::IntegerShape.new(name: 'InsightRuleUnboundInteger')
129
+ InsightRuleUnboundLong = Shapes::IntegerShape.new(name: 'InsightRuleUnboundLong')
130
+ InsightRules = Shapes::ListShape.new(name: 'InsightRules')
91
131
  InternalServiceFault = Shapes::StructureShape.new(name: 'InternalServiceFault')
92
132
  InvalidFormatFault = Shapes::StructureShape.new(name: 'InvalidFormatFault')
93
133
  InvalidNextToken = Shapes::StructureShape.new(name: 'InvalidNextToken')
@@ -130,11 +170,14 @@ module Aws::CloudWatch
130
170
  Namespace = Shapes::StringShape.new(name: 'Namespace')
131
171
  NextToken = Shapes::StringShape.new(name: 'NextToken')
132
172
  OutputFormat = Shapes::StringShape.new(name: 'OutputFormat')
173
+ PartialFailure = Shapes::StructureShape.new(name: 'PartialFailure')
133
174
  Period = Shapes::IntegerShape.new(name: 'Period')
134
175
  PutAnomalyDetectorInput = Shapes::StructureShape.new(name: 'PutAnomalyDetectorInput')
135
176
  PutAnomalyDetectorOutput = Shapes::StructureShape.new(name: 'PutAnomalyDetectorOutput')
136
177
  PutDashboardInput = Shapes::StructureShape.new(name: 'PutDashboardInput')
137
178
  PutDashboardOutput = Shapes::StructureShape.new(name: 'PutDashboardOutput')
179
+ PutInsightRuleInput = Shapes::StructureShape.new(name: 'PutInsightRuleInput')
180
+ PutInsightRuleOutput = Shapes::StructureShape.new(name: 'PutInsightRuleOutput')
138
181
  PutMetricAlarmInput = Shapes::StructureShape.new(name: 'PutMetricAlarmInput')
139
182
  PutMetricDataInput = Shapes::StructureShape.new(name: 'PutMetricDataInput')
140
183
  Range = Shapes::StructureShape.new(name: 'Range')
@@ -199,6 +242,8 @@ module Aws::CloudWatch
199
242
 
200
243
  AnomalyDetectors.member = Shapes::ShapeRef.new(shape: AnomalyDetector)
201
244
 
245
+ BatchFailures.member = Shapes::ShapeRef.new(shape: PartialFailure)
246
+
202
247
  Counts.member = Shapes::ShapeRef.new(shape: DatapointValue)
203
248
 
204
249
  DashboardEntries.member = Shapes::ShapeRef.new(shape: DashboardEntry)
@@ -257,6 +302,12 @@ module Aws::CloudWatch
257
302
 
258
303
  DeleteDashboardsOutput.struct_class = Types::DeleteDashboardsOutput
259
304
 
305
+ DeleteInsightRulesInput.add_member(:rule_names, Shapes::ShapeRef.new(shape: InsightRuleNames, required: true, location_name: "RuleNames"))
306
+ DeleteInsightRulesInput.struct_class = Types::DeleteInsightRulesInput
307
+
308
+ DeleteInsightRulesOutput.add_member(:failures, Shapes::ShapeRef.new(shape: BatchFailures, location_name: "Failures"))
309
+ DeleteInsightRulesOutput.struct_class = Types::DeleteInsightRulesOutput
310
+
260
311
  DescribeAlarmHistoryInput.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, location_name: "AlarmName"))
261
312
  DescribeAlarmHistoryInput.add_member(:history_item_type, Shapes::ShapeRef.new(shape: HistoryItemType, location_name: "HistoryItemType"))
262
313
  DescribeAlarmHistoryInput.add_member(:start_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StartDate"))
@@ -304,6 +355,14 @@ module Aws::CloudWatch
304
355
  DescribeAnomalyDetectorsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
305
356
  DescribeAnomalyDetectorsOutput.struct_class = Types::DescribeAnomalyDetectorsOutput
306
357
 
358
+ DescribeInsightRulesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
359
+ DescribeInsightRulesInput.add_member(:max_results, Shapes::ShapeRef.new(shape: InsightRuleMaxResults, location_name: "MaxResults"))
360
+ DescribeInsightRulesInput.struct_class = Types::DescribeInsightRulesInput
361
+
362
+ DescribeInsightRulesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
363
+ DescribeInsightRulesOutput.add_member(:insight_rules, Shapes::ShapeRef.new(shape: InsightRules, location_name: "InsightRules"))
364
+ DescribeInsightRulesOutput.struct_class = Types::DescribeInsightRulesOutput
365
+
307
366
  Dimension.add_member(:name, Shapes::ShapeRef.new(shape: DimensionName, required: true, location_name: "Name"))
308
367
  Dimension.add_member(:value, Shapes::ShapeRef.new(shape: DimensionValue, required: true, location_name: "Value"))
309
368
  Dimension.struct_class = Types::Dimension
@@ -319,9 +378,21 @@ module Aws::CloudWatch
319
378
  DisableAlarmActionsInput.add_member(:alarm_names, Shapes::ShapeRef.new(shape: AlarmNames, required: true, location_name: "AlarmNames"))
320
379
  DisableAlarmActionsInput.struct_class = Types::DisableAlarmActionsInput
321
380
 
381
+ DisableInsightRulesInput.add_member(:rule_names, Shapes::ShapeRef.new(shape: InsightRuleNames, required: true, location_name: "RuleNames"))
382
+ DisableInsightRulesInput.struct_class = Types::DisableInsightRulesInput
383
+
384
+ DisableInsightRulesOutput.add_member(:failures, Shapes::ShapeRef.new(shape: BatchFailures, location_name: "Failures"))
385
+ DisableInsightRulesOutput.struct_class = Types::DisableInsightRulesOutput
386
+
322
387
  EnableAlarmActionsInput.add_member(:alarm_names, Shapes::ShapeRef.new(shape: AlarmNames, required: true, location_name: "AlarmNames"))
323
388
  EnableAlarmActionsInput.struct_class = Types::EnableAlarmActionsInput
324
389
 
390
+ EnableInsightRulesInput.add_member(:rule_names, Shapes::ShapeRef.new(shape: InsightRuleNames, required: true, location_name: "RuleNames"))
391
+ EnableInsightRulesInput.struct_class = Types::EnableInsightRulesInput
392
+
393
+ EnableInsightRulesOutput.add_member(:failures, Shapes::ShapeRef.new(shape: BatchFailures, location_name: "Failures"))
394
+ EnableInsightRulesOutput.struct_class = Types::EnableInsightRulesOutput
395
+
325
396
  ExtendedStatistics.member = Shapes::ShapeRef.new(shape: ExtendedStatistic)
326
397
 
327
398
  GetDashboardInput.add_member(:dashboard_name, Shapes::ShapeRef.new(shape: DashboardName, required: true, location_name: "DashboardName"))
@@ -332,6 +403,23 @@ module Aws::CloudWatch
332
403
  GetDashboardOutput.add_member(:dashboard_name, Shapes::ShapeRef.new(shape: DashboardName, location_name: "DashboardName"))
333
404
  GetDashboardOutput.struct_class = Types::GetDashboardOutput
334
405
 
406
+ GetInsightRuleReportInput.add_member(:rule_name, Shapes::ShapeRef.new(shape: InsightRuleName, required: true, location_name: "RuleName"))
407
+ GetInsightRuleReportInput.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "StartTime"))
408
+ GetInsightRuleReportInput.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "EndTime"))
409
+ GetInsightRuleReportInput.add_member(:period, Shapes::ShapeRef.new(shape: Period, required: true, location_name: "Period"))
410
+ GetInsightRuleReportInput.add_member(:max_contributor_count, Shapes::ShapeRef.new(shape: InsightRuleUnboundInteger, location_name: "MaxContributorCount"))
411
+ GetInsightRuleReportInput.add_member(:metrics, Shapes::ShapeRef.new(shape: InsightRuleMetricList, location_name: "Metrics"))
412
+ GetInsightRuleReportInput.add_member(:order_by, Shapes::ShapeRef.new(shape: InsightRuleOrderBy, location_name: "OrderBy"))
413
+ GetInsightRuleReportInput.struct_class = Types::GetInsightRuleReportInput
414
+
415
+ GetInsightRuleReportOutput.add_member(:key_labels, Shapes::ShapeRef.new(shape: InsightRuleContributorKeyLabels, location_name: "KeyLabels"))
416
+ GetInsightRuleReportOutput.add_member(:aggregation_statistic, Shapes::ShapeRef.new(shape: InsightRuleAggregationStatistic, location_name: "AggregationStatistic"))
417
+ GetInsightRuleReportOutput.add_member(:aggregate_value, Shapes::ShapeRef.new(shape: InsightRuleUnboundDouble, location_name: "AggregateValue"))
418
+ GetInsightRuleReportOutput.add_member(:approximate_unique_count, Shapes::ShapeRef.new(shape: InsightRuleUnboundLong, location_name: "ApproximateUniqueCount"))
419
+ GetInsightRuleReportOutput.add_member(:contributors, Shapes::ShapeRef.new(shape: InsightRuleContributors, location_name: "Contributors"))
420
+ GetInsightRuleReportOutput.add_member(:metric_datapoints, Shapes::ShapeRef.new(shape: InsightRuleMetricDatapoints, location_name: "MetricDatapoints"))
421
+ GetInsightRuleReportOutput.struct_class = Types::GetInsightRuleReportOutput
422
+
335
423
  GetMetricDataInput.add_member(:metric_data_queries, Shapes::ShapeRef.new(shape: MetricDataQueries, required: true, location_name: "MetricDataQueries"))
336
424
  GetMetricDataInput.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "StartTime"))
337
425
  GetMetricDataInput.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "EndTime"))
@@ -367,6 +455,47 @@ module Aws::CloudWatch
367
455
  GetMetricWidgetImageOutput.add_member(:metric_widget_image, Shapes::ShapeRef.new(shape: MetricWidgetImage, location_name: "MetricWidgetImage"))
368
456
  GetMetricWidgetImageOutput.struct_class = Types::GetMetricWidgetImageOutput
369
457
 
458
+ InsightRule.add_member(:name, Shapes::ShapeRef.new(shape: InsightRuleName, required: true, location_name: "Name"))
459
+ InsightRule.add_member(:state, Shapes::ShapeRef.new(shape: InsightRuleState, required: true, location_name: "State"))
460
+ InsightRule.add_member(:schema, Shapes::ShapeRef.new(shape: InsightRuleSchema, required: true, location_name: "Schema"))
461
+ InsightRule.add_member(:definition, Shapes::ShapeRef.new(shape: InsightRuleDefinition, required: true, location_name: "Definition"))
462
+ InsightRule.struct_class = Types::InsightRule
463
+
464
+ InsightRuleContributor.add_member(:keys, Shapes::ShapeRef.new(shape: InsightRuleContributorKeys, required: true, location_name: "Keys"))
465
+ InsightRuleContributor.add_member(:approximate_aggregate_value, Shapes::ShapeRef.new(shape: InsightRuleUnboundDouble, required: true, location_name: "ApproximateAggregateValue"))
466
+ InsightRuleContributor.add_member(:datapoints, Shapes::ShapeRef.new(shape: InsightRuleContributorDatapoints, required: true, location_name: "Datapoints"))
467
+ InsightRuleContributor.struct_class = Types::InsightRuleContributor
468
+
469
+ InsightRuleContributorDatapoint.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "Timestamp"))
470
+ InsightRuleContributorDatapoint.add_member(:approximate_value, Shapes::ShapeRef.new(shape: InsightRuleUnboundDouble, required: true, location_name: "ApproximateValue"))
471
+ InsightRuleContributorDatapoint.struct_class = Types::InsightRuleContributorDatapoint
472
+
473
+ InsightRuleContributorDatapoints.member = Shapes::ShapeRef.new(shape: InsightRuleContributorDatapoint)
474
+
475
+ InsightRuleContributorKeyLabels.member = Shapes::ShapeRef.new(shape: InsightRuleContributorKeyLabel)
476
+
477
+ InsightRuleContributorKeys.member = Shapes::ShapeRef.new(shape: InsightRuleContributorKey)
478
+
479
+ InsightRuleContributors.member = Shapes::ShapeRef.new(shape: InsightRuleContributor)
480
+
481
+ InsightRuleMetricDatapoint.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "Timestamp"))
482
+ InsightRuleMetricDatapoint.add_member(:unique_contributors, Shapes::ShapeRef.new(shape: InsightRuleUnboundDouble, location_name: "UniqueContributors"))
483
+ InsightRuleMetricDatapoint.add_member(:max_contributor_value, Shapes::ShapeRef.new(shape: InsightRuleUnboundDouble, location_name: "MaxContributorValue"))
484
+ InsightRuleMetricDatapoint.add_member(:sample_count, Shapes::ShapeRef.new(shape: InsightRuleUnboundDouble, location_name: "SampleCount"))
485
+ InsightRuleMetricDatapoint.add_member(:average, Shapes::ShapeRef.new(shape: InsightRuleUnboundDouble, location_name: "Average"))
486
+ InsightRuleMetricDatapoint.add_member(:sum, Shapes::ShapeRef.new(shape: InsightRuleUnboundDouble, location_name: "Sum"))
487
+ InsightRuleMetricDatapoint.add_member(:minimum, Shapes::ShapeRef.new(shape: InsightRuleUnboundDouble, location_name: "Minimum"))
488
+ InsightRuleMetricDatapoint.add_member(:maximum, Shapes::ShapeRef.new(shape: InsightRuleUnboundDouble, location_name: "Maximum"))
489
+ InsightRuleMetricDatapoint.struct_class = Types::InsightRuleMetricDatapoint
490
+
491
+ InsightRuleMetricDatapoints.member = Shapes::ShapeRef.new(shape: InsightRuleMetricDatapoint)
492
+
493
+ InsightRuleMetricList.member = Shapes::ShapeRef.new(shape: InsightRuleMetricName)
494
+
495
+ InsightRuleNames.member = Shapes::ShapeRef.new(shape: InsightRuleName)
496
+
497
+ InsightRules.member = Shapes::ShapeRef.new(shape: InsightRule)
498
+
370
499
  InternalServiceFault.add_member(:message, Shapes::ShapeRef.new(shape: FaultDescription, location_name: "Message"))
371
500
  InternalServiceFault.struct_class = Types::InternalServiceFault
372
501
 
@@ -495,6 +624,12 @@ module Aws::CloudWatch
495
624
  MissingRequiredParameterException.add_member(:message, Shapes::ShapeRef.new(shape: AwsQueryErrorMessage, location_name: "message"))
496
625
  MissingRequiredParameterException.struct_class = Types::MissingRequiredParameterException
497
626
 
627
+ PartialFailure.add_member(:failure_resource, Shapes::ShapeRef.new(shape: FailureResource, location_name: "FailureResource"))
628
+ PartialFailure.add_member(:exception_type, Shapes::ShapeRef.new(shape: ExceptionType, location_name: "ExceptionType"))
629
+ PartialFailure.add_member(:failure_code, Shapes::ShapeRef.new(shape: FailureCode, location_name: "FailureCode"))
630
+ PartialFailure.add_member(:failure_description, Shapes::ShapeRef.new(shape: FailureDescription, location_name: "FailureDescription"))
631
+ PartialFailure.struct_class = Types::PartialFailure
632
+
498
633
  PutAnomalyDetectorInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, required: true, location_name: "Namespace"))
499
634
  PutAnomalyDetectorInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricName"))
500
635
  PutAnomalyDetectorInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
@@ -511,6 +646,13 @@ module Aws::CloudWatch
511
646
  PutDashboardOutput.add_member(:dashboard_validation_messages, Shapes::ShapeRef.new(shape: DashboardValidationMessages, location_name: "DashboardValidationMessages"))
512
647
  PutDashboardOutput.struct_class = Types::PutDashboardOutput
513
648
 
649
+ PutInsightRuleInput.add_member(:rule_name, Shapes::ShapeRef.new(shape: InsightRuleName, required: true, location_name: "RuleName"))
650
+ PutInsightRuleInput.add_member(:rule_state, Shapes::ShapeRef.new(shape: InsightRuleState, location_name: "RuleState"))
651
+ PutInsightRuleInput.add_member(:rule_definition, Shapes::ShapeRef.new(shape: InsightRuleDefinition, required: true, location_name: "RuleDefinition"))
652
+ PutInsightRuleInput.struct_class = Types::PutInsightRuleInput
653
+
654
+ PutInsightRuleOutput.struct_class = Types::PutInsightRuleOutput
655
+
514
656
  PutMetricAlarmInput.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, required: true, location_name: "AlarmName"))
515
657
  PutMetricAlarmInput.add_member(:alarm_description, Shapes::ShapeRef.new(shape: AlarmDescription, location_name: "AlarmDescription"))
516
658
  PutMetricAlarmInput.add_member(:actions_enabled, Shapes::ShapeRef.new(shape: ActionsEnabled, location_name: "ActionsEnabled"))
@@ -640,6 +782,16 @@ module Aws::CloudWatch
640
782
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
641
783
  end)
642
784
 
785
+ api.add_operation(:delete_insight_rules, Seahorse::Model::Operation.new.tap do |o|
786
+ o.name = "DeleteInsightRules"
787
+ o.http_method = "POST"
788
+ o.http_request_uri = "/"
789
+ o.input = Shapes::ShapeRef.new(shape: DeleteInsightRulesInput)
790
+ o.output = Shapes::ShapeRef.new(shape: DeleteInsightRulesOutput)
791
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
792
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
793
+ end)
794
+
643
795
  api.add_operation(:describe_alarm_history, Seahorse::Model::Operation.new.tap do |o|
644
796
  o.name = "DescribeAlarmHistory"
645
797
  o.http_method = "POST"
@@ -689,6 +841,21 @@ module Aws::CloudWatch
689
841
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
690
842
  end)
691
843
 
844
+ api.add_operation(:describe_insight_rules, Seahorse::Model::Operation.new.tap do |o|
845
+ o.name = "DescribeInsightRules"
846
+ o.http_method = "POST"
847
+ o.http_request_uri = "/"
848
+ o.input = Shapes::ShapeRef.new(shape: DescribeInsightRulesInput)
849
+ o.output = Shapes::ShapeRef.new(shape: DescribeInsightRulesOutput)
850
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
851
+ o[:pager] = Aws::Pager.new(
852
+ limit_key: "max_results",
853
+ tokens: {
854
+ "next_token" => "next_token"
855
+ }
856
+ )
857
+ end)
858
+
692
859
  api.add_operation(:disable_alarm_actions, Seahorse::Model::Operation.new.tap do |o|
693
860
  o.name = "DisableAlarmActions"
694
861
  o.http_method = "POST"
@@ -697,6 +864,16 @@ module Aws::CloudWatch
697
864
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
698
865
  end)
699
866
 
867
+ api.add_operation(:disable_insight_rules, Seahorse::Model::Operation.new.tap do |o|
868
+ o.name = "DisableInsightRules"
869
+ o.http_method = "POST"
870
+ o.http_request_uri = "/"
871
+ o.input = Shapes::ShapeRef.new(shape: DisableInsightRulesInput)
872
+ o.output = Shapes::ShapeRef.new(shape: DisableInsightRulesOutput)
873
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
874
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
875
+ end)
876
+
700
877
  api.add_operation(:enable_alarm_actions, Seahorse::Model::Operation.new.tap do |o|
701
878
  o.name = "EnableAlarmActions"
702
879
  o.http_method = "POST"
@@ -705,6 +882,17 @@ module Aws::CloudWatch
705
882
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
706
883
  end)
707
884
 
885
+ api.add_operation(:enable_insight_rules, Seahorse::Model::Operation.new.tap do |o|
886
+ o.name = "EnableInsightRules"
887
+ o.http_method = "POST"
888
+ o.http_request_uri = "/"
889
+ o.input = Shapes::ShapeRef.new(shape: EnableInsightRulesInput)
890
+ o.output = Shapes::ShapeRef.new(shape: EnableInsightRulesOutput)
891
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
892
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
893
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
894
+ end)
895
+
708
896
  api.add_operation(:get_dashboard, Seahorse::Model::Operation.new.tap do |o|
709
897
  o.name = "GetDashboard"
710
898
  o.http_method = "POST"
@@ -716,6 +904,17 @@ module Aws::CloudWatch
716
904
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
717
905
  end)
718
906
 
907
+ api.add_operation(:get_insight_rule_report, Seahorse::Model::Operation.new.tap do |o|
908
+ o.name = "GetInsightRuleReport"
909
+ o.http_method = "POST"
910
+ o.http_request_uri = "/"
911
+ o.input = Shapes::ShapeRef.new(shape: GetInsightRuleReportInput)
912
+ o.output = Shapes::ShapeRef.new(shape: GetInsightRuleReportOutput)
913
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
914
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
915
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
916
+ end)
917
+
719
918
  api.add_operation(:get_metric_data, Seahorse::Model::Operation.new.tap do |o|
720
919
  o.name = "GetMetricData"
721
920
  o.http_method = "POST"
@@ -814,6 +1013,17 @@ module Aws::CloudWatch
814
1013
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
815
1014
  end)
816
1015
 
1016
+ api.add_operation(:put_insight_rule, Seahorse::Model::Operation.new.tap do |o|
1017
+ o.name = "PutInsightRule"
1018
+ o.http_method = "POST"
1019
+ o.http_request_uri = "/"
1020
+ o.input = Shapes::ShapeRef.new(shape: PutInsightRuleInput)
1021
+ o.output = Shapes::ShapeRef.new(shape: PutInsightRuleOutput)
1022
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
1023
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
1024
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1025
+ end)
1026
+
817
1027
  api.add_operation(:put_metric_alarm, Seahorse::Model::Operation.new.tap do |o|
818
1028
  o.name = "PutMetricAlarm"
819
1029
  o.http_method = "POST"
@@ -218,8 +218,8 @@ module Aws::CloudWatch
218
218
  # request.
219
219
  #
220
220
  # The value specified is inclusive; results include data points with the
221
- # specified time stamp. The time stamp must be in ISO 8601 UTC format
222
- # (for example, 2016-10-03T23:00:00Z).
221
+ # specified time stamp. In a raw HTTP query, the time stamp must be in
222
+ # ISO 8601 UTC format (for example, 2016-10-03T23:00:00Z).
223
223
  #
224
224
  # CloudWatch rounds the specified time stamp as follows:
225
225
  #
@@ -246,8 +246,8 @@ module Aws::CloudWatch
246
246
  # The time stamp that determines the last data point to return.
247
247
  #
248
248
  # The value specified is exclusive; results include data points up to
249
- # the specified time stamp. The time stamp must be in ISO 8601 UTC
250
- # format (for example, 2016-10-10T23:00:00Z).
249
+ # the specified time stamp. In a raw HTTP query, the time stamp must be
250
+ # in ISO 8601 UTC format (for example, 2016-10-10T23:00:00Z).
251
251
  # @option options [required, Integer] :period
252
252
  # The granularity, in seconds, of the returned data points. For metrics
253
253
  # with regular resolution, a period can be as short as one minute (60
@@ -491,7 +491,7 @@ module Aws::CloudWatch
491
491
  # day, so this number multiplied by `Period` cannot be more than 86,400
492
492
  # seconds.
493
493
  # @option options [Integer] :datapoints_to_alarm
494
- # The number of datapoints that must be breaching to trigger the alarm.
494
+ # The number of data points that must be breaching to trigger the alarm.
495
495
  # This is used only if you are setting an "M out of N" alarm. In that
496
496
  # case, this value is the M. For more information, see [Evaluating an
497
497
  # Alarm][1] in the *Amazon CloudWatch User Guide*.
@@ -42,7 +42,7 @@ module Aws::CloudWatch
42
42
  end
43
43
 
44
44
  # An anomaly detection model associated with a particular CloudWatch
45
- # metric athresnd statistic. You can use the model to display a band of
45
+ # metric and statistic. You can use the model to display a band of
46
46
  # expected normal values when the metric is graphed.
47
47
  #
48
48
  # @!attribute [rw] namespace
@@ -338,6 +338,37 @@ module Aws::CloudWatch
338
338
  #
339
339
  class DeleteDashboardsOutput < Aws::EmptyStructure; end
340
340
 
341
+ # @note When making an API call, you may pass DeleteInsightRulesInput
342
+ # data as a hash:
343
+ #
344
+ # {
345
+ # rule_names: ["InsightRuleName"], # required
346
+ # }
347
+ #
348
+ # @!attribute [rw] rule_names
349
+ # An array of the rule names to delete. If you need to find out the
350
+ # names of your rules, use DescribeInsightRules.
351
+ # @return [Array<String>]
352
+ #
353
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteInsightRulesInput AWS API Documentation
354
+ #
355
+ class DeleteInsightRulesInput < Struct.new(
356
+ :rule_names)
357
+ include Aws::Structure
358
+ end
359
+
360
+ # @!attribute [rw] failures
361
+ # An array listing the rules that could not be deleted. You cannot
362
+ # delete built-in rules.
363
+ # @return [Array<Types::PartialFailure>]
364
+ #
365
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteInsightRulesOutput AWS API Documentation
366
+ #
367
+ class DeleteInsightRulesOutput < Struct.new(
368
+ :failures)
369
+ include Aws::Structure
370
+ end
371
+
341
372
  # @note When making an API call, you may pass DescribeAlarmHistoryInput
342
373
  # data as a hash:
343
374
  #
@@ -621,6 +652,47 @@ module Aws::CloudWatch
621
652
  include Aws::Structure
622
653
  end
623
654
 
655
+ # @note When making an API call, you may pass DescribeInsightRulesInput
656
+ # data as a hash:
657
+ #
658
+ # {
659
+ # next_token: "NextToken",
660
+ # max_results: 1,
661
+ # }
662
+ #
663
+ # @!attribute [rw] next_token
664
+ # Reserved for future use.
665
+ # @return [String]
666
+ #
667
+ # @!attribute [rw] max_results
668
+ # This parameter is not currently used. Reserved for future use. If it
669
+ # is used in the future, the maximum value may be different.
670
+ # @return [Integer]
671
+ #
672
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeInsightRulesInput AWS API Documentation
673
+ #
674
+ class DescribeInsightRulesInput < Struct.new(
675
+ :next_token,
676
+ :max_results)
677
+ include Aws::Structure
678
+ end
679
+
680
+ # @!attribute [rw] next_token
681
+ # Reserved for future use.
682
+ # @return [String]
683
+ #
684
+ # @!attribute [rw] insight_rules
685
+ # The rules returned by the operation.
686
+ # @return [Array<Types::InsightRule>]
687
+ #
688
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeInsightRulesOutput AWS API Documentation
689
+ #
690
+ class DescribeInsightRulesOutput < Struct.new(
691
+ :next_token,
692
+ :insight_rules)
693
+ include Aws::Structure
694
+ end
695
+
624
696
  # Expands the identity of a metric.
625
697
  #
626
698
  # @note When making an API call, you may pass Dimension
@@ -691,6 +763,37 @@ module Aws::CloudWatch
691
763
  include Aws::Structure
692
764
  end
693
765
 
766
+ # @note When making an API call, you may pass DisableInsightRulesInput
767
+ # data as a hash:
768
+ #
769
+ # {
770
+ # rule_names: ["InsightRuleName"], # required
771
+ # }
772
+ #
773
+ # @!attribute [rw] rule_names
774
+ # An array of the rule names to disable. If you need to find out the
775
+ # names of your rules, use DescribeInsightRules.
776
+ # @return [Array<String>]
777
+ #
778
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableInsightRulesInput AWS API Documentation
779
+ #
780
+ class DisableInsightRulesInput < Struct.new(
781
+ :rule_names)
782
+ include Aws::Structure
783
+ end
784
+
785
+ # @!attribute [rw] failures
786
+ # An array listing the rules that could not be disabled. You cannot
787
+ # disable built-in rules.
788
+ # @return [Array<Types::PartialFailure>]
789
+ #
790
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableInsightRulesOutput AWS API Documentation
791
+ #
792
+ class DisableInsightRulesOutput < Struct.new(
793
+ :failures)
794
+ include Aws::Structure
795
+ end
796
+
694
797
  # @note When making an API call, you may pass EnableAlarmActionsInput
695
798
  # data as a hash:
696
799
  #
@@ -709,6 +812,37 @@ module Aws::CloudWatch
709
812
  include Aws::Structure
710
813
  end
711
814
 
815
+ # @note When making an API call, you may pass EnableInsightRulesInput
816
+ # data as a hash:
817
+ #
818
+ # {
819
+ # rule_names: ["InsightRuleName"], # required
820
+ # }
821
+ #
822
+ # @!attribute [rw] rule_names
823
+ # An array of the rule names to enable. If you need to find out the
824
+ # names of your rules, use DescribeInsightRules.
825
+ # @return [Array<String>]
826
+ #
827
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableInsightRulesInput AWS API Documentation
828
+ #
829
+ class EnableInsightRulesInput < Struct.new(
830
+ :rule_names)
831
+ include Aws::Structure
832
+ end
833
+
834
+ # @!attribute [rw] failures
835
+ # An array listing the rules that could not be enabled. You cannot
836
+ # disable or enable built-in rules.
837
+ # @return [Array<Types::PartialFailure>]
838
+ #
839
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableInsightRulesOutput AWS API Documentation
840
+ #
841
+ class EnableInsightRulesOutput < Struct.new(
842
+ :failures)
843
+ include Aws::Structure
844
+ end
845
+
712
846
  # @note When making an API call, you may pass GetDashboardInput
713
847
  # data as a hash:
714
848
  #
@@ -751,6 +885,141 @@ module Aws::CloudWatch
751
885
  include Aws::Structure
752
886
  end
753
887
 
888
+ # @note When making an API call, you may pass GetInsightRuleReportInput
889
+ # data as a hash:
890
+ #
891
+ # {
892
+ # rule_name: "InsightRuleName", # required
893
+ # start_time: Time.now, # required
894
+ # end_time: Time.now, # required
895
+ # period: 1, # required
896
+ # max_contributor_count: 1,
897
+ # metrics: ["InsightRuleMetricName"],
898
+ # order_by: "InsightRuleOrderBy",
899
+ # }
900
+ #
901
+ # @!attribute [rw] rule_name
902
+ # The name of the rule that you want to see data from.
903
+ # @return [String]
904
+ #
905
+ # @!attribute [rw] start_time
906
+ # The start time of the data to use in the report. When used in a raw
907
+ # HTTP Query API, it is formatted as `yyyy-MM-dd'T'HH:mm:ss`. For
908
+ # example, `2019-07-01T23:59:59`.
909
+ # @return [Time]
910
+ #
911
+ # @!attribute [rw] end_time
912
+ # The end time of the data to use in the report. When used in a raw
913
+ # HTTP Query API, it is formatted as `yyyy-MM-dd'T'HH:mm:ss`. For
914
+ # example, `2019-07-01T23:59:59`.
915
+ # @return [Time]
916
+ #
917
+ # @!attribute [rw] period
918
+ # The period, in seconds, to use for the statistics in the
919
+ # `InsightRuleMetricDatapoint` results.
920
+ # @return [Integer]
921
+ #
922
+ # @!attribute [rw] max_contributor_count
923
+ # The maximum number of contributors to include in the report. The
924
+ # range is 1 to 100. If you omit this, the default of 10 is used.
925
+ # @return [Integer]
926
+ #
927
+ # @!attribute [rw] metrics
928
+ # Specifies which metrics to use for aggregation of contributor values
929
+ # for the report. You can specify one or more of the following
930
+ # metrics:
931
+ #
932
+ # * `UniqueContributors` -- the number of unique contributors for each
933
+ # data point.
934
+ #
935
+ # * `MaxContributorValue` -- the value of the top contributor for each
936
+ # data point. The identity of the contributor may change for each
937
+ # data point in the graph.
938
+ #
939
+ # If this rule aggregates by COUNT, the top contributor for each
940
+ # data point is the contributor with the most occurrences in that
941
+ # period. If the rule aggregates by SUM, the top contributor is the
942
+ # contributor with the highest sum in the log field specified by the
943
+ # rule's `Value`, during that period.
944
+ #
945
+ # * `SampleCount` -- the number of data points matched by the rule.
946
+ #
947
+ # * `Sum` -- the sum of the values from all contributors during the
948
+ # time period represented by that data point.
949
+ #
950
+ # * `Minimum` -- the minimum value from a single observation during
951
+ # the time period represented by that data point.
952
+ #
953
+ # * `Maximum` -- the maximum value from a single observation during
954
+ # the time period represented by that data point.
955
+ #
956
+ # * `Average` -- the average value from all contributors during the
957
+ # time period represented by that data point.
958
+ # @return [Array<String>]
959
+ #
960
+ # @!attribute [rw] order_by
961
+ # Determines what statistic to use to rank the contributors. Valid
962
+ # values are SUM and MAXIMUM.
963
+ # @return [String]
964
+ #
965
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetInsightRuleReportInput AWS API Documentation
966
+ #
967
+ class GetInsightRuleReportInput < Struct.new(
968
+ :rule_name,
969
+ :start_time,
970
+ :end_time,
971
+ :period,
972
+ :max_contributor_count,
973
+ :metrics,
974
+ :order_by)
975
+ include Aws::Structure
976
+ end
977
+
978
+ # @!attribute [rw] key_labels
979
+ # An array of the strings used as the keys for this rule. The keys are
980
+ # the dimensions used to classify contributors. If the rule contains
981
+ # more than one key, then each unique combination of values for the
982
+ # keys is counted as a unique contributor.
983
+ # @return [Array<String>]
984
+ #
985
+ # @!attribute [rw] aggregation_statistic
986
+ # Specifies whether this rule aggregates contributor data by COUNT or
987
+ # SUM.
988
+ # @return [String]
989
+ #
990
+ # @!attribute [rw] aggregate_value
991
+ # The sum of the values from all individual contributors that match
992
+ # the rule.
993
+ # @return [Float]
994
+ #
995
+ # @!attribute [rw] approximate_unique_count
996
+ # An approximate count of the unique contributors found by this rule
997
+ # in this time period.
998
+ # @return [Integer]
999
+ #
1000
+ # @!attribute [rw] contributors
1001
+ # An array of the unique contributors found by this rule in this time
1002
+ # period. If the rule contains multiple keys, each combination of
1003
+ # values for the keys counts as a unique contributor.
1004
+ # @return [Array<Types::InsightRuleContributor>]
1005
+ #
1006
+ # @!attribute [rw] metric_datapoints
1007
+ # A time series of metric data points that matches the time period in
1008
+ # the rule request.
1009
+ # @return [Array<Types::InsightRuleMetricDatapoint>]
1010
+ #
1011
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetInsightRuleReportOutput AWS API Documentation
1012
+ #
1013
+ class GetInsightRuleReportOutput < Struct.new(
1014
+ :key_labels,
1015
+ :aggregation_statistic,
1016
+ :aggregate_value,
1017
+ :approximate_unique_count,
1018
+ :contributors,
1019
+ :metric_datapoints)
1020
+ include Aws::Structure
1021
+ end
1022
+
754
1023
  # @note When making an API call, you may pass GetMetricDataInput
755
1024
  # data as a hash:
756
1025
  #
@@ -955,8 +1224,8 @@ module Aws::CloudWatch
955
1224
  # the request.
956
1225
  #
957
1226
  # The value specified is inclusive; results include data points with
958
- # the specified time stamp. The time stamp must be in ISO 8601 UTC
959
- # format (for example, 2016-10-03T23:00:00Z).
1227
+ # the specified time stamp. In a raw HTTP query, the time stamp must
1228
+ # be in ISO 8601 UTC format (for example, 2016-10-03T23:00:00Z).
960
1229
  #
961
1230
  # CloudWatch rounds the specified time stamp as follows:
962
1231
  #
@@ -985,8 +1254,8 @@ module Aws::CloudWatch
985
1254
  # The time stamp that determines the last data point to return.
986
1255
  #
987
1256
  # The value specified is exclusive; results include data points up to
988
- # the specified time stamp. The time stamp must be in ISO 8601 UTC
989
- # format (for example, 2016-10-10T23:00:00Z).
1257
+ # the specified time stamp. In a raw HTTP query, the time stamp must
1258
+ # be in ISO 8601 UTC format (for example, 2016-10-10T23:00:00Z).
990
1259
  # @return [Time]
991
1260
  #
992
1261
  # @!attribute [rw] period
@@ -1144,6 +1413,181 @@ module Aws::CloudWatch
1144
1413
  include Aws::Structure
1145
1414
  end
1146
1415
 
1416
+ # This structure contains the definition for a Contributor Insights
1417
+ # rule.
1418
+ #
1419
+ # @!attribute [rw] name
1420
+ # The name of the rule.
1421
+ # @return [String]
1422
+ #
1423
+ # @!attribute [rw] state
1424
+ # Indicates whether the rule is enabled or disabled.
1425
+ # @return [String]
1426
+ #
1427
+ # @!attribute [rw] schema
1428
+ # For rules that you create, this is always `\{"Name":
1429
+ # "CloudWatchLogRule", "Version": 1\}`. For built-in rules, this is
1430
+ # `\{"Name": "ServiceLogRule", "Version": 1\}`
1431
+ # @return [String]
1432
+ #
1433
+ # @!attribute [rw] definition
1434
+ # The definition of the rule, as a JSON object. The definition
1435
+ # contains the keywords used to define contributors, the value to
1436
+ # aggregate on if this rule returns a sum instead of a count, and the
1437
+ # filters. For details on the valid syntax, see [Contributor Insights
1438
+ # Rule Syntax][1].
1439
+ #
1440
+ #
1441
+ #
1442
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights-RuleSyntax.html
1443
+ # @return [String]
1444
+ #
1445
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/InsightRule AWS API Documentation
1446
+ #
1447
+ class InsightRule < Struct.new(
1448
+ :name,
1449
+ :state,
1450
+ :schema,
1451
+ :definition)
1452
+ include Aws::Structure
1453
+ end
1454
+
1455
+ # One of the unique contributors found by a Contributor Insights rule.
1456
+ # If the rule contains multiple keys, then a unique contributor is a
1457
+ # unique combination of values from all the keys in the rule.
1458
+ #
1459
+ # If the rule contains a single key, then each unique contributor is
1460
+ # each unique value for this key.
1461
+ #
1462
+ # For more information, see GetInsightRuleReport.
1463
+ #
1464
+ # @!attribute [rw] keys
1465
+ # One of the log entry field keywords that is used to define
1466
+ # contributors for this rule.
1467
+ # @return [Array<String>]
1468
+ #
1469
+ # @!attribute [rw] approximate_aggregate_value
1470
+ # An approximation of the aggregate value that comes from this
1471
+ # contributor.
1472
+ # @return [Float]
1473
+ #
1474
+ # @!attribute [rw] datapoints
1475
+ # An array of the data points where this contributor is present. Only
1476
+ # the data points when this contributor appeared are included in the
1477
+ # array.
1478
+ # @return [Array<Types::InsightRuleContributorDatapoint>]
1479
+ #
1480
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/InsightRuleContributor AWS API Documentation
1481
+ #
1482
+ class InsightRuleContributor < Struct.new(
1483
+ :keys,
1484
+ :approximate_aggregate_value,
1485
+ :datapoints)
1486
+ include Aws::Structure
1487
+ end
1488
+
1489
+ # One data point related to one contributor.
1490
+ #
1491
+ # For more information, see GetInsightRuleReport and
1492
+ # InsightRuleContributor.
1493
+ #
1494
+ # @!attribute [rw] timestamp
1495
+ # The timestamp of the data point.
1496
+ # @return [Time]
1497
+ #
1498
+ # @!attribute [rw] approximate_value
1499
+ # The approximate value that this contributor added during this
1500
+ # timestamp.
1501
+ # @return [Float]
1502
+ #
1503
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/InsightRuleContributorDatapoint AWS API Documentation
1504
+ #
1505
+ class InsightRuleContributorDatapoint < Struct.new(
1506
+ :timestamp,
1507
+ :approximate_value)
1508
+ include Aws::Structure
1509
+ end
1510
+
1511
+ # One data point from the metric time series returned in a Contributor
1512
+ # Insights rule report.
1513
+ #
1514
+ # For more information, see GetInsightRuleReport.
1515
+ #
1516
+ # @!attribute [rw] timestamp
1517
+ # The timestamp of the data point.
1518
+ # @return [Time]
1519
+ #
1520
+ # @!attribute [rw] unique_contributors
1521
+ # The number of unique contributors who published data during this
1522
+ # timestamp.
1523
+ #
1524
+ # This statistic is returned only if you included it in the `Metrics`
1525
+ # array in your request.
1526
+ # @return [Float]
1527
+ #
1528
+ # @!attribute [rw] max_contributor_value
1529
+ # The maximum value provided by one contributor during this timestamp.
1530
+ # Each timestamp is evaluated separately, so the identity of the max
1531
+ # contributor could be different for each timestamp.
1532
+ #
1533
+ # This statistic is returned only if you included it in the `Metrics`
1534
+ # array in your request.
1535
+ # @return [Float]
1536
+ #
1537
+ # @!attribute [rw] sample_count
1538
+ # The number of occurrences that matched the rule during this data
1539
+ # point.
1540
+ #
1541
+ # This statistic is returned only if you included it in the `Metrics`
1542
+ # array in your request.
1543
+ # @return [Float]
1544
+ #
1545
+ # @!attribute [rw] average
1546
+ # The average value from all contributors during the time period
1547
+ # represented by that data point.
1548
+ #
1549
+ # This statistic is returned only if you included it in the `Metrics`
1550
+ # array in your request.
1551
+ # @return [Float]
1552
+ #
1553
+ # @!attribute [rw] sum
1554
+ # The sum of the values from all contributors during the time period
1555
+ # represented by that data point.
1556
+ #
1557
+ # This statistic is returned only if you included it in the `Metrics`
1558
+ # array in your request.
1559
+ # @return [Float]
1560
+ #
1561
+ # @!attribute [rw] minimum
1562
+ # The minimum value from a single contributor during the time period
1563
+ # represented by that data point.
1564
+ #
1565
+ # This statistic is returned only if you included it in the `Metrics`
1566
+ # array in your request.
1567
+ # @return [Float]
1568
+ #
1569
+ # @!attribute [rw] maximum
1570
+ # The maximum value from a single occurence from a single contributor
1571
+ # during the time period represented by that data point.
1572
+ #
1573
+ # This statistic is returned only if you included it in the `Metrics`
1574
+ # array in your request.
1575
+ # @return [Float]
1576
+ #
1577
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/InsightRuleMetricDatapoint AWS API Documentation
1578
+ #
1579
+ class InsightRuleMetricDatapoint < Struct.new(
1580
+ :timestamp,
1581
+ :unique_contributors,
1582
+ :max_contributor_value,
1583
+ :sample_count,
1584
+ :average,
1585
+ :sum,
1586
+ :minimum,
1587
+ :maximum)
1588
+ include Aws::Structure
1589
+ end
1590
+
1147
1591
  # Request processing has failed due to some unknown error, exception, or
1148
1592
  # failure.
1149
1593
  #
@@ -1507,7 +1951,7 @@ module Aws::CloudWatch
1507
1951
  # @return [Integer]
1508
1952
  #
1509
1953
  # @!attribute [rw] datapoints_to_alarm
1510
- # The number of datapoints that must be breaching to trigger the
1954
+ # The number of data points that must be breaching to trigger the
1511
1955
  # alarm.
1512
1956
  # @return [Integer]
1513
1957
  #
@@ -1707,10 +2151,10 @@ module Aws::CloudWatch
1707
2151
  # `PutMetricData` operation that includes a `StorageResolution of 1
1708
2152
  # second`.
1709
2153
  #
1710
- # Use this field only when you are performing a `GetMetricData`
1711
- # operation, and only when you are specifying the `Expression` field.
1712
- # Do not use this field with a `PutMetricAlarm` operation or when you
1713
- # are specifying a `MetricStat` in a `GetMetricData` operation.
2154
+ # If you are performing a `GetMetricData` operation, use this field
2155
+ # only if you are specifying an `Expression`. Do not use this field
2156
+ # when you are specifying a `MetricStat` in a `GetMetricData`
2157
+ # operation.
1714
2158
  # @return [Integer]
1715
2159
  #
1716
2160
  # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/MetricDataQuery AWS API Documentation
@@ -1823,9 +2267,8 @@ module Aws::CloudWatch
1823
2267
  #
1824
2268
  # Although the parameter accepts numbers of type Double, CloudWatch
1825
2269
  # rejects values that are either too small or too large. Values must
1826
- # be in the range of 8.515920e-109 to 1.174271e+108 (Base 10) or
1827
- # 2e-360 to 2e360 (Base 2). In addition, special values (for example,
1828
- # NaN, +Infinity, -Infinity) are not supported.
2270
+ # be in the range of -2^360 to 2^360. In addition, special values (for
2271
+ # example, NaN, +Infinity, -Infinity) are not supported.
1829
2272
  # @return [Float]
1830
2273
  #
1831
2274
  # @!attribute [rw] statistic_values
@@ -1842,9 +2285,8 @@ module Aws::CloudWatch
1842
2285
  #
1843
2286
  # Although the `Values` array accepts numbers of type `Double`,
1844
2287
  # CloudWatch rejects values that are either too small or too large.
1845
- # Values must be in the range of 8.515920e-109 to 1.174271e+108 (Base
1846
- # 10) or 2e-360 to 2e360 (Base 2). In addition, special values (for
1847
- # example, NaN, +Infinity, -Infinity) are not supported.
2288
+ # Values must be in the range of -2^360 to 2^360. In addition, special
2289
+ # values (for example, NaN, +Infinity, -Infinity) are not supported.
1848
2290
  # @return [Array<Float>]
1849
2291
  #
1850
2292
  # @!attribute [rw] counts
@@ -1989,6 +2431,36 @@ module Aws::CloudWatch
1989
2431
  include Aws::Structure
1990
2432
  end
1991
2433
 
2434
+ # This array is empty if the API operation was successful for all the
2435
+ # rules specified in the request. If the operation could not process one
2436
+ # of the rules, the following data is returned for each of those rules.
2437
+ #
2438
+ # @!attribute [rw] failure_resource
2439
+ # The specified rule that could not be deleted.
2440
+ # @return [String]
2441
+ #
2442
+ # @!attribute [rw] exception_type
2443
+ # The type of error.
2444
+ # @return [String]
2445
+ #
2446
+ # @!attribute [rw] failure_code
2447
+ # The code of the error.
2448
+ # @return [String]
2449
+ #
2450
+ # @!attribute [rw] failure_description
2451
+ # A description of the error.
2452
+ # @return [String]
2453
+ #
2454
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PartialFailure AWS API Documentation
2455
+ #
2456
+ class PartialFailure < Struct.new(
2457
+ :failure_resource,
2458
+ :exception_type,
2459
+ :failure_code,
2460
+ :failure_description)
2461
+ include Aws::Structure
2462
+ end
2463
+
1992
2464
  # @note When making an API call, you may pass PutAnomalyDetectorInput
1993
2465
  # data as a hash:
1994
2466
  #
@@ -2109,6 +2581,45 @@ module Aws::CloudWatch
2109
2581
  include Aws::Structure
2110
2582
  end
2111
2583
 
2584
+ # @note When making an API call, you may pass PutInsightRuleInput
2585
+ # data as a hash:
2586
+ #
2587
+ # {
2588
+ # rule_name: "InsightRuleName", # required
2589
+ # rule_state: "InsightRuleState",
2590
+ # rule_definition: "InsightRuleDefinition", # required
2591
+ # }
2592
+ #
2593
+ # @!attribute [rw] rule_name
2594
+ # A unique name for the rule.
2595
+ # @return [String]
2596
+ #
2597
+ # @!attribute [rw] rule_state
2598
+ # The state of the rule. Valid values are ENABLED and DISABLED.
2599
+ # @return [String]
2600
+ #
2601
+ # @!attribute [rw] rule_definition
2602
+ # The definition of the rule, as a JSON object. For details on the
2603
+ # valid syntax, see [Contributor Insights Rule Syntax][1].
2604
+ #
2605
+ #
2606
+ #
2607
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights-RuleSyntax.html
2608
+ # @return [String]
2609
+ #
2610
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutInsightRuleInput AWS API Documentation
2611
+ #
2612
+ class PutInsightRuleInput < Struct.new(
2613
+ :rule_name,
2614
+ :rule_state,
2615
+ :rule_definition)
2616
+ include Aws::Structure
2617
+ end
2618
+
2619
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutInsightRuleOutput AWS API Documentation
2620
+ #
2621
+ class PutInsightRuleOutput < Aws::EmptyStructure; end
2622
+
2112
2623
  # @note When making an API call, you may pass PutMetricAlarmInput
2113
2624
  # data as a hash:
2114
2625
  #
@@ -2347,7 +2858,7 @@ module Aws::CloudWatch
2347
2858
  # @return [Integer]
2348
2859
  #
2349
2860
  # @!attribute [rw] datapoints_to_alarm
2350
- # The number of datapoints that must be breaching to trigger the
2861
+ # The number of data points that must be breaching to trigger the
2351
2862
  # alarm. This is used only if you are setting an "M out of N" alarm.
2352
2863
  # In that case, this value is the M. For more information, see
2353
2864
  # [Evaluating an Alarm][1] in the *Amazon CloudWatch User Guide*.