aws-sdk-prometheusservice 1.62.0 → 1.64.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')
@@ -174,6 +207,7 @@ module Aws::PrometheusService
174
207
  ValidationExceptionField = Shapes::StructureShape.new(name: 'ValidationExceptionField')
175
208
  ValidationExceptionFieldList = Shapes::ListShape.new(name: 'ValidationExceptionFieldList')
176
209
  ValidationExceptionReason = Shapes::StringShape.new(name: 'ValidationExceptionReason')
210
+ VpcConfiguration = Shapes::StructureShape.new(name: 'VpcConfiguration')
177
211
  WorkspaceAlias = Shapes::StringShape.new(name: 'WorkspaceAlias')
178
212
  WorkspaceArn = Shapes::StringShape.new(name: 'WorkspaceArn')
179
213
  WorkspaceConfigurationDescription = Shapes::StructureShape.new(name: 'WorkspaceConfigurationDescription')
@@ -204,6 +238,48 @@ module Aws::PrometheusService
204
238
  AmpConfiguration.add_member(:workspace_arn, Shapes::ShapeRef.new(shape: WorkspaceArn, required: true, location_name: "workspaceArn"))
205
239
  AmpConfiguration.struct_class = Types::AmpConfiguration
206
240
 
241
+ AnomalyDetectorConfiguration.add_member(:random_cut_forest, Shapes::ShapeRef.new(shape: RandomCutForestConfiguration, location_name: "randomCutForest"))
242
+ AnomalyDetectorConfiguration.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
243
+ AnomalyDetectorConfiguration.add_member_subclass(:random_cut_forest, Types::AnomalyDetectorConfiguration::RandomCutForest)
244
+ AnomalyDetectorConfiguration.add_member_subclass(:unknown, Types::AnomalyDetectorConfiguration::Unknown)
245
+ AnomalyDetectorConfiguration.struct_class = Types::AnomalyDetectorConfiguration
246
+
247
+ AnomalyDetectorDescription.add_member(:arn, Shapes::ShapeRef.new(shape: AnomalyDetectorArn, required: true, location_name: "arn"))
248
+ AnomalyDetectorDescription.add_member(:anomaly_detector_id, Shapes::ShapeRef.new(shape: AnomalyDetectorId, required: true, location_name: "anomalyDetectorId"))
249
+ AnomalyDetectorDescription.add_member(:alias, Shapes::ShapeRef.new(shape: AnomalyDetectorAlias, required: true, location_name: "alias"))
250
+ AnomalyDetectorDescription.add_member(:evaluation_interval_in_seconds, Shapes::ShapeRef.new(shape: AnomalyDetectorEvaluationInterval, location_name: "evaluationIntervalInSeconds"))
251
+ AnomalyDetectorDescription.add_member(:missing_data_action, Shapes::ShapeRef.new(shape: AnomalyDetectorMissingDataAction, location_name: "missingDataAction"))
252
+ AnomalyDetectorDescription.add_member(:configuration, Shapes::ShapeRef.new(shape: AnomalyDetectorConfiguration, location_name: "configuration"))
253
+ AnomalyDetectorDescription.add_member(:labels, Shapes::ShapeRef.new(shape: PrometheusMetricLabelMap, location_name: "labels"))
254
+ AnomalyDetectorDescription.add_member(:status, Shapes::ShapeRef.new(shape: AnomalyDetectorStatus, required: true, location_name: "status"))
255
+ AnomalyDetectorDescription.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
256
+ AnomalyDetectorDescription.add_member(:modified_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "modifiedAt"))
257
+ AnomalyDetectorDescription.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
258
+ AnomalyDetectorDescription.struct_class = Types::AnomalyDetectorDescription
259
+
260
+ AnomalyDetectorMissingDataAction.add_member(:mark_as_anomaly, Shapes::ShapeRef.new(shape: Boolean, location_name: "markAsAnomaly"))
261
+ AnomalyDetectorMissingDataAction.add_member(:skip, Shapes::ShapeRef.new(shape: Boolean, location_name: "skip"))
262
+ AnomalyDetectorMissingDataAction.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
263
+ AnomalyDetectorMissingDataAction.add_member_subclass(:mark_as_anomaly, Types::AnomalyDetectorMissingDataAction::MarkAsAnomaly)
264
+ AnomalyDetectorMissingDataAction.add_member_subclass(:skip, Types::AnomalyDetectorMissingDataAction::Skip)
265
+ AnomalyDetectorMissingDataAction.add_member_subclass(:unknown, Types::AnomalyDetectorMissingDataAction::Unknown)
266
+ AnomalyDetectorMissingDataAction.struct_class = Types::AnomalyDetectorMissingDataAction
267
+
268
+ AnomalyDetectorStatus.add_member(:status_code, Shapes::ShapeRef.new(shape: AnomalyDetectorStatusCode, required: true, location_name: "statusCode"))
269
+ AnomalyDetectorStatus.add_member(:status_reason, Shapes::ShapeRef.new(shape: String, location_name: "statusReason"))
270
+ AnomalyDetectorStatus.struct_class = Types::AnomalyDetectorStatus
271
+
272
+ AnomalyDetectorSummary.add_member(:arn, Shapes::ShapeRef.new(shape: AnomalyDetectorArn, required: true, location_name: "arn"))
273
+ AnomalyDetectorSummary.add_member(:anomaly_detector_id, Shapes::ShapeRef.new(shape: AnomalyDetectorId, required: true, location_name: "anomalyDetectorId"))
274
+ AnomalyDetectorSummary.add_member(:alias, Shapes::ShapeRef.new(shape: AnomalyDetectorAlias, required: true, location_name: "alias"))
275
+ AnomalyDetectorSummary.add_member(:status, Shapes::ShapeRef.new(shape: AnomalyDetectorStatus, required: true, location_name: "status"))
276
+ AnomalyDetectorSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
277
+ AnomalyDetectorSummary.add_member(:modified_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "modifiedAt"))
278
+ AnomalyDetectorSummary.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
279
+ AnomalyDetectorSummary.struct_class = Types::AnomalyDetectorSummary
280
+
281
+ AnomalyDetectorSummaryList.member = Shapes::ShapeRef.new(shape: AnomalyDetectorSummary)
282
+
207
283
  CloudWatchLogDestination.add_member(:log_group_arn, Shapes::ShapeRef.new(shape: LogGroupArn, required: true, location_name: "logGroupArn"))
208
284
  CloudWatchLogDestination.struct_class = Types::CloudWatchLogDestination
209
285
 
@@ -223,6 +299,25 @@ module Aws::PrometheusService
223
299
  CreateAlertManagerDefinitionResponse.add_member(:status, Shapes::ShapeRef.new(shape: AlertManagerDefinitionStatus, required: true, location_name: "status"))
224
300
  CreateAlertManagerDefinitionResponse.struct_class = Types::CreateAlertManagerDefinitionResponse
225
301
 
302
+ CreateAnomalyDetectorRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
303
+ CreateAnomalyDetectorRequest.add_member(:alias, Shapes::ShapeRef.new(shape: AnomalyDetectorAlias, required: true, location_name: "alias"))
304
+ CreateAnomalyDetectorRequest.add_member(:evaluation_interval_in_seconds, Shapes::ShapeRef.new(shape: AnomalyDetectorEvaluationInterval, location_name: "evaluationIntervalInSeconds"))
305
+ CreateAnomalyDetectorRequest.add_member(:missing_data_action, Shapes::ShapeRef.new(shape: AnomalyDetectorMissingDataAction, location_name: "missingDataAction"))
306
+ CreateAnomalyDetectorRequest.add_member(:configuration, Shapes::ShapeRef.new(shape: AnomalyDetectorConfiguration, required: true, location_name: "configuration"))
307
+ CreateAnomalyDetectorRequest.add_member(:labels, Shapes::ShapeRef.new(shape: CreateAnomalyDetectorRequestLabelsMap, location_name: "labels"))
308
+ CreateAnomalyDetectorRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
309
+ CreateAnomalyDetectorRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
310
+ CreateAnomalyDetectorRequest.struct_class = Types::CreateAnomalyDetectorRequest
311
+
312
+ CreateAnomalyDetectorRequestLabelsMap.key = Shapes::ShapeRef.new(shape: PrometheusMetricLabelKey)
313
+ CreateAnomalyDetectorRequestLabelsMap.value = Shapes::ShapeRef.new(shape: PrometheusMetricLabelValue)
314
+
315
+ CreateAnomalyDetectorResponse.add_member(:anomaly_detector_id, Shapes::ShapeRef.new(shape: AnomalyDetectorId, required: true, location_name: "anomalyDetectorId"))
316
+ CreateAnomalyDetectorResponse.add_member(:arn, Shapes::ShapeRef.new(shape: AnomalyDetectorArn, required: true, location_name: "arn"))
317
+ CreateAnomalyDetectorResponse.add_member(:status, Shapes::ShapeRef.new(shape: AnomalyDetectorStatus, required: true, location_name: "status"))
318
+ CreateAnomalyDetectorResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
319
+ CreateAnomalyDetectorResponse.struct_class = Types::CreateAnomalyDetectorResponse
320
+
226
321
  CreateLoggingConfigurationRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
227
322
  CreateLoggingConfigurationRequest.add_member(:log_group_arn, Shapes::ShapeRef.new(shape: LogGroupArn, required: true, location_name: "logGroupArn"))
228
323
  CreateLoggingConfigurationRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
@@ -284,6 +379,11 @@ module Aws::PrometheusService
284
379
  DeleteAlertManagerDefinitionRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location: "querystring", location_name: "clientToken", metadata: {"idempotencyToken" => true}))
285
380
  DeleteAlertManagerDefinitionRequest.struct_class = Types::DeleteAlertManagerDefinitionRequest
286
381
 
382
+ DeleteAnomalyDetectorRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
383
+ DeleteAnomalyDetectorRequest.add_member(:anomaly_detector_id, Shapes::ShapeRef.new(shape: AnomalyDetectorId, required: true, location: "uri", location_name: "anomalyDetectorId"))
384
+ DeleteAnomalyDetectorRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location: "querystring", location_name: "clientToken", metadata: {"idempotencyToken" => true}))
385
+ DeleteAnomalyDetectorRequest.struct_class = Types::DeleteAnomalyDetectorRequest
386
+
287
387
  DeleteLoggingConfigurationRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
288
388
  DeleteLoggingConfigurationRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location: "querystring", location_name: "clientToken", metadata: {"idempotencyToken" => true}))
289
389
  DeleteLoggingConfigurationRequest.struct_class = Types::DeleteLoggingConfigurationRequest
@@ -324,6 +424,13 @@ module Aws::PrometheusService
324
424
  DescribeAlertManagerDefinitionResponse.add_member(:alert_manager_definition, Shapes::ShapeRef.new(shape: AlertManagerDefinitionDescription, required: true, location_name: "alertManagerDefinition"))
325
425
  DescribeAlertManagerDefinitionResponse.struct_class = Types::DescribeAlertManagerDefinitionResponse
326
426
 
427
+ DescribeAnomalyDetectorRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
428
+ DescribeAnomalyDetectorRequest.add_member(:anomaly_detector_id, Shapes::ShapeRef.new(shape: AnomalyDetectorId, required: true, location: "uri", location_name: "anomalyDetectorId"))
429
+ DescribeAnomalyDetectorRequest.struct_class = Types::DescribeAnomalyDetectorRequest
430
+
431
+ DescribeAnomalyDetectorResponse.add_member(:anomaly_detector, Shapes::ShapeRef.new(shape: AnomalyDetectorDescription, required: true, location_name: "anomalyDetector"))
432
+ DescribeAnomalyDetectorResponse.struct_class = Types::DescribeAnomalyDetectorResponse
433
+
327
434
  DescribeLoggingConfigurationRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
328
435
  DescribeLoggingConfigurationRequest.struct_class = Types::DescribeLoggingConfigurationRequest
329
436
 
@@ -397,6 +504,14 @@ module Aws::PrometheusService
397
504
  GetDefaultScraperConfigurationResponse.add_member(:configuration, Shapes::ShapeRef.new(shape: Blob, required: true, location_name: "configuration"))
398
505
  GetDefaultScraperConfigurationResponse.struct_class = Types::GetDefaultScraperConfigurationResponse
399
506
 
507
+ IgnoreNearExpected.add_member(:amount, Shapes::ShapeRef.new(shape: IgnoreNearExpectedAmountDouble, location_name: "amount"))
508
+ IgnoreNearExpected.add_member(:ratio, Shapes::ShapeRef.new(shape: IgnoreNearExpectedRatioDouble, location_name: "ratio"))
509
+ IgnoreNearExpected.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
510
+ IgnoreNearExpected.add_member_subclass(:amount, Types::IgnoreNearExpected::Amount)
511
+ IgnoreNearExpected.add_member_subclass(:ratio, Types::IgnoreNearExpected::Ratio)
512
+ IgnoreNearExpected.add_member_subclass(:unknown, Types::IgnoreNearExpected::Unknown)
513
+ IgnoreNearExpected.struct_class = Types::IgnoreNearExpected
514
+
400
515
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
401
516
  InternalServerException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Retry-After"))
402
517
  InternalServerException.struct_class = Types::InternalServerException
@@ -413,6 +528,16 @@ module Aws::PrometheusService
413
528
 
414
529
  LimitsPerLabelSetList.member = Shapes::ShapeRef.new(shape: LimitsPerLabelSet)
415
530
 
531
+ ListAnomalyDetectorsRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
532
+ ListAnomalyDetectorsRequest.add_member(:alias, Shapes::ShapeRef.new(shape: AnomalyDetectorAlias, location: "querystring", location_name: "alias"))
533
+ ListAnomalyDetectorsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListAnomalyDetectorsRequestMaxResultsInteger, location: "querystring", location_name: "maxResults"))
534
+ ListAnomalyDetectorsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
535
+ ListAnomalyDetectorsRequest.struct_class = Types::ListAnomalyDetectorsRequest
536
+
537
+ ListAnomalyDetectorsResponse.add_member(:anomaly_detectors, Shapes::ShapeRef.new(shape: AnomalyDetectorSummaryList, required: true, location_name: "anomalyDetectors"))
538
+ ListAnomalyDetectorsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
539
+ ListAnomalyDetectorsResponse.struct_class = Types::ListAnomalyDetectorsResponse
540
+
416
541
  ListRuleGroupsNamespacesRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
417
542
  ListRuleGroupsNamespacesRequest.add_member(:name, Shapes::ShapeRef.new(shape: RuleGroupsNamespaceName, location: "querystring", location_name: "name"))
418
543
  ListRuleGroupsNamespacesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
@@ -467,6 +592,9 @@ module Aws::PrometheusService
467
592
  LoggingFilter.add_member(:qsp_threshold, Shapes::ShapeRef.new(shape: LoggingFilterQspThresholdLong, required: true, location_name: "qspThreshold"))
468
593
  LoggingFilter.struct_class = Types::LoggingFilter
469
594
 
595
+ PrometheusMetricLabelMap.key = Shapes::ShapeRef.new(shape: PrometheusMetricLabelKey)
596
+ PrometheusMetricLabelMap.value = Shapes::ShapeRef.new(shape: PrometheusMetricLabelValue)
597
+
470
598
  PutAlertManagerDefinitionRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
471
599
  PutAlertManagerDefinitionRequest.add_member(:data, Shapes::ShapeRef.new(shape: AlertManagerDefinitionData, required: true, location_name: "data"))
472
600
  PutAlertManagerDefinitionRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
@@ -475,6 +603,21 @@ module Aws::PrometheusService
475
603
  PutAlertManagerDefinitionResponse.add_member(:status, Shapes::ShapeRef.new(shape: AlertManagerDefinitionStatus, required: true, location_name: "status"))
476
604
  PutAlertManagerDefinitionResponse.struct_class = Types::PutAlertManagerDefinitionResponse
477
605
 
606
+ PutAnomalyDetectorRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
607
+ PutAnomalyDetectorRequest.add_member(:anomaly_detector_id, Shapes::ShapeRef.new(shape: AnomalyDetectorId, required: true, location: "uri", location_name: "anomalyDetectorId"))
608
+ PutAnomalyDetectorRequest.add_member(:evaluation_interval_in_seconds, Shapes::ShapeRef.new(shape: AnomalyDetectorEvaluationInterval, location_name: "evaluationIntervalInSeconds"))
609
+ PutAnomalyDetectorRequest.add_member(:missing_data_action, Shapes::ShapeRef.new(shape: AnomalyDetectorMissingDataAction, location_name: "missingDataAction"))
610
+ PutAnomalyDetectorRequest.add_member(:configuration, Shapes::ShapeRef.new(shape: AnomalyDetectorConfiguration, required: true, location_name: "configuration"))
611
+ PutAnomalyDetectorRequest.add_member(:labels, Shapes::ShapeRef.new(shape: PrometheusMetricLabelMap, location_name: "labels"))
612
+ PutAnomalyDetectorRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
613
+ PutAnomalyDetectorRequest.struct_class = Types::PutAnomalyDetectorRequest
614
+
615
+ PutAnomalyDetectorResponse.add_member(:anomaly_detector_id, Shapes::ShapeRef.new(shape: AnomalyDetectorId, required: true, location_name: "anomalyDetectorId"))
616
+ PutAnomalyDetectorResponse.add_member(:arn, Shapes::ShapeRef.new(shape: AnomalyDetectorArn, required: true, location_name: "arn"))
617
+ PutAnomalyDetectorResponse.add_member(:status, Shapes::ShapeRef.new(shape: AnomalyDetectorStatus, required: true, location_name: "status"))
618
+ PutAnomalyDetectorResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
619
+ PutAnomalyDetectorResponse.struct_class = Types::PutAnomalyDetectorResponse
620
+
478
621
  PutResourcePolicyRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
479
622
  PutResourcePolicyRequest.add_member(:policy_document, Shapes::ShapeRef.new(shape: String, required: true, location_name: "policyDocument"))
480
623
  PutResourcePolicyRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
@@ -508,6 +651,13 @@ module Aws::PrometheusService
508
651
  QueryLoggingConfigurationStatus.add_member(:status_reason, Shapes::ShapeRef.new(shape: String, location_name: "statusReason"))
509
652
  QueryLoggingConfigurationStatus.struct_class = Types::QueryLoggingConfigurationStatus
510
653
 
654
+ RandomCutForestConfiguration.add_member(:query, Shapes::ShapeRef.new(shape: RandomCutForestQuery, required: true, location_name: "query"))
655
+ RandomCutForestConfiguration.add_member(:shingle_size, Shapes::ShapeRef.new(shape: RandomCutForestConfigurationShingleSizeInteger, location_name: "shingleSize"))
656
+ RandomCutForestConfiguration.add_member(:sample_size, Shapes::ShapeRef.new(shape: RandomCutForestConfigurationSampleSizeInteger, location_name: "sampleSize"))
657
+ RandomCutForestConfiguration.add_member(:ignore_near_expected_from_above, Shapes::ShapeRef.new(shape: IgnoreNearExpected, location_name: "ignoreNearExpectedFromAbove"))
658
+ RandomCutForestConfiguration.add_member(:ignore_near_expected_from_below, Shapes::ShapeRef.new(shape: IgnoreNearExpected, location_name: "ignoreNearExpectedFromBelow"))
659
+ RandomCutForestConfiguration.struct_class = Types::RandomCutForestConfiguration
660
+
511
661
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
512
662
  ResourceNotFoundException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
513
663
  ResourceNotFoundException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
@@ -609,8 +759,10 @@ module Aws::PrometheusService
609
759
  ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
610
760
 
611
761
  Source.add_member(:eks_configuration, Shapes::ShapeRef.new(shape: EksConfiguration, location_name: "eksConfiguration"))
762
+ Source.add_member(:vpc_configuration, Shapes::ShapeRef.new(shape: VpcConfiguration, location_name: "vpcConfiguration"))
612
763
  Source.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
613
764
  Source.add_member_subclass(:eks_configuration, Types::Source::EksConfiguration)
765
+ Source.add_member_subclass(:vpc_configuration, Types::Source::VpcConfiguration)
614
766
  Source.add_member_subclass(:unknown, Types::Source::Unknown)
615
767
  Source.struct_class = Types::Source
616
768
 
@@ -705,6 +857,10 @@ module Aws::PrometheusService
705
857
 
706
858
  ValidationExceptionFieldList.member = Shapes::ShapeRef.new(shape: ValidationExceptionField)
707
859
 
860
+ VpcConfiguration.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: SecurityGroupIds, required: true, location_name: "securityGroupIds"))
861
+ VpcConfiguration.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: SubnetIds, required: true, location_name: "subnetIds"))
862
+ VpcConfiguration.struct_class = Types::VpcConfiguration
863
+
708
864
  WorkspaceConfigurationDescription.add_member(:status, Shapes::ShapeRef.new(shape: WorkspaceConfigurationStatus, required: true, location_name: "status"))
709
865
  WorkspaceConfigurationDescription.add_member(:limits_per_label_set, Shapes::ShapeRef.new(shape: LimitsPerLabelSetList, location_name: "limitsPerLabelSet"))
710
866
  WorkspaceConfigurationDescription.add_member(:retention_period_in_days, Shapes::ShapeRef.new(shape: WorkspaceConfigurationDescriptionRetentionPeriodInDaysInteger, location_name: "retentionPeriodInDays"))
@@ -772,6 +928,20 @@ module Aws::PrometheusService
772
928
  o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
773
929
  end)
774
930
 
931
+ api.add_operation(:create_anomaly_detector, Seahorse::Model::Operation.new.tap do |o|
932
+ o.name = "CreateAnomalyDetector"
933
+ o.http_method = "POST"
934
+ o.http_request_uri = "/workspaces/{workspaceId}/anomalydetectors"
935
+ o.input = Shapes::ShapeRef.new(shape: CreateAnomalyDetectorRequest)
936
+ o.output = Shapes::ShapeRef.new(shape: CreateAnomalyDetectorResponse)
937
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
938
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
939
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
940
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
941
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
942
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
943
+ end)
944
+
775
945
  api.add_operation(:create_logging_configuration, Seahorse::Model::Operation.new.tap do |o|
776
946
  o.name = "CreateLoggingConfiguration"
777
947
  o.http_method = "POST"
@@ -854,6 +1024,20 @@ module Aws::PrometheusService
854
1024
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
855
1025
  end)
856
1026
 
1027
+ api.add_operation(:delete_anomaly_detector, Seahorse::Model::Operation.new.tap do |o|
1028
+ o.name = "DeleteAnomalyDetector"
1029
+ o.http_method = "DELETE"
1030
+ o.http_request_uri = "/workspaces/{workspaceId}/anomalydetectors/{anomalyDetectorId}"
1031
+ o.input = Shapes::ShapeRef.new(shape: DeleteAnomalyDetectorRequest)
1032
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
1033
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1034
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1035
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1036
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1037
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1038
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1039
+ end)
1040
+
857
1041
  api.add_operation(:delete_logging_configuration, Seahorse::Model::Operation.new.tap do |o|
858
1042
  o.name = "DeleteLoggingConfiguration"
859
1043
  o.http_method = "DELETE"
@@ -962,6 +1146,19 @@ module Aws::PrometheusService
962
1146
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
963
1147
  end)
964
1148
 
1149
+ api.add_operation(:describe_anomaly_detector, Seahorse::Model::Operation.new.tap do |o|
1150
+ o.name = "DescribeAnomalyDetector"
1151
+ o.http_method = "GET"
1152
+ o.http_request_uri = "/workspaces/{workspaceId}/anomalydetectors/{anomalyDetectorId}"
1153
+ o.input = Shapes::ShapeRef.new(shape: DescribeAnomalyDetectorRequest)
1154
+ o.output = Shapes::ShapeRef.new(shape: DescribeAnomalyDetectorResponse)
1155
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1156
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1157
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1158
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1159
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1160
+ end)
1161
+
965
1162
  api.add_operation(:describe_logging_configuration, Seahorse::Model::Operation.new.tap do |o|
966
1163
  o.name = "DescribeLoggingConfiguration"
967
1164
  o.http_method = "GET"
@@ -1074,6 +1271,25 @@ module Aws::PrometheusService
1074
1271
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1075
1272
  end)
1076
1273
 
1274
+ api.add_operation(:list_anomaly_detectors, Seahorse::Model::Operation.new.tap do |o|
1275
+ o.name = "ListAnomalyDetectors"
1276
+ o.http_method = "GET"
1277
+ o.http_request_uri = "/workspaces/{workspaceId}/anomalydetectors"
1278
+ o.input = Shapes::ShapeRef.new(shape: ListAnomalyDetectorsRequest)
1279
+ o.output = Shapes::ShapeRef.new(shape: ListAnomalyDetectorsResponse)
1280
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1281
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1282
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1283
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1284
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1285
+ o[:pager] = Aws::Pager.new(
1286
+ limit_key: "max_results",
1287
+ tokens: {
1288
+ "next_token" => "next_token"
1289
+ }
1290
+ )
1291
+ end)
1292
+
1077
1293
  api.add_operation(:list_rule_groups_namespaces, Seahorse::Model::Operation.new.tap do |o|
1078
1294
  o.name = "ListRuleGroupsNamespaces"
1079
1295
  o.http_method = "GET"
@@ -1157,6 +1373,20 @@ module Aws::PrometheusService
1157
1373
  o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1158
1374
  end)
1159
1375
 
1376
+ api.add_operation(:put_anomaly_detector, Seahorse::Model::Operation.new.tap do |o|
1377
+ o.name = "PutAnomalyDetector"
1378
+ o.http_method = "PUT"
1379
+ o.http_request_uri = "/workspaces/{workspaceId}/anomalydetectors/{anomalyDetectorId}"
1380
+ o.input = Shapes::ShapeRef.new(shape: PutAnomalyDetectorRequest)
1381
+ o.output = Shapes::ShapeRef.new(shape: PutAnomalyDetectorResponse)
1382
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1383
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1384
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1385
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1386
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1387
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1388
+ end)
1389
+
1160
1390
  api.add_operation(:put_resource_policy, Seahorse::Model::Operation.new.tap do |o|
1161
1391
  o.name = "PutResourcePolicy"
1162
1392
  o.http_method = "PUT"