@@ -122,6 +122,35 @@ class AWS_PROMETHEUSSERVICE_API PrometheusServiceClient : public Aws::Client::AW
122122 return SubmitAsync (&PrometheusServiceClient::CreateAlertManagerDefinition, request, handler, context);
123123 }
124124
125+ /* *
126+ * <p>Creates an anomaly detector within a workspace using the Random Cut Forest
127+ * algorithm for time-series analysis. The anomaly detector analyzes Amazon Managed
128+ * Service for Prometheus metrics to identify unusual patterns and
129+ * behaviors.</p><p><h3>See Also:</h3> <a
130+ * href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/CreateAnomalyDetector">AWS
131+ * API Reference</a></p>
132+ */
133+ virtual Model::CreateAnomalyDetectorOutcome CreateAnomalyDetector (const Model::CreateAnomalyDetectorRequest& request) const ;
134+
135+ /* *
136+ * A Callable wrapper for CreateAnomalyDetector that returns a future to the operation so that it can be executed in parallel to other
137+ * requests.
138+ */
139+ template <typename CreateAnomalyDetectorRequestT = Model::CreateAnomalyDetectorRequest>
140+ Model::CreateAnomalyDetectorOutcomeCallable CreateAnomalyDetectorCallable (const CreateAnomalyDetectorRequestT& request) const {
141+ return SubmitCallable (&PrometheusServiceClient::CreateAnomalyDetector, request);
142+ }
143+
144+ /* *
145+ * An Async wrapper for CreateAnomalyDetector that queues the request into a thread executor and triggers associated callback when
146+ * operation has finished.
147+ */
148+ template <typename CreateAnomalyDetectorRequestT = Model::CreateAnomalyDetectorRequest>
149+ void CreateAnomalyDetectorAsync (const CreateAnomalyDetectorRequestT& request, const CreateAnomalyDetectorResponseReceivedHandler& handler,
150+ const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr ) const {
151+ return SubmitAsync (&PrometheusServiceClient::CreateAnomalyDetector, request, handler, context);
152+ }
153+
125154 /* *
126155 * <p>The <code>CreateLoggingConfiguration</code> operation creates rules and
127156 * alerting logging configuration for the workspace. Use this operation to set the
@@ -323,6 +352,33 @@ class AWS_PROMETHEUSSERVICE_API PrometheusServiceClient : public Aws::Client::AW
323352 return SubmitAsync (&PrometheusServiceClient::DeleteAlertManagerDefinition, request, handler, context);
324353 }
325354
355+ /* *
356+ * <p>Removes an anomaly detector from a workspace. This operation is
357+ * idempotent.</p><p><h3>See Also:</h3> <a
358+ * href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DeleteAnomalyDetector">AWS
359+ * API Reference</a></p>
360+ */
361+ virtual Model::DeleteAnomalyDetectorOutcome DeleteAnomalyDetector (const Model::DeleteAnomalyDetectorRequest& request) const ;
362+
363+ /* *
364+ * A Callable wrapper for DeleteAnomalyDetector that returns a future to the operation so that it can be executed in parallel to other
365+ * requests.
366+ */
367+ template <typename DeleteAnomalyDetectorRequestT = Model::DeleteAnomalyDetectorRequest>
368+ Model::DeleteAnomalyDetectorOutcomeCallable DeleteAnomalyDetectorCallable (const DeleteAnomalyDetectorRequestT& request) const {
369+ return SubmitCallable (&PrometheusServiceClient::DeleteAnomalyDetector, request);
370+ }
371+
372+ /* *
373+ * An Async wrapper for DeleteAnomalyDetector that queues the request into a thread executor and triggers associated callback when
374+ * operation has finished.
375+ */
376+ template <typename DeleteAnomalyDetectorRequestT = Model::DeleteAnomalyDetectorRequest>
377+ void DeleteAnomalyDetectorAsync (const DeleteAnomalyDetectorRequestT& request, const DeleteAnomalyDetectorResponseReceivedHandler& handler,
378+ const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr ) const {
379+ return SubmitAsync (&PrometheusServiceClient::DeleteAnomalyDetector, request, handler, context);
380+ }
381+
326382 /* *
327383 * <p>Deletes the rules and alerting logging configuration for a workspace.</p>
328384 * <p>These logging configurations are only for rules and alerting logs.</p>
@@ -553,6 +609,34 @@ class AWS_PROMETHEUSSERVICE_API PrometheusServiceClient : public Aws::Client::AW
553609 return SubmitAsync (&PrometheusServiceClient::DescribeAlertManagerDefinition, request, handler, context);
554610 }
555611
612+ /* *
613+ * <p>Retrieves detailed information about a specific anomaly detector, including
614+ * its status and configuration.</p><p><h3>See Also:</h3> <a
615+ * href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DescribeAnomalyDetector">AWS
616+ * API Reference</a></p>
617+ */
618+ virtual Model::DescribeAnomalyDetectorOutcome DescribeAnomalyDetector (const Model::DescribeAnomalyDetectorRequest& request) const ;
619+
620+ /* *
621+ * A Callable wrapper for DescribeAnomalyDetector that returns a future to the operation so that it can be executed in parallel to other
622+ * requests.
623+ */
624+ template <typename DescribeAnomalyDetectorRequestT = Model::DescribeAnomalyDetectorRequest>
625+ Model::DescribeAnomalyDetectorOutcomeCallable DescribeAnomalyDetectorCallable (const DescribeAnomalyDetectorRequestT& request) const {
626+ return SubmitCallable (&PrometheusServiceClient::DescribeAnomalyDetector, request);
627+ }
628+
629+ /* *
630+ * An Async wrapper for DescribeAnomalyDetector that queues the request into a thread executor and triggers associated callback when
631+ * operation has finished.
632+ */
633+ template <typename DescribeAnomalyDetectorRequestT = Model::DescribeAnomalyDetectorRequest>
634+ void DescribeAnomalyDetectorAsync (const DescribeAnomalyDetectorRequestT& request,
635+ const DescribeAnomalyDetectorResponseReceivedHandler& handler,
636+ const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr ) const {
637+ return SubmitAsync (&PrometheusServiceClient::DescribeAnomalyDetector, request, handler, context);
638+ }
639+
556640 /* *
557641 * <p>Returns complete information about the current rules and alerting logging
558642 * configuration of the workspace.</p> <p>These logging configurations are
@@ -818,6 +902,33 @@ class AWS_PROMETHEUSSERVICE_API PrometheusServiceClient : public Aws::Client::AW
818902 return SubmitAsync (&PrometheusServiceClient::GetDefaultScraperConfiguration, request, handler, context);
819903 }
820904
905+ /* *
906+ * <p>Returns a paginated list of anomaly detectors for a workspace with optional
907+ * filtering by alias.</p><p><h3>See Also:</h3> <a
908+ * href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ListAnomalyDetectors">AWS
909+ * API Reference</a></p>
910+ */
911+ virtual Model::ListAnomalyDetectorsOutcome ListAnomalyDetectors (const Model::ListAnomalyDetectorsRequest& request) const ;
912+
913+ /* *
914+ * A Callable wrapper for ListAnomalyDetectors that returns a future to the operation so that it can be executed in parallel to other
915+ * requests.
916+ */
917+ template <typename ListAnomalyDetectorsRequestT = Model::ListAnomalyDetectorsRequest>
918+ Model::ListAnomalyDetectorsOutcomeCallable ListAnomalyDetectorsCallable (const ListAnomalyDetectorsRequestT& request) const {
919+ return SubmitCallable (&PrometheusServiceClient::ListAnomalyDetectors, request);
920+ }
921+
922+ /* *
923+ * An Async wrapper for ListAnomalyDetectors that queues the request into a thread executor and triggers associated callback when
924+ * operation has finished.
925+ */
926+ template <typename ListAnomalyDetectorsRequestT = Model::ListAnomalyDetectorsRequest>
927+ void ListAnomalyDetectorsAsync (const ListAnomalyDetectorsRequestT& request, const ListAnomalyDetectorsResponseReceivedHandler& handler,
928+ const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr ) const {
929+ return SubmitAsync (&PrometheusServiceClient::ListAnomalyDetectors, request, handler, context);
930+ }
931+
821932 /* *
822933 * <p>Returns a list of rule groups namespaces in a workspace.</p><p><h3>See
823934 * Also:</h3> <a
@@ -962,6 +1073,39 @@ class AWS_PROMETHEUSSERVICE_API PrometheusServiceClient : public Aws::Client::AW
9621073 return SubmitAsync (&PrometheusServiceClient::PutAlertManagerDefinition, request, handler, context);
9631074 }
9641075
1076+ /* *
1077+ * <p>When you call <code>PutAnomalyDetector</code>, the operation creates a new
1078+ * anomaly detector if one doesn't exist, or updates an existing one. Each call to
1079+ * this operation triggers a complete retraining of the detector, which includes
1080+ * querying the minimum required samples and backfilling the detector with
1081+ * historical data. This process occurs regardless of whether you're making a minor
1082+ * change like updating the evaluation interval or making more substantial
1083+ * modifications. The operation serves as the single method for creating, updating,
1084+ * and retraining anomaly detectors.</p><p><h3>See Also:</h3> <a
1085+ * href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/PutAnomalyDetector">AWS
1086+ * API Reference</a></p>
1087+ */
1088+ virtual Model::PutAnomalyDetectorOutcome PutAnomalyDetector (const Model::PutAnomalyDetectorRequest& request) const ;
1089+
1090+ /* *
1091+ * A Callable wrapper for PutAnomalyDetector that returns a future to the operation so that it can be executed in parallel to other
1092+ * requests.
1093+ */
1094+ template <typename PutAnomalyDetectorRequestT = Model::PutAnomalyDetectorRequest>
1095+ Model::PutAnomalyDetectorOutcomeCallable PutAnomalyDetectorCallable (const PutAnomalyDetectorRequestT& request) const {
1096+ return SubmitCallable (&PrometheusServiceClient::PutAnomalyDetector, request);
1097+ }
1098+
1099+ /* *
1100+ * An Async wrapper for PutAnomalyDetector that queues the request into a thread executor and triggers associated callback when operation
1101+ * has finished.
1102+ */
1103+ template <typename PutAnomalyDetectorRequestT = Model::PutAnomalyDetectorRequest>
1104+ void PutAnomalyDetectorAsync (const PutAnomalyDetectorRequestT& request, const PutAnomalyDetectorResponseReceivedHandler& handler,
1105+ const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr ) const {
1106+ return SubmitAsync (&PrometheusServiceClient::PutAnomalyDetector, request, handler, context);
1107+ }
1108+
9651109 /* *
9661110 * <p>Creates or updates a resource-based policy for an Amazon Managed Service for
9671111 * Prometheus workspace. Use resource-based policies to grant permissions to other
0 commit comments