@@ -120,9 +120,11 @@ namespace PrometheusService
120
120
}
121
121
122
122
/* *
123
- * <p>The <code>CreateLoggingConfiguration</code> operation creates a logging
124
- * configuration for the workspace. Use this operation to set the CloudWatch log
125
- * group to which the logs will be published to.</p><p><h3>See Also:</h3> <a
123
+ * <p>The <code>CreateLoggingConfiguration</code> operation creates rules and
124
+ * alerting logging configuration for the workspace. Use this operation to set the
125
+ * CloudWatch log group to which the logs will be published to.</p> <p>These
126
+ * logging configurations are only for rules and alerting logs.</p>
127
+ * <p><h3>See Also:</h3> <a
126
128
* href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/CreateLoggingConfiguration">AWS
127
129
* API Reference</a></p>
128
130
*/
@@ -146,6 +148,33 @@ namespace PrometheusService
146
148
return SubmitAsync (&PrometheusServiceClient::CreateLoggingConfiguration, request, handler, context);
147
149
}
148
150
151
+ /* *
152
+ * <p>Creates a query logging configuration for the specified workspace. This
153
+ * operation enables logging of queries that exceed the specified QSP
154
+ * threshold.</p><p><h3>See Also:</h3> <a
155
+ * href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/CreateQueryLoggingConfiguration">AWS
156
+ * API Reference</a></p>
157
+ */
158
+ virtual Model::CreateQueryLoggingConfigurationOutcome CreateQueryLoggingConfiguration (const Model::CreateQueryLoggingConfigurationRequest& request) const ;
159
+
160
+ /* *
161
+ * A Callable wrapper for CreateQueryLoggingConfiguration that returns a future to the operation so that it can be executed in parallel to other requests.
162
+ */
163
+ template <typename CreateQueryLoggingConfigurationRequestT = Model::CreateQueryLoggingConfigurationRequest>
164
+ Model::CreateQueryLoggingConfigurationOutcomeCallable CreateQueryLoggingConfigurationCallable (const CreateQueryLoggingConfigurationRequestT& request) const
165
+ {
166
+ return SubmitCallable (&PrometheusServiceClient::CreateQueryLoggingConfiguration, request);
167
+ }
168
+
169
+ /* *
170
+ * An Async wrapper for CreateQueryLoggingConfiguration that queues the request into a thread executor and triggers associated callback when operation has finished.
171
+ */
172
+ template <typename CreateQueryLoggingConfigurationRequestT = Model::CreateQueryLoggingConfigurationRequest>
173
+ void CreateQueryLoggingConfigurationAsync (const CreateQueryLoggingConfigurationRequestT& request, const CreateQueryLoggingConfigurationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr ) const
174
+ {
175
+ return SubmitAsync (&PrometheusServiceClient::CreateQueryLoggingConfiguration, request, handler, context);
176
+ }
177
+
149
178
/* *
150
179
* <p>The <code>CreateRuleGroupsNamespace</code> operation creates a rule groups
151
180
* namespace within a workspace. A rule groups namespace is associated with exactly
@@ -189,9 +218,13 @@ namespace PrometheusService
189
218
* href="https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html#AMP-collector-eks-setup">Configuring
190
219
* your Amazon EKS cluster</a> in the <i>Amazon Managed Service for Prometheus User
191
220
* Guide</i>.</p> <p>The <code>scrapeConfiguration</code> parameter contains the
192
- * base-64 encoded YAML configuration for the scraper.</p> <p>For more
193
- * information about collectors, including what metrics are collected, and how to
194
- * configure the scraper, see <a
221
+ * base-64 encoded YAML configuration for the scraper.</p> <p>When creating a
222
+ * scraper, the service creates a <code>Network Interface</code> in each
223
+ * <b>Availability Zone</b> that are passed into <code>CreateScraper</code> through
224
+ * subnets. These network interfaces are used to connect to the Amazon EKS cluster
225
+ * within the VPC for scraping metrics.</p> <p>For more information about
226
+ * collectors, including what metrics are collected, and how to configure the
227
+ * scraper, see <a
195
228
* href="https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html">Using
196
229
* an Amazon Web Services managed collector</a> in the <i>Amazon Managed Service
197
230
* for Prometheus User Guide</i>.</p> <p><h3>See Also:</h3> <a
@@ -272,8 +305,9 @@ namespace PrometheusService
272
305
}
273
306
274
307
/* *
275
- * <p>Deletes the logging configuration for a workspace.</p><p><h3>See Also:</h3>
276
- * <a
308
+ * <p>Deletes the rules and alerting logging configuration for a workspace.</p>
309
+ * <p>These logging configurations are only for rules and alerting logs.</p>
310
+ * <p><h3>See Also:</h3> <a
277
311
* href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DeleteLoggingConfiguration">AWS
278
312
* API Reference</a></p>
279
313
*/
@@ -297,6 +331,32 @@ namespace PrometheusService
297
331
return SubmitAsync (&PrometheusServiceClient::DeleteLoggingConfiguration, request, handler, context);
298
332
}
299
333
334
+ /* *
335
+ * <p>Deletes the query logging configuration for the specified
336
+ * workspace.</p><p><h3>See Also:</h3> <a
337
+ * href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DeleteQueryLoggingConfiguration">AWS
338
+ * API Reference</a></p>
339
+ */
340
+ virtual Model::DeleteQueryLoggingConfigurationOutcome DeleteQueryLoggingConfiguration (const Model::DeleteQueryLoggingConfigurationRequest& request) const ;
341
+
342
+ /* *
343
+ * A Callable wrapper for DeleteQueryLoggingConfiguration that returns a future to the operation so that it can be executed in parallel to other requests.
344
+ */
345
+ template <typename DeleteQueryLoggingConfigurationRequestT = Model::DeleteQueryLoggingConfigurationRequest>
346
+ Model::DeleteQueryLoggingConfigurationOutcomeCallable DeleteQueryLoggingConfigurationCallable (const DeleteQueryLoggingConfigurationRequestT& request) const
347
+ {
348
+ return SubmitCallable (&PrometheusServiceClient::DeleteQueryLoggingConfiguration, request);
349
+ }
350
+
351
+ /* *
352
+ * An Async wrapper for DeleteQueryLoggingConfiguration that queues the request into a thread executor and triggers associated callback when operation has finished.
353
+ */
354
+ template <typename DeleteQueryLoggingConfigurationRequestT = Model::DeleteQueryLoggingConfigurationRequest>
355
+ void DeleteQueryLoggingConfigurationAsync (const DeleteQueryLoggingConfigurationRequestT& request, const DeleteQueryLoggingConfigurationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr ) const
356
+ {
357
+ return SubmitAsync (&PrometheusServiceClient::DeleteQueryLoggingConfiguration, request, handler, context);
358
+ }
359
+
300
360
/* *
301
361
* <p>Deletes one rule groups namespace and its associated rule groups
302
362
* definition.</p><p><h3>See Also:</h3> <a
@@ -403,8 +463,9 @@ namespace PrometheusService
403
463
}
404
464
405
465
/* *
406
- * <p>Returns complete information about the current logging configuration of the
407
- * workspace.</p><p><h3>See Also:</h3> <a
466
+ * <p>Returns complete information about the current rules and alerting logging
467
+ * configuration of the workspace.</p> <p>These logging configurations are
468
+ * only for rules and alerting logs.</p> <p><h3>See Also:</h3> <a
408
469
* href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DescribeLoggingConfiguration">AWS
409
470
* API Reference</a></p>
410
471
*/
@@ -428,6 +489,32 @@ namespace PrometheusService
428
489
return SubmitAsync (&PrometheusServiceClient::DescribeLoggingConfiguration, request, handler, context);
429
490
}
430
491
492
+ /* *
493
+ * <p>Retrieves the details of the query logging configuration for the specified
494
+ * workspace.</p><p><h3>See Also:</h3> <a
495
+ * href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DescribeQueryLoggingConfiguration">AWS
496
+ * API Reference</a></p>
497
+ */
498
+ virtual Model::DescribeQueryLoggingConfigurationOutcome DescribeQueryLoggingConfiguration (const Model::DescribeQueryLoggingConfigurationRequest& request) const ;
499
+
500
+ /* *
501
+ * A Callable wrapper for DescribeQueryLoggingConfiguration that returns a future to the operation so that it can be executed in parallel to other requests.
502
+ */
503
+ template <typename DescribeQueryLoggingConfigurationRequestT = Model::DescribeQueryLoggingConfigurationRequest>
504
+ Model::DescribeQueryLoggingConfigurationOutcomeCallable DescribeQueryLoggingConfigurationCallable (const DescribeQueryLoggingConfigurationRequestT& request) const
505
+ {
506
+ return SubmitCallable (&PrometheusServiceClient::DescribeQueryLoggingConfiguration, request);
507
+ }
508
+
509
+ /* *
510
+ * An Async wrapper for DescribeQueryLoggingConfiguration that queues the request into a thread executor and triggers associated callback when operation has finished.
511
+ */
512
+ template <typename DescribeQueryLoggingConfigurationRequestT = Model::DescribeQueryLoggingConfigurationRequest>
513
+ void DescribeQueryLoggingConfigurationAsync (const DescribeQueryLoggingConfigurationRequestT& request, const DescribeQueryLoggingConfigurationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr ) const
514
+ {
515
+ return SubmitAsync (&PrometheusServiceClient::DescribeQueryLoggingConfiguration, request, handler, context);
516
+ }
517
+
431
518
/* *
432
519
* <p>Returns complete information about one rule groups namespace. To retrieve a
433
520
* list of rule groups namespaces, use
@@ -787,8 +874,9 @@ namespace PrometheusService
787
874
}
788
875
789
876
/* *
790
- * <p>Updates the log group ARN or the workspace ID of the current logging
791
- * configuration.</p><p><h3>See Also:</h3> <a
877
+ * <p>Updates the log group ARN or the workspace ID of the current rules and
878
+ * alerting logging configuration.</p> <p>These logging configurations are
879
+ * only for rules and alerting logs.</p> <p><h3>See Also:</h3> <a
792
880
* href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/UpdateLoggingConfiguration">AWS
793
881
* API Reference</a></p>
794
882
*/
@@ -812,6 +900,32 @@ namespace PrometheusService
812
900
return SubmitAsync (&PrometheusServiceClient::UpdateLoggingConfiguration, request, handler, context);
813
901
}
814
902
903
+ /* *
904
+ * <p>Updates the query logging configuration for the specified
905
+ * workspace.</p><p><h3>See Also:</h3> <a
906
+ * href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/UpdateQueryLoggingConfiguration">AWS
907
+ * API Reference</a></p>
908
+ */
909
+ virtual Model::UpdateQueryLoggingConfigurationOutcome UpdateQueryLoggingConfiguration (const Model::UpdateQueryLoggingConfigurationRequest& request) const ;
910
+
911
+ /* *
912
+ * A Callable wrapper for UpdateQueryLoggingConfiguration that returns a future to the operation so that it can be executed in parallel to other requests.
913
+ */
914
+ template <typename UpdateQueryLoggingConfigurationRequestT = Model::UpdateQueryLoggingConfigurationRequest>
915
+ Model::UpdateQueryLoggingConfigurationOutcomeCallable UpdateQueryLoggingConfigurationCallable (const UpdateQueryLoggingConfigurationRequestT& request) const
916
+ {
917
+ return SubmitCallable (&PrometheusServiceClient::UpdateQueryLoggingConfiguration, request);
918
+ }
919
+
920
+ /* *
921
+ * An Async wrapper for UpdateQueryLoggingConfiguration that queues the request into a thread executor and triggers associated callback when operation has finished.
922
+ */
923
+ template <typename UpdateQueryLoggingConfigurationRequestT = Model::UpdateQueryLoggingConfigurationRequest>
924
+ void UpdateQueryLoggingConfigurationAsync (const UpdateQueryLoggingConfigurationRequestT& request, const UpdateQueryLoggingConfigurationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr ) const
925
+ {
926
+ return SubmitAsync (&PrometheusServiceClient::UpdateQueryLoggingConfiguration, request, handler, context);
927
+ }
928
+
815
929
/* *
816
930
* <p>Updates an existing scraper.</p> <p>You can't use this function to update the
817
931
* source from which the scraper is collecting metrics. To change the source,
0 commit comments