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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b697b6cc911216035d928c1dff41f5ca7e811d9f189cde251d24ceb9e09aa9c
4
- data.tar.gz: baa0a8a21fc3d5032d0f829ce50838e4ec58712014e7e28f58f2bab968a0dab4
3
+ metadata.gz: 90a872b2beb7ae5f7161f410369f8ff6bc2690d3dddb34a43dbd7daedfdeca42
4
+ data.tar.gz: 575573a7f6d0c85f8c17dc1afae4ed51072dd00d0f4386458301058f833e4437
5
5
  SHA512:
6
- metadata.gz: cfcb48ebe94773a88b2352d751d5639770bfba632b6c348b82001f4b6fa0f0d00ad3f99f3757173c6104386b319b74b07b18aa85564b8ea49570e80be23383ca
7
- data.tar.gz: d6667aca76f6db7b05ea64620ef9a9c22493b8b694cd7698cefb032f9a520a6ff3da0ea687069c44d766c57664fd3168c33a80114ec93fbcdac45fc1a831606e
6
+ metadata.gz: 1239b23949c21a49c92e52feac6308fa9076e4d0ab6ce8ccedb3e5314e8b374c88739292b51fda34624821cca92b8c89d702ed26be38fee176f37839ed33bd4c
7
+ data.tar.gz: 8737b2f27b851ba74b7cd8df66af2fa9758989578063f21dd7844369638c260f67c7261611471b99f4e57a5f46aa49a9044c62a1fd55938096ea26bbf39648f4
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.64.0 (2025-11-12)
5
+ ------------------
6
+
7
+ * Feature - Add VPC source configuration support enabling Amazon Managed Service for Prometheus Collector to collect metrics from MSK clusters.
8
+
9
+ 1.63.0 (2025-10-30)
10
+ ------------------
11
+
12
+ * Feature - Add Anomaly Detection APIs for Amazon Managed Prometheus
13
+
4
14
  1.62.0 (2025-10-21)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.62.0
1
+ 1.64.0
@@ -528,6 +528,102 @@ module Aws::PrometheusService
528
528
  req.send_request(options)
529
529
  end
530
530
 
531
+ # Creates an anomaly detector within a workspace using the Random Cut
532
+ # Forest algorithm for time-series analysis. The anomaly detector
533
+ # analyzes Amazon Managed Service for Prometheus metrics to identify
534
+ # unusual patterns and behaviors.
535
+ #
536
+ # @option params [required, String] :workspace_id
537
+ # The identifier of the workspace where the anomaly detector will be
538
+ # created.
539
+ #
540
+ # @option params [required, String] :alias
541
+ # A user-friendly name for the anomaly detector.
542
+ #
543
+ # @option params [Integer] :evaluation_interval_in_seconds
544
+ # The frequency, in seconds, at which the anomaly detector evaluates
545
+ # metrics. The default value is 60 seconds.
546
+ #
547
+ # @option params [Types::AnomalyDetectorMissingDataAction] :missing_data_action
548
+ # Specifies the action to take when data is missing during evaluation.
549
+ #
550
+ # @option params [required, Types::AnomalyDetectorConfiguration] :configuration
551
+ # The algorithm configuration for the anomaly detector.
552
+ #
553
+ # @option params [Hash<String,String>] :labels
554
+ # The Amazon Managed Service for Prometheus metric labels to associate
555
+ # with the anomaly detector.
556
+ #
557
+ # @option params [String] :client_token
558
+ # A unique, case-sensitive identifier that you provide to ensure the
559
+ # idempotency of the request.
560
+ #
561
+ # **A suitable default value is auto-generated.** You should normally
562
+ # not need to pass this option.**
563
+ #
564
+ # @option params [Hash<String,String>] :tags
565
+ # The metadata to apply to the anomaly detector to assist with
566
+ # categorization and organization.
567
+ #
568
+ # @return [Types::CreateAnomalyDetectorResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
569
+ #
570
+ # * {Types::CreateAnomalyDetectorResponse#anomaly_detector_id #anomaly_detector_id} => String
571
+ # * {Types::CreateAnomalyDetectorResponse#arn #arn} => String
572
+ # * {Types::CreateAnomalyDetectorResponse#status #status} => Types::AnomalyDetectorStatus
573
+ # * {Types::CreateAnomalyDetectorResponse#tags #tags} => Hash&lt;String,String&gt;
574
+ #
575
+ # @example Request syntax with placeholder values
576
+ #
577
+ # resp = client.create_anomaly_detector({
578
+ # workspace_id: "WorkspaceId", # required
579
+ # alias: "AnomalyDetectorAlias", # required
580
+ # evaluation_interval_in_seconds: 1,
581
+ # missing_data_action: {
582
+ # mark_as_anomaly: false,
583
+ # skip: false,
584
+ # },
585
+ # configuration: { # required
586
+ # random_cut_forest: {
587
+ # query: "RandomCutForestQuery", # required
588
+ # shingle_size: 1,
589
+ # sample_size: 1,
590
+ # ignore_near_expected_from_above: {
591
+ # amount: 1.0,
592
+ # ratio: 1.0,
593
+ # },
594
+ # ignore_near_expected_from_below: {
595
+ # amount: 1.0,
596
+ # ratio: 1.0,
597
+ # },
598
+ # },
599
+ # },
600
+ # labels: {
601
+ # "PrometheusMetricLabelKey" => "PrometheusMetricLabelValue",
602
+ # },
603
+ # client_token: "IdempotencyToken",
604
+ # tags: {
605
+ # "TagKey" => "TagValue",
606
+ # },
607
+ # })
608
+ #
609
+ # @example Response structure
610
+ #
611
+ # resp.anomaly_detector_id #=> String
612
+ # resp.arn #=> String
613
+ # resp.status.status_code #=> String, one of "CREATING", "ACTIVE", "UPDATING", "DELETING", "CREATION_FAILED", "UPDATE_FAILED", "DELETION_FAILED"
614
+ # resp.status.status_reason #=> String
615
+ # resp.tags #=> Hash
616
+ # resp.tags["TagKey"] #=> String
617
+ #
618
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/CreateAnomalyDetector AWS API Documentation
619
+ #
620
+ # @overload create_anomaly_detector(params = {})
621
+ # @param [Hash] params ({})
622
+ def create_anomaly_detector(params = {}, options = {})
623
+ req = build_request(:create_anomaly_detector, params)
624
+ req.send_request(options)
625
+ end
626
+
531
627
  # The `CreateLoggingConfiguration` operation creates rules and alerting
532
628
  # logging configuration for the workspace. Use this operation to set the
533
629
  # CloudWatch log group to which the logs will be published to.
@@ -636,6 +732,9 @@ module Aws::PrometheusService
636
732
  # with exactly one rules file. A workspace can have multiple rule groups
637
733
  # namespaces.
638
734
  #
735
+ # The combined length of a rule group namespace and a rule group name
736
+ # cannot exceed 721 UTF-8 bytes.
737
+ #
639
738
  # Use this operation only to create new rule groups namespaces. To
640
739
  # update an existing rule groups namespace, use
641
740
  # `PutRuleGroupsNamespace`.
@@ -707,16 +806,18 @@ module Aws::PrometheusService
707
806
  end
708
807
 
709
808
  # The `CreateScraper` operation creates a scraper to collect metrics. A
710
- # scraper pulls metrics from Prometheus-compatible sources within an
711
- # Amazon EKS cluster, and sends them to your Amazon Managed Service for
712
- # Prometheus workspace. Scrapers are flexible, and can be configured to
713
- # control what metrics are collected, the frequency of collection, what
809
+ # scraper pulls metrics from Prometheus-compatible sources and sends
810
+ # them to your Amazon Managed Service for Prometheus workspace. You can
811
+ # configure scrapers to collect metrics from Amazon EKS clusters, Amazon
812
+ # MSK clusters, or from VPC-based sources that support DNS-based service
813
+ # discovery. Scrapers are flexible, and can be configured to control
814
+ # what metrics are collected, the frequency of collection, what
714
815
  # transformations are applied to the metrics, and more.
715
816
  #
716
817
  # An IAM role will be created for you that Amazon Managed Service for
717
- # Prometheus uses to access the metrics in your cluster. You must
818
+ # Prometheus uses to access the metrics in your source. You must
718
819
  # configure this role with a policy that allows it to scrape metrics
719
- # from your cluster. For more information, see [Configuring your Amazon
820
+ # from your source. For Amazon EKS sources, see [Configuring your Amazon
720
821
  # EKS cluster][1] in the *Amazon Managed Service for Prometheus User
721
822
  # Guide*.
722
823
  #
@@ -725,8 +826,8 @@ module Aws::PrometheusService
725
826
  #
726
827
  # When creating a scraper, the service creates a `Network Interface` in
727
828
  # each **Availability Zone** that are passed into `CreateScraper`
728
- # through subnets. These network interfaces are used to connect to the
729
- # Amazon EKS cluster within the VPC for scraping metrics.
829
+ # through subnets. These network interfaces are used to connect to your
830
+ # source within the VPC for scraping metrics.
730
831
  #
731
832
  # <note markdown="1"> For more information about collectors, including what metrics are
732
833
  # collected, and how to configure the scraper, see [Using an Amazon Web
@@ -754,7 +855,8 @@ module Aws::PrometheusService
754
855
  # [1]: https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html#AMP-collector-configuration
755
856
  #
756
857
  # @option params [required, Types::Source] :source
757
- # The Amazon EKS cluster from which the scraper will collect metrics.
858
+ # The Amazon EKS or Amazon Web Services cluster from which the scraper
859
+ # will collect metrics.
758
860
  #
759
861
  # @option params [required, Types::Destination] :destination
760
862
  # The Amazon Managed Service for Prometheus workspace to send metrics
@@ -824,6 +926,46 @@ module Aws::PrometheusService
824
926
  # },
825
927
  # }
826
928
  #
929
+ # @example Example: CreateScraper with generic VPC config with mandatory securityGroupIds and subnetIds
930
+ #
931
+ # resp = client.create_scraper({
932
+ # alias: "alias",
933
+ # client_token: "token",
934
+ # destination: {
935
+ # amp_configuration: {
936
+ # workspace_arn: "arn:aws:aps:us-west-2:123456789012:workspace/ws-ogh2u499-ce12-hg89-v6c7-123412341234",
937
+ # },
938
+ # },
939
+ # scrape_configuration: {
940
+ # configuration_blob: "blob",
941
+ # },
942
+ # source: {
943
+ # vpc_configuration: {
944
+ # security_group_ids: [
945
+ # "sg-abc123",
946
+ # ],
947
+ # subnet_ids: [
948
+ # "subnet-abc123",
949
+ # ],
950
+ # },
951
+ # },
952
+ # tags: {
953
+ # "exampleTag" => "exampleValue",
954
+ # },
955
+ # })
956
+ #
957
+ # resp.to_h outputs the following:
958
+ # {
959
+ # arn: "arn:aws:aps:us-west-2:123456789012:scraper/scraper-123",
960
+ # scraper_id: "scraper-123",
961
+ # status: {
962
+ # status_code: "CREATING",
963
+ # },
964
+ # tags: {
965
+ # "exampleTag" => "exampleValue",
966
+ # },
967
+ # }
968
+ #
827
969
  # @example Request syntax with placeholder values
828
970
  #
829
971
  # resp = client.create_scraper({
@@ -837,6 +979,10 @@ module Aws::PrometheusService
837
979
  # security_group_ids: ["SecurityGroupId"],
838
980
  # subnet_ids: ["SubnetId"], # required
839
981
  # },
982
+ # vpc_configuration: {
983
+ # security_group_ids: ["SecurityGroupId"], # required
984
+ # subnet_ids: ["SubnetId"], # required
985
+ # },
840
986
  # },
841
987
  # destination: { # required
842
988
  # amp_configuration: {
@@ -968,6 +1114,42 @@ module Aws::PrometheusService
968
1114
  req.send_request(options)
969
1115
  end
970
1116
 
1117
+ # Removes an anomaly detector from a workspace. This operation is
1118
+ # idempotent.
1119
+ #
1120
+ # @option params [required, String] :workspace_id
1121
+ # The identifier of the workspace containing the anomaly detector to
1122
+ # delete.
1123
+ #
1124
+ # @option params [required, String] :anomaly_detector_id
1125
+ # The identifier of the anomaly detector to delete.
1126
+ #
1127
+ # @option params [String] :client_token
1128
+ # A unique, case-sensitive identifier that you provide to ensure the
1129
+ # idempotency of the request.
1130
+ #
1131
+ # **A suitable default value is auto-generated.** You should normally
1132
+ # not need to pass this option.**
1133
+ #
1134
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1135
+ #
1136
+ # @example Request syntax with placeholder values
1137
+ #
1138
+ # resp = client.delete_anomaly_detector({
1139
+ # workspace_id: "WorkspaceId", # required
1140
+ # anomaly_detector_id: "AnomalyDetectorId", # required
1141
+ # client_token: "IdempotencyToken",
1142
+ # })
1143
+ #
1144
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DeleteAnomalyDetector AWS API Documentation
1145
+ #
1146
+ # @overload delete_anomaly_detector(params = {})
1147
+ # @param [Hash] params ({})
1148
+ def delete_anomaly_detector(params = {}, options = {})
1149
+ req = build_request(:delete_anomaly_detector, params)
1150
+ req.send_request(options)
1151
+ end
1152
+
971
1153
  # Deletes the rules and alerting logging configuration for a workspace.
972
1154
  #
973
1155
  # <note markdown="1"> These logging configurations are only for rules and alerting logs.
@@ -1262,6 +1444,65 @@ module Aws::PrometheusService
1262
1444
  req.send_request(options)
1263
1445
  end
1264
1446
 
1447
+ # Retrieves detailed information about a specific anomaly detector,
1448
+ # including its status and configuration.
1449
+ #
1450
+ # @option params [required, String] :workspace_id
1451
+ # The identifier of the workspace containing the anomaly detector.
1452
+ #
1453
+ # @option params [required, String] :anomaly_detector_id
1454
+ # The identifier of the anomaly detector to describe.
1455
+ #
1456
+ # @return [Types::DescribeAnomalyDetectorResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1457
+ #
1458
+ # * {Types::DescribeAnomalyDetectorResponse#anomaly_detector #anomaly_detector} => Types::AnomalyDetectorDescription
1459
+ #
1460
+ # @example Request syntax with placeholder values
1461
+ #
1462
+ # resp = client.describe_anomaly_detector({
1463
+ # workspace_id: "WorkspaceId", # required
1464
+ # anomaly_detector_id: "AnomalyDetectorId", # required
1465
+ # })
1466
+ #
1467
+ # @example Response structure
1468
+ #
1469
+ # resp.anomaly_detector.arn #=> String
1470
+ # resp.anomaly_detector.anomaly_detector_id #=> String
1471
+ # resp.anomaly_detector.alias #=> String
1472
+ # resp.anomaly_detector.evaluation_interval_in_seconds #=> Integer
1473
+ # resp.anomaly_detector.missing_data_action.mark_as_anomaly #=> Boolean
1474
+ # resp.anomaly_detector.missing_data_action.skip #=> Boolean
1475
+ # resp.anomaly_detector.configuration.random_cut_forest.query #=> String
1476
+ # resp.anomaly_detector.configuration.random_cut_forest.shingle_size #=> Integer
1477
+ # resp.anomaly_detector.configuration.random_cut_forest.sample_size #=> Integer
1478
+ # resp.anomaly_detector.configuration.random_cut_forest.ignore_near_expected_from_above.amount #=> Float
1479
+ # resp.anomaly_detector.configuration.random_cut_forest.ignore_near_expected_from_above.ratio #=> Float
1480
+ # resp.anomaly_detector.configuration.random_cut_forest.ignore_near_expected_from_below.amount #=> Float
1481
+ # resp.anomaly_detector.configuration.random_cut_forest.ignore_near_expected_from_below.ratio #=> Float
1482
+ # resp.anomaly_detector.labels #=> Hash
1483
+ # resp.anomaly_detector.labels["PrometheusMetricLabelKey"] #=> String
1484
+ # resp.anomaly_detector.status.status_code #=> String, one of "CREATING", "ACTIVE", "UPDATING", "DELETING", "CREATION_FAILED", "UPDATE_FAILED", "DELETION_FAILED"
1485
+ # resp.anomaly_detector.status.status_reason #=> String
1486
+ # resp.anomaly_detector.created_at #=> Time
1487
+ # resp.anomaly_detector.modified_at #=> Time
1488
+ # resp.anomaly_detector.tags #=> Hash
1489
+ # resp.anomaly_detector.tags["TagKey"] #=> String
1490
+ #
1491
+ #
1492
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
1493
+ #
1494
+ # * anomaly_detector_active
1495
+ # * anomaly_detector_deleted
1496
+ #
1497
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DescribeAnomalyDetector AWS API Documentation
1498
+ #
1499
+ # @overload describe_anomaly_detector(params = {})
1500
+ # @param [Hash] params ({})
1501
+ def describe_anomaly_detector(params = {}, options = {})
1502
+ req = build_request(:describe_anomaly_detector, params)
1503
+ req.send_request(options)
1504
+ end
1505
+
1265
1506
  # Returns complete information about the current rules and alerting
1266
1507
  # logging configuration of the workspace.
1267
1508
  #
@@ -1490,6 +1731,10 @@ module Aws::PrometheusService
1490
1731
  # resp.scraper.source.eks_configuration.security_group_ids[0] #=> String
1491
1732
  # resp.scraper.source.eks_configuration.subnet_ids #=> Array
1492
1733
  # resp.scraper.source.eks_configuration.subnet_ids[0] #=> String
1734
+ # resp.scraper.source.vpc_configuration.security_group_ids #=> Array
1735
+ # resp.scraper.source.vpc_configuration.security_group_ids[0] #=> String
1736
+ # resp.scraper.source.vpc_configuration.subnet_ids #=> Array
1737
+ # resp.scraper.source.vpc_configuration.subnet_ids[0] #=> String
1493
1738
  # resp.scraper.destination.amp_configuration.workspace_arn #=> String
1494
1739
  # resp.scraper.role_configuration.source_role_arn #=> String
1495
1740
  # resp.scraper.role_configuration.target_role_arn #=> String
@@ -1665,6 +1910,62 @@ module Aws::PrometheusService
1665
1910
  req.send_request(options)
1666
1911
  end
1667
1912
 
1913
+ # Returns a paginated list of anomaly detectors for a workspace with
1914
+ # optional filtering by alias.
1915
+ #
1916
+ # @option params [required, String] :workspace_id
1917
+ # The identifier of the workspace containing the anomaly detectors to
1918
+ # list.
1919
+ #
1920
+ # @option params [String] :alias
1921
+ # Filters the results to anomaly detectors with the specified alias.
1922
+ #
1923
+ # @option params [Integer] :max_results
1924
+ # The maximum number of results to return in a single call. Valid range
1925
+ # is 1 to 1000.
1926
+ #
1927
+ # @option params [String] :next_token
1928
+ # The pagination token to continue retrieving results.
1929
+ #
1930
+ # @return [Types::ListAnomalyDetectorsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1931
+ #
1932
+ # * {Types::ListAnomalyDetectorsResponse#anomaly_detectors #anomaly_detectors} => Array&lt;Types::AnomalyDetectorSummary&gt;
1933
+ # * {Types::ListAnomalyDetectorsResponse#next_token #next_token} => String
1934
+ #
1935
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1936
+ #
1937
+ # @example Request syntax with placeholder values
1938
+ #
1939
+ # resp = client.list_anomaly_detectors({
1940
+ # workspace_id: "WorkspaceId", # required
1941
+ # alias: "AnomalyDetectorAlias",
1942
+ # max_results: 1,
1943
+ # next_token: "PaginationToken",
1944
+ # })
1945
+ #
1946
+ # @example Response structure
1947
+ #
1948
+ # resp.anomaly_detectors #=> Array
1949
+ # resp.anomaly_detectors[0].arn #=> String
1950
+ # resp.anomaly_detectors[0].anomaly_detector_id #=> String
1951
+ # resp.anomaly_detectors[0].alias #=> String
1952
+ # resp.anomaly_detectors[0].status.status_code #=> String, one of "CREATING", "ACTIVE", "UPDATING", "DELETING", "CREATION_FAILED", "UPDATE_FAILED", "DELETION_FAILED"
1953
+ # resp.anomaly_detectors[0].status.status_reason #=> String
1954
+ # resp.anomaly_detectors[0].created_at #=> Time
1955
+ # resp.anomaly_detectors[0].modified_at #=> Time
1956
+ # resp.anomaly_detectors[0].tags #=> Hash
1957
+ # resp.anomaly_detectors[0].tags["TagKey"] #=> String
1958
+ # resp.next_token #=> String
1959
+ #
1960
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ListAnomalyDetectors AWS API Documentation
1961
+ #
1962
+ # @overload list_anomaly_detectors(params = {})
1963
+ # @param [Hash] params ({})
1964
+ def list_anomaly_detectors(params = {}, options = {})
1965
+ req = build_request(:list_anomaly_detectors, params)
1966
+ req.send_request(options)
1967
+ end
1968
+
1668
1969
  # Returns a list of rule groups namespaces in a workspace.
1669
1970
  #
1670
1971
  # @option params [required, String] :workspace_id
@@ -1920,6 +2221,10 @@ module Aws::PrometheusService
1920
2221
  # resp.scrapers[0].source.eks_configuration.security_group_ids[0] #=> String
1921
2222
  # resp.scrapers[0].source.eks_configuration.subnet_ids #=> Array
1922
2223
  # resp.scrapers[0].source.eks_configuration.subnet_ids[0] #=> String
2224
+ # resp.scrapers[0].source.vpc_configuration.security_group_ids #=> Array
2225
+ # resp.scrapers[0].source.vpc_configuration.security_group_ids[0] #=> String
2226
+ # resp.scrapers[0].source.vpc_configuration.subnet_ids #=> Array
2227
+ # resp.scrapers[0].source.vpc_configuration.subnet_ids[0] #=> String
1923
2228
  # resp.scrapers[0].destination.amp_configuration.workspace_arn #=> String
1924
2229
  # resp.scrapers[0].role_configuration.source_role_arn #=> String
1925
2230
  # resp.scrapers[0].role_configuration.target_role_arn #=> String
@@ -2080,6 +2385,100 @@ module Aws::PrometheusService
2080
2385
  req.send_request(options)
2081
2386
  end
2082
2387
 
2388
+ # When you call `PutAnomalyDetector`, the operation creates a new
2389
+ # anomaly detector if one doesn't exist, or updates an existing one.
2390
+ # Each call to this operation triggers a complete retraining of the
2391
+ # detector, which includes querying the minimum required samples and
2392
+ # backfilling the detector with historical data. This process occurs
2393
+ # regardless of whether you're making a minor change like updating the
2394
+ # evaluation interval or making more substantial modifications. The
2395
+ # operation serves as the single method for creating, updating, and
2396
+ # retraining anomaly detectors.
2397
+ #
2398
+ # @option params [required, String] :workspace_id
2399
+ # The identifier of the workspace containing the anomaly detector to
2400
+ # update.
2401
+ #
2402
+ # @option params [required, String] :anomaly_detector_id
2403
+ # The identifier of the anomaly detector to update.
2404
+ #
2405
+ # @option params [Integer] :evaluation_interval_in_seconds
2406
+ # The frequency, in seconds, at which the anomaly detector evaluates
2407
+ # metrics.
2408
+ #
2409
+ # @option params [Types::AnomalyDetectorMissingDataAction] :missing_data_action
2410
+ # Specifies the action to take when data is missing during evaluation.
2411
+ #
2412
+ # @option params [required, Types::AnomalyDetectorConfiguration] :configuration
2413
+ # The algorithm configuration for the anomaly detector.
2414
+ #
2415
+ # @option params [Hash<String,String>] :labels
2416
+ # The Amazon Managed Service for Prometheus metric labels to associate
2417
+ # with the anomaly detector.
2418
+ #
2419
+ # @option params [String] :client_token
2420
+ # A unique, case-sensitive identifier that you provide to ensure the
2421
+ # idempotency of the request.
2422
+ #
2423
+ # **A suitable default value is auto-generated.** You should normally
2424
+ # not need to pass this option.**
2425
+ #
2426
+ # @return [Types::PutAnomalyDetectorResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2427
+ #
2428
+ # * {Types::PutAnomalyDetectorResponse#anomaly_detector_id #anomaly_detector_id} => String
2429
+ # * {Types::PutAnomalyDetectorResponse#arn #arn} => String
2430
+ # * {Types::PutAnomalyDetectorResponse#status #status} => Types::AnomalyDetectorStatus
2431
+ # * {Types::PutAnomalyDetectorResponse#tags #tags} => Hash&lt;String,String&gt;
2432
+ #
2433
+ # @example Request syntax with placeholder values
2434
+ #
2435
+ # resp = client.put_anomaly_detector({
2436
+ # workspace_id: "WorkspaceId", # required
2437
+ # anomaly_detector_id: "AnomalyDetectorId", # required
2438
+ # evaluation_interval_in_seconds: 1,
2439
+ # missing_data_action: {
2440
+ # mark_as_anomaly: false,
2441
+ # skip: false,
2442
+ # },
2443
+ # configuration: { # required
2444
+ # random_cut_forest: {
2445
+ # query: "RandomCutForestQuery", # required
2446
+ # shingle_size: 1,
2447
+ # sample_size: 1,
2448
+ # ignore_near_expected_from_above: {
2449
+ # amount: 1.0,
2450
+ # ratio: 1.0,
2451
+ # },
2452
+ # ignore_near_expected_from_below: {
2453
+ # amount: 1.0,
2454
+ # ratio: 1.0,
2455
+ # },
2456
+ # },
2457
+ # },
2458
+ # labels: {
2459
+ # "PrometheusMetricLabelKey" => "PrometheusMetricLabelValue",
2460
+ # },
2461
+ # client_token: "IdempotencyToken",
2462
+ # })
2463
+ #
2464
+ # @example Response structure
2465
+ #
2466
+ # resp.anomaly_detector_id #=> String
2467
+ # resp.arn #=> String
2468
+ # resp.status.status_code #=> String, one of "CREATING", "ACTIVE", "UPDATING", "DELETING", "CREATION_FAILED", "UPDATE_FAILED", "DELETION_FAILED"
2469
+ # resp.status.status_reason #=> String
2470
+ # resp.tags #=> Hash
2471
+ # resp.tags["TagKey"] #=> String
2472
+ #
2473
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/PutAnomalyDetector AWS API Documentation
2474
+ #
2475
+ # @overload put_anomaly_detector(params = {})
2476
+ # @param [Hash] params ({})
2477
+ def put_anomaly_detector(params = {}, options = {})
2478
+ req = build_request(:put_anomaly_detector, params)
2479
+ req.send_request(options)
2480
+ end
2481
+
2083
2482
  # Creates or updates a resource-based policy for an Amazon Managed
2084
2483
  # Service for Prometheus workspace. Use resource-based policies to grant
2085
2484
  # permissions to other AWS accounts or services to access your
@@ -2165,6 +2564,9 @@ module Aws::PrometheusService
2165
2564
  # groups namespace is associated with exactly one rules file. A
2166
2565
  # workspace can have multiple rule groups namespaces.
2167
2566
  #
2567
+ # The combined length of a rule group namespace and a rule group name
2568
+ # cannot exceed 721 UTF-8 bytes.
2569
+ #
2168
2570
  # Use this operation only to update existing rule groups namespaces. To
2169
2571
  # create a new rule groups namespace, use `CreateRuleGroupsNamespace`.
2170
2572
  #
@@ -2681,7 +3083,7 @@ module Aws::PrometheusService
2681
3083
  tracer: tracer
2682
3084
  )
2683
3085
  context[:gem_name] = 'aws-sdk-prometheusservice'
2684
- context[:gem_version] = '1.62.0'
3086
+ context[:gem_version] = '1.64.0'
2685
3087
  Seahorse::Client::Request.new(handlers, context)
2686
3088
  end
2687
3089
 
@@ -2747,12 +3149,14 @@ module Aws::PrometheusService
2747
3149
  # The following table lists the valid waiter names, the operations they call,
2748
3150
  # and the default `:delay` and `:max_attempts` values.
2749
3151
  #
2750
- # | waiter_name | params | :delay | :max_attempts |
2751
- # | ----------------- | --------------------------- | -------- | ------------- |
2752
- # | scraper_active | {Client#describe_scraper} | 2 | 60 |
2753
- # | scraper_deleted | {Client#describe_scraper} | 2 | 60 |
2754
- # | workspace_active | {Client#describe_workspace} | 2 | 60 |
2755
- # | workspace_deleted | {Client#describe_workspace} | 2 | 60 |
3152
+ # | waiter_name | params | :delay | :max_attempts |
3153
+ # | ------------------------ | ---------------------------------- | -------- | ------------- |
3154
+ # | anomaly_detector_active | {Client#describe_anomaly_detector} | 2 | 60 |
3155
+ # | anomaly_detector_deleted | {Client#describe_anomaly_detector} | 2 | 60 |
3156
+ # | scraper_active | {Client#describe_scraper} | 2 | 60 |
3157
+ # | scraper_deleted | {Client#describe_scraper} | 2 | 60 |
3158
+ # | workspace_active | {Client#describe_workspace} | 2 | 60 |
3159
+ # | workspace_deleted | {Client#describe_workspace} | 2 | 60 |
2756
3160
  #
2757
3161
  # @raise [Errors::FailureStateError] Raised when the waiter terminates
2758
3162
  # because the waiter has entered a state that it will not transition
@@ -2803,6 +3207,8 @@ module Aws::PrometheusService
2803
3207
 
2804
3208
  def waiters
2805
3209
  {
3210
+ anomaly_detector_active: Waiters::AnomalyDetectorActive,
3211
+ anomaly_detector_deleted: Waiters::AnomalyDetectorDeleted,
2806
3212
  scraper_active: Waiters::ScraperActive,
2807
3213
  scraper_deleted: Waiters::ScraperDeleted,
2808
3214
  workspace_active: Waiters::WorkspaceActive,