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.
data/sig/client.rbs CHANGED
@@ -90,6 +90,43 @@ module Aws
90
90
  ) -> _CreateAlertManagerDefinitionResponseSuccess
91
91
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateAlertManagerDefinitionResponseSuccess
92
92
 
93
+ interface _CreateAnomalyDetectorResponseSuccess
94
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateAnomalyDetectorResponse]
95
+ def anomaly_detector_id: () -> ::String
96
+ def arn: () -> ::String
97
+ def status: () -> Types::AnomalyDetectorStatus
98
+ def tags: () -> ::Hash[::String, ::String]
99
+ end
100
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PrometheusService/Client.html#create_anomaly_detector-instance_method
101
+ def create_anomaly_detector: (
102
+ workspace_id: ::String,
103
+ alias: ::String,
104
+ ?evaluation_interval_in_seconds: ::Integer,
105
+ ?missing_data_action: {
106
+ mark_as_anomaly: bool?,
107
+ skip: bool?
108
+ },
109
+ configuration: {
110
+ random_cut_forest: {
111
+ query: ::String,
112
+ shingle_size: ::Integer?,
113
+ sample_size: ::Integer?,
114
+ ignore_near_expected_from_above: {
115
+ amount: ::Float?,
116
+ ratio: ::Float?
117
+ }?,
118
+ ignore_near_expected_from_below: {
119
+ amount: ::Float?,
120
+ ratio: ::Float?
121
+ }?
122
+ }?
123
+ },
124
+ ?labels: Hash[::String, ::String],
125
+ ?client_token: ::String,
126
+ ?tags: Hash[::String, ::String]
127
+ ) -> _CreateAnomalyDetectorResponseSuccess
128
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateAnomalyDetectorResponseSuccess
129
+
93
130
  interface _CreateLoggingConfigurationResponseSuccess
94
131
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateLoggingConfigurationResponse]
95
132
  def status: () -> Types::LoggingConfigurationStatus
@@ -198,6 +235,14 @@ module Aws
198
235
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
199
236
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
200
237
 
238
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PrometheusService/Client.html#delete_anomaly_detector-instance_method
239
+ def delete_anomaly_detector: (
240
+ workspace_id: ::String,
241
+ anomaly_detector_id: ::String,
242
+ ?client_token: ::String
243
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
244
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
245
+
201
246
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PrometheusService/Client.html#delete_logging_configuration-instance_method
202
247
  def delete_logging_configuration: (
203
248
  workspace_id: ::String,
@@ -264,6 +309,17 @@ module Aws
264
309
  ) -> _DescribeAlertManagerDefinitionResponseSuccess
265
310
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeAlertManagerDefinitionResponseSuccess
266
311
 
312
+ interface _DescribeAnomalyDetectorResponseSuccess
313
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeAnomalyDetectorResponse]
314
+ def anomaly_detector: () -> Types::AnomalyDetectorDescription
315
+ end
316
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PrometheusService/Client.html#describe_anomaly_detector-instance_method
317
+ def describe_anomaly_detector: (
318
+ workspace_id: ::String,
319
+ anomaly_detector_id: ::String
320
+ ) -> _DescribeAnomalyDetectorResponseSuccess
321
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeAnomalyDetectorResponseSuccess
322
+
267
323
  interface _DescribeLoggingConfigurationResponseSuccess
268
324
  include ::Seahorse::Client::_ResponseSuccess[Types::DescribeLoggingConfigurationResponse]
269
325
  def logging_configuration: () -> Types::LoggingConfigurationMetadata
@@ -360,6 +416,20 @@ module Aws
360
416
  ) -> _GetDefaultScraperConfigurationResponseSuccess
361
417
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetDefaultScraperConfigurationResponseSuccess
362
418
 
419
+ interface _ListAnomalyDetectorsResponseSuccess
420
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListAnomalyDetectorsResponse]
421
+ def anomaly_detectors: () -> ::Array[Types::AnomalyDetectorSummary]
422
+ def next_token: () -> ::String
423
+ end
424
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PrometheusService/Client.html#list_anomaly_detectors-instance_method
425
+ def list_anomaly_detectors: (
426
+ workspace_id: ::String,
427
+ ?alias: ::String,
428
+ ?max_results: ::Integer,
429
+ ?next_token: ::String
430
+ ) -> _ListAnomalyDetectorsResponseSuccess
431
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAnomalyDetectorsResponseSuccess
432
+
363
433
  interface _ListRuleGroupsNamespacesResponseSuccess
364
434
  include ::Seahorse::Client::_ResponseSuccess[Types::ListRuleGroupsNamespacesResponse]
365
435
  def rule_groups_namespaces: () -> ::Array[Types::RuleGroupsNamespaceSummary]
@@ -422,6 +492,42 @@ module Aws
422
492
  ) -> _PutAlertManagerDefinitionResponseSuccess
423
493
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutAlertManagerDefinitionResponseSuccess
424
494
 
495
+ interface _PutAnomalyDetectorResponseSuccess
496
+ include ::Seahorse::Client::_ResponseSuccess[Types::PutAnomalyDetectorResponse]
497
+ def anomaly_detector_id: () -> ::String
498
+ def arn: () -> ::String
499
+ def status: () -> Types::AnomalyDetectorStatus
500
+ def tags: () -> ::Hash[::String, ::String]
501
+ end
502
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PrometheusService/Client.html#put_anomaly_detector-instance_method
503
+ def put_anomaly_detector: (
504
+ workspace_id: ::String,
505
+ anomaly_detector_id: ::String,
506
+ ?evaluation_interval_in_seconds: ::Integer,
507
+ ?missing_data_action: {
508
+ mark_as_anomaly: bool?,
509
+ skip: bool?
510
+ },
511
+ configuration: {
512
+ random_cut_forest: {
513
+ query: ::String,
514
+ shingle_size: ::Integer?,
515
+ sample_size: ::Integer?,
516
+ ignore_near_expected_from_above: {
517
+ amount: ::Float?,
518
+ ratio: ::Float?
519
+ }?,
520
+ ignore_near_expected_from_below: {
521
+ amount: ::Float?,
522
+ ratio: ::Float?
523
+ }?
524
+ }?
525
+ },
526
+ ?labels: Hash[::String, ::String],
527
+ ?client_token: ::String
528
+ ) -> _PutAnomalyDetectorResponseSuccess
529
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutAnomalyDetectorResponseSuccess
530
+
425
531
  interface _PutResourcePolicyResponseSuccess
426
532
  include ::Seahorse::Client::_ResponseSuccess[Types::PutResourcePolicyResponse]
427
533
  def policy_status: () -> ("CREATING" | "ACTIVE" | "UPDATING" | "DELETING")
@@ -584,7 +690,17 @@ module Aws
584
690
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateWorkspaceConfigurationResponseSuccess
585
691
 
586
692
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PrometheusService/Client.html#wait_until-instance_method
587
- def wait_until: (:scraper_active waiter_name,
693
+ def wait_until: (:anomaly_detector_active waiter_name,
694
+ workspace_id: ::String,
695
+ anomaly_detector_id: ::String
696
+ ) -> Client::_DescribeAnomalyDetectorResponseSuccess
697
+ | (:anomaly_detector_active waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_DescribeAnomalyDetectorResponseSuccess
698
+ | (:anomaly_detector_deleted waiter_name,
699
+ workspace_id: ::String,
700
+ anomaly_detector_id: ::String
701
+ ) -> Client::_DescribeAnomalyDetectorResponseSuccess
702
+ | (:anomaly_detector_deleted waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_DescribeAnomalyDetectorResponseSuccess
703
+ | (:scraper_active waiter_name,
588
704
  scraper_id: ::String
589
705
  ) -> Client::_DescribeScraperResponseSuccess
590
706
  | (:scraper_active waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_DescribeScraperResponseSuccess
data/sig/types.rbs CHANGED
@@ -32,6 +32,63 @@ module Aws::PrometheusService
32
32
  SENSITIVE: []
33
33
  end
34
34
 
35
+ class AnomalyDetectorConfiguration
36
+ attr_accessor random_cut_forest: Types::RandomCutForestConfiguration
37
+ attr_accessor unknown: untyped
38
+ SENSITIVE: []
39
+
40
+ class RandomCutForest < AnomalyDetectorConfiguration
41
+ end
42
+ class Unknown < AnomalyDetectorConfiguration
43
+ end
44
+ end
45
+
46
+ class AnomalyDetectorDescription
47
+ attr_accessor arn: ::String
48
+ attr_accessor anomaly_detector_id: ::String
49
+ attr_accessor alias: ::String
50
+ attr_accessor evaluation_interval_in_seconds: ::Integer
51
+ attr_accessor missing_data_action: Types::AnomalyDetectorMissingDataAction
52
+ attr_accessor configuration: Types::AnomalyDetectorConfiguration
53
+ attr_accessor labels: ::Hash[::String, ::String]
54
+ attr_accessor status: Types::AnomalyDetectorStatus
55
+ attr_accessor created_at: ::Time
56
+ attr_accessor modified_at: ::Time
57
+ attr_accessor tags: ::Hash[::String, ::String]
58
+ SENSITIVE: []
59
+ end
60
+
61
+ class AnomalyDetectorMissingDataAction
62
+ attr_accessor mark_as_anomaly: bool
63
+ attr_accessor skip: bool
64
+ attr_accessor unknown: untyped
65
+ SENSITIVE: []
66
+
67
+ class MarkAsAnomaly < AnomalyDetectorMissingDataAction
68
+ end
69
+ class Skip < AnomalyDetectorMissingDataAction
70
+ end
71
+ class Unknown < AnomalyDetectorMissingDataAction
72
+ end
73
+ end
74
+
75
+ class AnomalyDetectorStatus
76
+ attr_accessor status_code: ("CREATING" | "ACTIVE" | "UPDATING" | "DELETING" | "CREATION_FAILED" | "UPDATE_FAILED" | "DELETION_FAILED")
77
+ attr_accessor status_reason: ::String
78
+ SENSITIVE: []
79
+ end
80
+
81
+ class AnomalyDetectorSummary
82
+ attr_accessor arn: ::String
83
+ attr_accessor anomaly_detector_id: ::String
84
+ attr_accessor alias: ::String
85
+ attr_accessor status: Types::AnomalyDetectorStatus
86
+ attr_accessor created_at: ::Time
87
+ attr_accessor modified_at: ::Time
88
+ attr_accessor tags: ::Hash[::String, ::String]
89
+ SENSITIVE: []
90
+ end
91
+
35
92
  class CloudWatchLogDestination
36
93
  attr_accessor log_group_arn: ::String
37
94
  SENSITIVE: []
@@ -61,6 +118,26 @@ module Aws::PrometheusService
61
118
  SENSITIVE: []
62
119
  end
63
120
 
121
+ class CreateAnomalyDetectorRequest
122
+ attr_accessor workspace_id: ::String
123
+ attr_accessor alias: ::String
124
+ attr_accessor evaluation_interval_in_seconds: ::Integer
125
+ attr_accessor missing_data_action: Types::AnomalyDetectorMissingDataAction
126
+ attr_accessor configuration: Types::AnomalyDetectorConfiguration
127
+ attr_accessor labels: ::Hash[::String, ::String]
128
+ attr_accessor client_token: ::String
129
+ attr_accessor tags: ::Hash[::String, ::String]
130
+ SENSITIVE: []
131
+ end
132
+
133
+ class CreateAnomalyDetectorResponse
134
+ attr_accessor anomaly_detector_id: ::String
135
+ attr_accessor arn: ::String
136
+ attr_accessor status: Types::AnomalyDetectorStatus
137
+ attr_accessor tags: ::Hash[::String, ::String]
138
+ SENSITIVE: []
139
+ end
140
+
64
141
  class CreateLoggingConfigurationRequest
65
142
  attr_accessor workspace_id: ::String
66
143
  attr_accessor log_group_arn: ::String
@@ -144,6 +221,13 @@ module Aws::PrometheusService
144
221
  SENSITIVE: []
145
222
  end
146
223
 
224
+ class DeleteAnomalyDetectorRequest
225
+ attr_accessor workspace_id: ::String
226
+ attr_accessor anomaly_detector_id: ::String
227
+ attr_accessor client_token: ::String
228
+ SENSITIVE: []
229
+ end
230
+
147
231
  class DeleteLoggingConfigurationRequest
148
232
  attr_accessor workspace_id: ::String
149
233
  attr_accessor client_token: ::String
@@ -204,6 +288,17 @@ module Aws::PrometheusService
204
288
  SENSITIVE: []
205
289
  end
206
290
 
291
+ class DescribeAnomalyDetectorRequest
292
+ attr_accessor workspace_id: ::String
293
+ attr_accessor anomaly_detector_id: ::String
294
+ SENSITIVE: []
295
+ end
296
+
297
+ class DescribeAnomalyDetectorResponse
298
+ attr_accessor anomaly_detector: Types::AnomalyDetectorDescription
299
+ SENSITIVE: []
300
+ end
301
+
207
302
  class DescribeLoggingConfigurationRequest
208
303
  attr_accessor workspace_id: ::String
209
304
  SENSITIVE: []
@@ -317,6 +412,20 @@ module Aws::PrometheusService
317
412
  SENSITIVE: []
318
413
  end
319
414
 
415
+ class IgnoreNearExpected
416
+ attr_accessor amount: ::Float
417
+ attr_accessor ratio: ::Float
418
+ attr_accessor unknown: untyped
419
+ SENSITIVE: []
420
+
421
+ class Amount < IgnoreNearExpected
422
+ end
423
+ class Ratio < IgnoreNearExpected
424
+ end
425
+ class Unknown < IgnoreNearExpected
426
+ end
427
+ end
428
+
320
429
  class InternalServerException
321
430
  attr_accessor message: ::String
322
431
  attr_accessor retry_after_seconds: ::Integer
@@ -334,6 +443,20 @@ module Aws::PrometheusService
334
443
  SENSITIVE: []
335
444
  end
336
445
 
446
+ class ListAnomalyDetectorsRequest
447
+ attr_accessor workspace_id: ::String
448
+ attr_accessor alias: ::String
449
+ attr_accessor max_results: ::Integer
450
+ attr_accessor next_token: ::String
451
+ SENSITIVE: []
452
+ end
453
+
454
+ class ListAnomalyDetectorsResponse
455
+ attr_accessor anomaly_detectors: ::Array[Types::AnomalyDetectorSummary]
456
+ attr_accessor next_token: ::String
457
+ SENSITIVE: []
458
+ end
459
+
337
460
  class ListRuleGroupsNamespacesRequest
338
461
  attr_accessor workspace_id: ::String
339
462
  attr_accessor name: ::String
@@ -422,6 +545,25 @@ module Aws::PrometheusService
422
545
  SENSITIVE: []
423
546
  end
424
547
 
548
+ class PutAnomalyDetectorRequest
549
+ attr_accessor workspace_id: ::String
550
+ attr_accessor anomaly_detector_id: ::String
551
+ attr_accessor evaluation_interval_in_seconds: ::Integer
552
+ attr_accessor missing_data_action: Types::AnomalyDetectorMissingDataAction
553
+ attr_accessor configuration: Types::AnomalyDetectorConfiguration
554
+ attr_accessor labels: ::Hash[::String, ::String]
555
+ attr_accessor client_token: ::String
556
+ SENSITIVE: []
557
+ end
558
+
559
+ class PutAnomalyDetectorResponse
560
+ attr_accessor anomaly_detector_id: ::String
561
+ attr_accessor arn: ::String
562
+ attr_accessor status: Types::AnomalyDetectorStatus
563
+ attr_accessor tags: ::Hash[::String, ::String]
564
+ SENSITIVE: []
565
+ end
566
+
425
567
  class PutResourcePolicyRequest
426
568
  attr_accessor workspace_id: ::String
427
569
  attr_accessor policy_document: ::String
@@ -467,6 +609,15 @@ module Aws::PrometheusService
467
609
  SENSITIVE: []
468
610
  end
469
611
 
612
+ class RandomCutForestConfiguration
613
+ attr_accessor query: ::String
614
+ attr_accessor shingle_size: ::Integer
615
+ attr_accessor sample_size: ::Integer
616
+ attr_accessor ignore_near_expected_from_above: Types::IgnoreNearExpected
617
+ attr_accessor ignore_near_expected_from_below: Types::IgnoreNearExpected
618
+ SENSITIVE: []
619
+ end
620
+
470
621
  class ResourceNotFoundException
471
622
  attr_accessor message: ::String
472
623
  attr_accessor resource_id: ::String
data/sig/waiters.rbs CHANGED
@@ -9,6 +9,28 @@ module Aws
9
9
  module PrometheusService
10
10
  module Waiters
11
11
 
12
+ class AnomalyDetectorActive
13
+ def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
14
+ | (?Hash[Symbol, untyped]) -> void
15
+
16
+ def wait: (
17
+ workspace_id: ::String,
18
+ anomaly_detector_id: ::String
19
+ ) -> Client::_DescribeAnomalyDetectorResponseSuccess
20
+ | (Hash[Symbol, untyped]) -> Client::_DescribeAnomalyDetectorResponseSuccess
21
+ end
22
+
23
+ class AnomalyDetectorDeleted
24
+ def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
25
+ | (?Hash[Symbol, untyped]) -> void
26
+
27
+ def wait: (
28
+ workspace_id: ::String,
29
+ anomaly_detector_id: ::String
30
+ ) -> Client::_DescribeAnomalyDetectorResponseSuccess
31
+ | (Hash[Symbol, untyped]) -> Client::_DescribeAnomalyDetectorResponseSuccess
32
+ end
33
+
12
34
  class ScraperActive
13
35
  def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
14
36
  | (?Hash[Symbol, untyped]) -> void
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-prometheusservice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.62.0
4
+ version: 1.63.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services