aws-sdk-prometheusservice 1.62.0 → 1.63.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.
@@ -20,13 +20,28 @@ module Aws::PrometheusService
20
20
  AlertManagerDefinitionStatus = Shapes::StructureShape.new(name: 'AlertManagerDefinitionStatus')
21
21
  AlertManagerDefinitionStatusCode = Shapes::StringShape.new(name: 'AlertManagerDefinitionStatusCode')
22
22
  AmpConfiguration = Shapes::StructureShape.new(name: 'AmpConfiguration')
23
+ AnomalyDetectorAlias = Shapes::StringShape.new(name: 'AnomalyDetectorAlias')
24
+ AnomalyDetectorArn = Shapes::StringShape.new(name: 'AnomalyDetectorArn')
25
+ AnomalyDetectorConfiguration = Shapes::UnionShape.new(name: 'AnomalyDetectorConfiguration')
26
+ AnomalyDetectorDescription = Shapes::StructureShape.new(name: 'AnomalyDetectorDescription')
27
+ AnomalyDetectorEvaluationInterval = Shapes::IntegerShape.new(name: 'AnomalyDetectorEvaluationInterval')
28
+ AnomalyDetectorId = Shapes::StringShape.new(name: 'AnomalyDetectorId')
29
+ AnomalyDetectorMissingDataAction = Shapes::UnionShape.new(name: 'AnomalyDetectorMissingDataAction')
30
+ AnomalyDetectorStatus = Shapes::StructureShape.new(name: 'AnomalyDetectorStatus')
31
+ AnomalyDetectorStatusCode = Shapes::StringShape.new(name: 'AnomalyDetectorStatusCode')
32
+ AnomalyDetectorSummary = Shapes::StructureShape.new(name: 'AnomalyDetectorSummary')
33
+ AnomalyDetectorSummaryList = Shapes::ListShape.new(name: 'AnomalyDetectorSummaryList')
23
34
  Blob = Shapes::BlobShape.new(name: 'Blob')
35
+ Boolean = Shapes::BooleanShape.new(name: 'Boolean')
24
36
  CloudWatchLogDestination = Shapes::StructureShape.new(name: 'CloudWatchLogDestination')
25
37
  ClusterArn = Shapes::StringShape.new(name: 'ClusterArn')
26
38
  ComponentConfig = Shapes::StructureShape.new(name: 'ComponentConfig')
27
39
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
28
40
  CreateAlertManagerDefinitionRequest = Shapes::StructureShape.new(name: 'CreateAlertManagerDefinitionRequest')
29
41
  CreateAlertManagerDefinitionResponse = Shapes::StructureShape.new(name: 'CreateAlertManagerDefinitionResponse')
42
+ CreateAnomalyDetectorRequest = Shapes::StructureShape.new(name: 'CreateAnomalyDetectorRequest')
43
+ CreateAnomalyDetectorRequestLabelsMap = Shapes::MapShape.new(name: 'CreateAnomalyDetectorRequestLabelsMap')
44
+ CreateAnomalyDetectorResponse = Shapes::StructureShape.new(name: 'CreateAnomalyDetectorResponse')
30
45
  CreateLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'CreateLoggingConfigurationRequest')
31
46
  CreateLoggingConfigurationResponse = Shapes::StructureShape.new(name: 'CreateLoggingConfigurationResponse')
32
47
  CreateQueryLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'CreateQueryLoggingConfigurationRequest')
@@ -38,6 +53,7 @@ module Aws::PrometheusService
38
53
  CreateWorkspaceRequest = Shapes::StructureShape.new(name: 'CreateWorkspaceRequest')
39
54
  CreateWorkspaceResponse = Shapes::StructureShape.new(name: 'CreateWorkspaceResponse')
40
55
  DeleteAlertManagerDefinitionRequest = Shapes::StructureShape.new(name: 'DeleteAlertManagerDefinitionRequest')
56
+ DeleteAnomalyDetectorRequest = Shapes::StructureShape.new(name: 'DeleteAnomalyDetectorRequest')
41
57
  DeleteLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'DeleteLoggingConfigurationRequest')
42
58
  DeleteQueryLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'DeleteQueryLoggingConfigurationRequest')
43
59
  DeleteResourcePolicyRequest = Shapes::StructureShape.new(name: 'DeleteResourcePolicyRequest')
@@ -48,6 +64,8 @@ module Aws::PrometheusService
48
64
  DeleteWorkspaceRequest = Shapes::StructureShape.new(name: 'DeleteWorkspaceRequest')
49
65
  DescribeAlertManagerDefinitionRequest = Shapes::StructureShape.new(name: 'DescribeAlertManagerDefinitionRequest')
50
66
  DescribeAlertManagerDefinitionResponse = Shapes::StructureShape.new(name: 'DescribeAlertManagerDefinitionResponse')
67
+ DescribeAnomalyDetectorRequest = Shapes::StructureShape.new(name: 'DescribeAnomalyDetectorRequest')
68
+ DescribeAnomalyDetectorResponse = Shapes::StructureShape.new(name: 'DescribeAnomalyDetectorResponse')
51
69
  DescribeLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'DescribeLoggingConfigurationRequest')
52
70
  DescribeLoggingConfigurationResponse = Shapes::StructureShape.new(name: 'DescribeLoggingConfigurationResponse')
53
71
  DescribeQueryLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'DescribeQueryLoggingConfigurationRequest')
@@ -73,6 +91,9 @@ module Aws::PrometheusService
73
91
  GetDefaultScraperConfigurationResponse = Shapes::StructureShape.new(name: 'GetDefaultScraperConfigurationResponse')
74
92
  IamRoleArn = Shapes::StringShape.new(name: 'IamRoleArn')
75
93
  IdempotencyToken = Shapes::StringShape.new(name: 'IdempotencyToken')
94
+ IgnoreNearExpected = Shapes::UnionShape.new(name: 'IgnoreNearExpected')
95
+ IgnoreNearExpectedAmountDouble = Shapes::FloatShape.new(name: 'IgnoreNearExpectedAmountDouble')
96
+ IgnoreNearExpectedRatioDouble = Shapes::FloatShape.new(name: 'IgnoreNearExpectedRatioDouble')
76
97
  Integer = Shapes::IntegerShape.new(name: 'Integer')
77
98
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
78
99
  KmsKeyArn = Shapes::StringShape.new(name: 'KmsKeyArn')
@@ -83,6 +104,9 @@ module Aws::PrometheusService
83
104
  LimitsPerLabelSetEntry = Shapes::StructureShape.new(name: 'LimitsPerLabelSetEntry')
84
105
  LimitsPerLabelSetEntryMaxSeriesLong = Shapes::IntegerShape.new(name: 'LimitsPerLabelSetEntryMaxSeriesLong')
85
106
  LimitsPerLabelSetList = Shapes::ListShape.new(name: 'LimitsPerLabelSetList')
107
+ ListAnomalyDetectorsRequest = Shapes::StructureShape.new(name: 'ListAnomalyDetectorsRequest')
108
+ ListAnomalyDetectorsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListAnomalyDetectorsRequestMaxResultsInteger')
109
+ ListAnomalyDetectorsResponse = Shapes::StructureShape.new(name: 'ListAnomalyDetectorsResponse')
86
110
  ListRuleGroupsNamespacesRequest = Shapes::StructureShape.new(name: 'ListRuleGroupsNamespacesRequest')
87
111
  ListRuleGroupsNamespacesRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListRuleGroupsNamespacesRequestMaxResultsInteger')
88
112
  ListRuleGroupsNamespacesResponse = Shapes::StructureShape.new(name: 'ListRuleGroupsNamespacesResponse')
@@ -103,8 +127,13 @@ module Aws::PrometheusService
103
127
  LoggingFilter = Shapes::StructureShape.new(name: 'LoggingFilter')
104
128
  LoggingFilterQspThresholdLong = Shapes::IntegerShape.new(name: 'LoggingFilterQspThresholdLong')
105
129
  PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
130
+ PrometheusMetricLabelKey = Shapes::StringShape.new(name: 'PrometheusMetricLabelKey')
131
+ PrometheusMetricLabelMap = Shapes::MapShape.new(name: 'PrometheusMetricLabelMap')
132
+ PrometheusMetricLabelValue = Shapes::StringShape.new(name: 'PrometheusMetricLabelValue')
106
133
  PutAlertManagerDefinitionRequest = Shapes::StructureShape.new(name: 'PutAlertManagerDefinitionRequest')
107
134
  PutAlertManagerDefinitionResponse = Shapes::StructureShape.new(name: 'PutAlertManagerDefinitionResponse')
135
+ PutAnomalyDetectorRequest = Shapes::StructureShape.new(name: 'PutAnomalyDetectorRequest')
136
+ PutAnomalyDetectorResponse = Shapes::StructureShape.new(name: 'PutAnomalyDetectorResponse')
108
137
  PutResourcePolicyRequest = Shapes::StructureShape.new(name: 'PutResourcePolicyRequest')
109
138
  PutResourcePolicyResponse = Shapes::StructureShape.new(name: 'PutResourcePolicyResponse')
110
139
  PutRuleGroupsNamespaceRequest = Shapes::StructureShape.new(name: 'PutRuleGroupsNamespaceRequest')
@@ -112,6 +141,10 @@ module Aws::PrometheusService
112
141
  QueryLoggingConfigurationMetadata = Shapes::StructureShape.new(name: 'QueryLoggingConfigurationMetadata')
113
142
  QueryLoggingConfigurationStatus = Shapes::StructureShape.new(name: 'QueryLoggingConfigurationStatus')
114
143
  QueryLoggingConfigurationStatusCode = Shapes::StringShape.new(name: 'QueryLoggingConfigurationStatusCode')
144
+ RandomCutForestConfiguration = Shapes::StructureShape.new(name: 'RandomCutForestConfiguration')
145
+ RandomCutForestConfigurationSampleSizeInteger = Shapes::IntegerShape.new(name: 'RandomCutForestConfigurationSampleSizeInteger')
146
+ RandomCutForestConfigurationShingleSizeInteger = Shapes::IntegerShape.new(name: 'RandomCutForestConfigurationShingleSizeInteger')
147
+ RandomCutForestQuery = Shapes::StringShape.new(name: 'RandomCutForestQuery')
115
148
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
116
149
  RoleConfiguration = Shapes::StructureShape.new(name: 'RoleConfiguration')
117
150
  RuleGroupsNamespaceArn = Shapes::StringShape.new(name: 'RuleGroupsNamespaceArn')
@@ -204,6 +237,48 @@ module Aws::PrometheusService
204
237
  AmpConfiguration.add_member(:workspace_arn, Shapes::ShapeRef.new(shape: WorkspaceArn, required: true, location_name: "workspaceArn"))
205
238
  AmpConfiguration.struct_class = Types::AmpConfiguration
206
239
 
240
+ AnomalyDetectorConfiguration.add_member(:random_cut_forest, Shapes::ShapeRef.new(shape: RandomCutForestConfiguration, location_name: "randomCutForest"))
241
+ AnomalyDetectorConfiguration.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
242
+ AnomalyDetectorConfiguration.add_member_subclass(:random_cut_forest, Types::AnomalyDetectorConfiguration::RandomCutForest)
243
+ AnomalyDetectorConfiguration.add_member_subclass(:unknown, Types::AnomalyDetectorConfiguration::Unknown)
244
+ AnomalyDetectorConfiguration.struct_class = Types::AnomalyDetectorConfiguration
245
+
246
+ AnomalyDetectorDescription.add_member(:arn, Shapes::ShapeRef.new(shape: AnomalyDetectorArn, required: true, location_name: "arn"))
247
+ AnomalyDetectorDescription.add_member(:anomaly_detector_id, Shapes::ShapeRef.new(shape: AnomalyDetectorId, required: true, location_name: "anomalyDetectorId"))
248
+ AnomalyDetectorDescription.add_member(:alias, Shapes::ShapeRef.new(shape: AnomalyDetectorAlias, required: true, location_name: "alias"))
249
+ AnomalyDetectorDescription.add_member(:evaluation_interval_in_seconds, Shapes::ShapeRef.new(shape: AnomalyDetectorEvaluationInterval, location_name: "evaluationIntervalInSeconds"))
250
+ AnomalyDetectorDescription.add_member(:missing_data_action, Shapes::ShapeRef.new(shape: AnomalyDetectorMissingDataAction, location_name: "missingDataAction"))
251
+ AnomalyDetectorDescription.add_member(:configuration, Shapes::ShapeRef.new(shape: AnomalyDetectorConfiguration, location_name: "configuration"))
252
+ AnomalyDetectorDescription.add_member(:labels, Shapes::ShapeRef.new(shape: PrometheusMetricLabelMap, location_name: "labels"))
253
+ AnomalyDetectorDescription.add_member(:status, Shapes::ShapeRef.new(shape: AnomalyDetectorStatus, required: true, location_name: "status"))
254
+ AnomalyDetectorDescription.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
255
+ AnomalyDetectorDescription.add_member(:modified_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "modifiedAt"))
256
+ AnomalyDetectorDescription.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
257
+ AnomalyDetectorDescription.struct_class = Types::AnomalyDetectorDescription
258
+
259
+ AnomalyDetectorMissingDataAction.add_member(:mark_as_anomaly, Shapes::ShapeRef.new(shape: Boolean, location_name: "markAsAnomaly"))
260
+ AnomalyDetectorMissingDataAction.add_member(:skip, Shapes::ShapeRef.new(shape: Boolean, location_name: "skip"))
261
+ AnomalyDetectorMissingDataAction.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
262
+ AnomalyDetectorMissingDataAction.add_member_subclass(:mark_as_anomaly, Types::AnomalyDetectorMissingDataAction::MarkAsAnomaly)
263
+ AnomalyDetectorMissingDataAction.add_member_subclass(:skip, Types::AnomalyDetectorMissingDataAction::Skip)
264
+ AnomalyDetectorMissingDataAction.add_member_subclass(:unknown, Types::AnomalyDetectorMissingDataAction::Unknown)
265
+ AnomalyDetectorMissingDataAction.struct_class = Types::AnomalyDetectorMissingDataAction
266
+
267
+ AnomalyDetectorStatus.add_member(:status_code, Shapes::ShapeRef.new(shape: AnomalyDetectorStatusCode, required: true, location_name: "statusCode"))
268
+ AnomalyDetectorStatus.add_member(:status_reason, Shapes::ShapeRef.new(shape: String, location_name: "statusReason"))
269
+ AnomalyDetectorStatus.struct_class = Types::AnomalyDetectorStatus
270
+
271
+ AnomalyDetectorSummary.add_member(:arn, Shapes::ShapeRef.new(shape: AnomalyDetectorArn, required: true, location_name: "arn"))
272
+ AnomalyDetectorSummary.add_member(:anomaly_detector_id, Shapes::ShapeRef.new(shape: AnomalyDetectorId, required: true, location_name: "anomalyDetectorId"))
273
+ AnomalyDetectorSummary.add_member(:alias, Shapes::ShapeRef.new(shape: AnomalyDetectorAlias, required: true, location_name: "alias"))
274
+ AnomalyDetectorSummary.add_member(:status, Shapes::ShapeRef.new(shape: AnomalyDetectorStatus, required: true, location_name: "status"))
275
+ AnomalyDetectorSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
276
+ AnomalyDetectorSummary.add_member(:modified_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "modifiedAt"))
277
+ AnomalyDetectorSummary.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
278
+ AnomalyDetectorSummary.struct_class = Types::AnomalyDetectorSummary
279
+
280
+ AnomalyDetectorSummaryList.member = Shapes::ShapeRef.new(shape: AnomalyDetectorSummary)
281
+
207
282
  CloudWatchLogDestination.add_member(:log_group_arn, Shapes::ShapeRef.new(shape: LogGroupArn, required: true, location_name: "logGroupArn"))
208
283
  CloudWatchLogDestination.struct_class = Types::CloudWatchLogDestination
209
284
 
@@ -223,6 +298,25 @@ module Aws::PrometheusService
223
298
  CreateAlertManagerDefinitionResponse.add_member(:status, Shapes::ShapeRef.new(shape: AlertManagerDefinitionStatus, required: true, location_name: "status"))
224
299
  CreateAlertManagerDefinitionResponse.struct_class = Types::CreateAlertManagerDefinitionResponse
225
300
 
301
+ CreateAnomalyDetectorRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
302
+ CreateAnomalyDetectorRequest.add_member(:alias, Shapes::ShapeRef.new(shape: AnomalyDetectorAlias, required: true, location_name: "alias"))
303
+ CreateAnomalyDetectorRequest.add_member(:evaluation_interval_in_seconds, Shapes::ShapeRef.new(shape: AnomalyDetectorEvaluationInterval, location_name: "evaluationIntervalInSeconds"))
304
+ CreateAnomalyDetectorRequest.add_member(:missing_data_action, Shapes::ShapeRef.new(shape: AnomalyDetectorMissingDataAction, location_name: "missingDataAction"))
305
+ CreateAnomalyDetectorRequest.add_member(:configuration, Shapes::ShapeRef.new(shape: AnomalyDetectorConfiguration, required: true, location_name: "configuration"))
306
+ CreateAnomalyDetectorRequest.add_member(:labels, Shapes::ShapeRef.new(shape: CreateAnomalyDetectorRequestLabelsMap, location_name: "labels"))
307
+ CreateAnomalyDetectorRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
308
+ CreateAnomalyDetectorRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
309
+ CreateAnomalyDetectorRequest.struct_class = Types::CreateAnomalyDetectorRequest
310
+
311
+ CreateAnomalyDetectorRequestLabelsMap.key = Shapes::ShapeRef.new(shape: PrometheusMetricLabelKey)
312
+ CreateAnomalyDetectorRequestLabelsMap.value = Shapes::ShapeRef.new(shape: PrometheusMetricLabelValue)
313
+
314
+ CreateAnomalyDetectorResponse.add_member(:anomaly_detector_id, Shapes::ShapeRef.new(shape: AnomalyDetectorId, required: true, location_name: "anomalyDetectorId"))
315
+ CreateAnomalyDetectorResponse.add_member(:arn, Shapes::ShapeRef.new(shape: AnomalyDetectorArn, required: true, location_name: "arn"))
316
+ CreateAnomalyDetectorResponse.add_member(:status, Shapes::ShapeRef.new(shape: AnomalyDetectorStatus, required: true, location_name: "status"))
317
+ CreateAnomalyDetectorResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
318
+ CreateAnomalyDetectorResponse.struct_class = Types::CreateAnomalyDetectorResponse
319
+
226
320
  CreateLoggingConfigurationRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
227
321
  CreateLoggingConfigurationRequest.add_member(:log_group_arn, Shapes::ShapeRef.new(shape: LogGroupArn, required: true, location_name: "logGroupArn"))
228
322
  CreateLoggingConfigurationRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
@@ -284,6 +378,11 @@ module Aws::PrometheusService
284
378
  DeleteAlertManagerDefinitionRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location: "querystring", location_name: "clientToken", metadata: {"idempotencyToken" => true}))
285
379
  DeleteAlertManagerDefinitionRequest.struct_class = Types::DeleteAlertManagerDefinitionRequest
286
380
 
381
+ DeleteAnomalyDetectorRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
382
+ DeleteAnomalyDetectorRequest.add_member(:anomaly_detector_id, Shapes::ShapeRef.new(shape: AnomalyDetectorId, required: true, location: "uri", location_name: "anomalyDetectorId"))
383
+ DeleteAnomalyDetectorRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location: "querystring", location_name: "clientToken", metadata: {"idempotencyToken" => true}))
384
+ DeleteAnomalyDetectorRequest.struct_class = Types::DeleteAnomalyDetectorRequest
385
+
287
386
  DeleteLoggingConfigurationRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
288
387
  DeleteLoggingConfigurationRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location: "querystring", location_name: "clientToken", metadata: {"idempotencyToken" => true}))
289
388
  DeleteLoggingConfigurationRequest.struct_class = Types::DeleteLoggingConfigurationRequest
@@ -324,6 +423,13 @@ module Aws::PrometheusService
324
423
  DescribeAlertManagerDefinitionResponse.add_member(:alert_manager_definition, Shapes::ShapeRef.new(shape: AlertManagerDefinitionDescription, required: true, location_name: "alertManagerDefinition"))
325
424
  DescribeAlertManagerDefinitionResponse.struct_class = Types::DescribeAlertManagerDefinitionResponse
326
425
 
426
+ DescribeAnomalyDetectorRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
427
+ DescribeAnomalyDetectorRequest.add_member(:anomaly_detector_id, Shapes::ShapeRef.new(shape: AnomalyDetectorId, required: true, location: "uri", location_name: "anomalyDetectorId"))
428
+ DescribeAnomalyDetectorRequest.struct_class = Types::DescribeAnomalyDetectorRequest
429
+
430
+ DescribeAnomalyDetectorResponse.add_member(:anomaly_detector, Shapes::ShapeRef.new(shape: AnomalyDetectorDescription, required: true, location_name: "anomalyDetector"))
431
+ DescribeAnomalyDetectorResponse.struct_class = Types::DescribeAnomalyDetectorResponse
432
+
327
433
  DescribeLoggingConfigurationRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
328
434
  DescribeLoggingConfigurationRequest.struct_class = Types::DescribeLoggingConfigurationRequest
329
435
 
@@ -397,6 +503,14 @@ module Aws::PrometheusService
397
503
  GetDefaultScraperConfigurationResponse.add_member(:configuration, Shapes::ShapeRef.new(shape: Blob, required: true, location_name: "configuration"))
398
504
  GetDefaultScraperConfigurationResponse.struct_class = Types::GetDefaultScraperConfigurationResponse
399
505
 
506
+ IgnoreNearExpected.add_member(:amount, Shapes::ShapeRef.new(shape: IgnoreNearExpectedAmountDouble, location_name: "amount"))
507
+ IgnoreNearExpected.add_member(:ratio, Shapes::ShapeRef.new(shape: IgnoreNearExpectedRatioDouble, location_name: "ratio"))
508
+ IgnoreNearExpected.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
509
+ IgnoreNearExpected.add_member_subclass(:amount, Types::IgnoreNearExpected::Amount)
510
+ IgnoreNearExpected.add_member_subclass(:ratio, Types::IgnoreNearExpected::Ratio)
511
+ IgnoreNearExpected.add_member_subclass(:unknown, Types::IgnoreNearExpected::Unknown)
512
+ IgnoreNearExpected.struct_class = Types::IgnoreNearExpected
513
+
400
514
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
401
515
  InternalServerException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Retry-After"))
402
516
  InternalServerException.struct_class = Types::InternalServerException
@@ -413,6 +527,16 @@ module Aws::PrometheusService
413
527
 
414
528
  LimitsPerLabelSetList.member = Shapes::ShapeRef.new(shape: LimitsPerLabelSet)
415
529
 
530
+ ListAnomalyDetectorsRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
531
+ ListAnomalyDetectorsRequest.add_member(:alias, Shapes::ShapeRef.new(shape: AnomalyDetectorAlias, location: "querystring", location_name: "alias"))
532
+ ListAnomalyDetectorsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListAnomalyDetectorsRequestMaxResultsInteger, location: "querystring", location_name: "maxResults"))
533
+ ListAnomalyDetectorsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
534
+ ListAnomalyDetectorsRequest.struct_class = Types::ListAnomalyDetectorsRequest
535
+
536
+ ListAnomalyDetectorsResponse.add_member(:anomaly_detectors, Shapes::ShapeRef.new(shape: AnomalyDetectorSummaryList, required: true, location_name: "anomalyDetectors"))
537
+ ListAnomalyDetectorsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
538
+ ListAnomalyDetectorsResponse.struct_class = Types::ListAnomalyDetectorsResponse
539
+
416
540
  ListRuleGroupsNamespacesRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
417
541
  ListRuleGroupsNamespacesRequest.add_member(:name, Shapes::ShapeRef.new(shape: RuleGroupsNamespaceName, location: "querystring", location_name: "name"))
418
542
  ListRuleGroupsNamespacesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
@@ -467,6 +591,9 @@ module Aws::PrometheusService
467
591
  LoggingFilter.add_member(:qsp_threshold, Shapes::ShapeRef.new(shape: LoggingFilterQspThresholdLong, required: true, location_name: "qspThreshold"))
468
592
  LoggingFilter.struct_class = Types::LoggingFilter
469
593
 
594
+ PrometheusMetricLabelMap.key = Shapes::ShapeRef.new(shape: PrometheusMetricLabelKey)
595
+ PrometheusMetricLabelMap.value = Shapes::ShapeRef.new(shape: PrometheusMetricLabelValue)
596
+
470
597
  PutAlertManagerDefinitionRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
471
598
  PutAlertManagerDefinitionRequest.add_member(:data, Shapes::ShapeRef.new(shape: AlertManagerDefinitionData, required: true, location_name: "data"))
472
599
  PutAlertManagerDefinitionRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
@@ -475,6 +602,21 @@ module Aws::PrometheusService
475
602
  PutAlertManagerDefinitionResponse.add_member(:status, Shapes::ShapeRef.new(shape: AlertManagerDefinitionStatus, required: true, location_name: "status"))
476
603
  PutAlertManagerDefinitionResponse.struct_class = Types::PutAlertManagerDefinitionResponse
477
604
 
605
+ PutAnomalyDetectorRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
606
+ PutAnomalyDetectorRequest.add_member(:anomaly_detector_id, Shapes::ShapeRef.new(shape: AnomalyDetectorId, required: true, location: "uri", location_name: "anomalyDetectorId"))
607
+ PutAnomalyDetectorRequest.add_member(:evaluation_interval_in_seconds, Shapes::ShapeRef.new(shape: AnomalyDetectorEvaluationInterval, location_name: "evaluationIntervalInSeconds"))
608
+ PutAnomalyDetectorRequest.add_member(:missing_data_action, Shapes::ShapeRef.new(shape: AnomalyDetectorMissingDataAction, location_name: "missingDataAction"))
609
+ PutAnomalyDetectorRequest.add_member(:configuration, Shapes::ShapeRef.new(shape: AnomalyDetectorConfiguration, required: true, location_name: "configuration"))
610
+ PutAnomalyDetectorRequest.add_member(:labels, Shapes::ShapeRef.new(shape: PrometheusMetricLabelMap, location_name: "labels"))
611
+ PutAnomalyDetectorRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
612
+ PutAnomalyDetectorRequest.struct_class = Types::PutAnomalyDetectorRequest
613
+
614
+ PutAnomalyDetectorResponse.add_member(:anomaly_detector_id, Shapes::ShapeRef.new(shape: AnomalyDetectorId, required: true, location_name: "anomalyDetectorId"))
615
+ PutAnomalyDetectorResponse.add_member(:arn, Shapes::ShapeRef.new(shape: AnomalyDetectorArn, required: true, location_name: "arn"))
616
+ PutAnomalyDetectorResponse.add_member(:status, Shapes::ShapeRef.new(shape: AnomalyDetectorStatus, required: true, location_name: "status"))
617
+ PutAnomalyDetectorResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
618
+ PutAnomalyDetectorResponse.struct_class = Types::PutAnomalyDetectorResponse
619
+
478
620
  PutResourcePolicyRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
479
621
  PutResourcePolicyRequest.add_member(:policy_document, Shapes::ShapeRef.new(shape: String, required: true, location_name: "policyDocument"))
480
622
  PutResourcePolicyRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
@@ -508,6 +650,13 @@ module Aws::PrometheusService
508
650
  QueryLoggingConfigurationStatus.add_member(:status_reason, Shapes::ShapeRef.new(shape: String, location_name: "statusReason"))
509
651
  QueryLoggingConfigurationStatus.struct_class = Types::QueryLoggingConfigurationStatus
510
652
 
653
+ RandomCutForestConfiguration.add_member(:query, Shapes::ShapeRef.new(shape: RandomCutForestQuery, required: true, location_name: "query"))
654
+ RandomCutForestConfiguration.add_member(:shingle_size, Shapes::ShapeRef.new(shape: RandomCutForestConfigurationShingleSizeInteger, location_name: "shingleSize"))
655
+ RandomCutForestConfiguration.add_member(:sample_size, Shapes::ShapeRef.new(shape: RandomCutForestConfigurationSampleSizeInteger, location_name: "sampleSize"))
656
+ RandomCutForestConfiguration.add_member(:ignore_near_expected_from_above, Shapes::ShapeRef.new(shape: IgnoreNearExpected, location_name: "ignoreNearExpectedFromAbove"))
657
+ RandomCutForestConfiguration.add_member(:ignore_near_expected_from_below, Shapes::ShapeRef.new(shape: IgnoreNearExpected, location_name: "ignoreNearExpectedFromBelow"))
658
+ RandomCutForestConfiguration.struct_class = Types::RandomCutForestConfiguration
659
+
511
660
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
512
661
  ResourceNotFoundException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
513
662
  ResourceNotFoundException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
@@ -772,6 +921,20 @@ module Aws::PrometheusService
772
921
  o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
773
922
  end)
774
923
 
924
+ api.add_operation(:create_anomaly_detector, Seahorse::Model::Operation.new.tap do |o|
925
+ o.name = "CreateAnomalyDetector"
926
+ o.http_method = "POST"
927
+ o.http_request_uri = "/workspaces/{workspaceId}/anomalydetectors"
928
+ o.input = Shapes::ShapeRef.new(shape: CreateAnomalyDetectorRequest)
929
+ o.output = Shapes::ShapeRef.new(shape: CreateAnomalyDetectorResponse)
930
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
931
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
932
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
933
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
934
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
935
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
936
+ end)
937
+
775
938
  api.add_operation(:create_logging_configuration, Seahorse::Model::Operation.new.tap do |o|
776
939
  o.name = "CreateLoggingConfiguration"
777
940
  o.http_method = "POST"
@@ -854,6 +1017,20 @@ module Aws::PrometheusService
854
1017
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
855
1018
  end)
856
1019
 
1020
+ api.add_operation(:delete_anomaly_detector, Seahorse::Model::Operation.new.tap do |o|
1021
+ o.name = "DeleteAnomalyDetector"
1022
+ o.http_method = "DELETE"
1023
+ o.http_request_uri = "/workspaces/{workspaceId}/anomalydetectors/{anomalyDetectorId}"
1024
+ o.input = Shapes::ShapeRef.new(shape: DeleteAnomalyDetectorRequest)
1025
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
1026
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1027
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1028
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1029
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1030
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1031
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1032
+ end)
1033
+
857
1034
  api.add_operation(:delete_logging_configuration, Seahorse::Model::Operation.new.tap do |o|
858
1035
  o.name = "DeleteLoggingConfiguration"
859
1036
  o.http_method = "DELETE"
@@ -962,6 +1139,19 @@ module Aws::PrometheusService
962
1139
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
963
1140
  end)
964
1141
 
1142
+ api.add_operation(:describe_anomaly_detector, Seahorse::Model::Operation.new.tap do |o|
1143
+ o.name = "DescribeAnomalyDetector"
1144
+ o.http_method = "GET"
1145
+ o.http_request_uri = "/workspaces/{workspaceId}/anomalydetectors/{anomalyDetectorId}"
1146
+ o.input = Shapes::ShapeRef.new(shape: DescribeAnomalyDetectorRequest)
1147
+ o.output = Shapes::ShapeRef.new(shape: DescribeAnomalyDetectorResponse)
1148
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1149
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1150
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1151
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1152
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1153
+ end)
1154
+
965
1155
  api.add_operation(:describe_logging_configuration, Seahorse::Model::Operation.new.tap do |o|
966
1156
  o.name = "DescribeLoggingConfiguration"
967
1157
  o.http_method = "GET"
@@ -1074,6 +1264,25 @@ module Aws::PrometheusService
1074
1264
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1075
1265
  end)
1076
1266
 
1267
+ api.add_operation(:list_anomaly_detectors, Seahorse::Model::Operation.new.tap do |o|
1268
+ o.name = "ListAnomalyDetectors"
1269
+ o.http_method = "GET"
1270
+ o.http_request_uri = "/workspaces/{workspaceId}/anomalydetectors"
1271
+ o.input = Shapes::ShapeRef.new(shape: ListAnomalyDetectorsRequest)
1272
+ o.output = Shapes::ShapeRef.new(shape: ListAnomalyDetectorsResponse)
1273
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1274
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1275
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1276
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1277
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1278
+ o[:pager] = Aws::Pager.new(
1279
+ limit_key: "max_results",
1280
+ tokens: {
1281
+ "next_token" => "next_token"
1282
+ }
1283
+ )
1284
+ end)
1285
+
1077
1286
  api.add_operation(:list_rule_groups_namespaces, Seahorse::Model::Operation.new.tap do |o|
1078
1287
  o.name = "ListRuleGroupsNamespaces"
1079
1288
  o.http_method = "GET"
@@ -1157,6 +1366,20 @@ module Aws::PrometheusService
1157
1366
  o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1158
1367
  end)
1159
1368
 
1369
+ api.add_operation(:put_anomaly_detector, Seahorse::Model::Operation.new.tap do |o|
1370
+ o.name = "PutAnomalyDetector"
1371
+ o.http_method = "PUT"
1372
+ o.http_request_uri = "/workspaces/{workspaceId}/anomalydetectors/{anomalyDetectorId}"
1373
+ o.input = Shapes::ShapeRef.new(shape: PutAnomalyDetectorRequest)
1374
+ o.output = Shapes::ShapeRef.new(shape: PutAnomalyDetectorResponse)
1375
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1376
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1377
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1378
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1379
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1380
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1381
+ end)
1382
+
1160
1383
  api.add_operation(:put_resource_policy, Seahorse::Model::Operation.new.tap do |o|
1161
1384
  o.name = "PutResourcePolicy"
1162
1385
  o.http_method = "PUT"