1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - | pub use crate::operation::put_metric_filter::_put_metric_filter_output::PutMetricFilterOutputBuilder;
|
3 - |
|
4 2 | pub use crate::operation::put_metric_filter::_put_metric_filter_input::PutMetricFilterInputBuilder;
|
5 3 |
|
4 + | pub use crate::operation::put_metric_filter::_put_metric_filter_output::PutMetricFilterOutputBuilder;
|
5 + |
|
6 6 | impl crate::operation::put_metric_filter::builders::PutMetricFilterInputBuilder {
|
7 7 | /// Sends a request with this input using the given client.
|
8 8 | pub async fn send_with(
|
9 9 | self,
|
10 10 | client: &crate::Client,
|
11 11 | ) -> ::std::result::Result<
|
12 12 | crate::operation::put_metric_filter::PutMetricFilterOutput,
|
13 13 | ::aws_smithy_runtime_api::client::result::SdkError<
|
14 14 | crate::operation::put_metric_filter::PutMetricFilterError,
|
15 15 | ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
16 16 | >,
|
17 17 | > {
|
18 18 | let mut fluent_builder = client.put_metric_filter();
|
19 19 | fluent_builder.inner = self;
|
20 20 | fluent_builder.send().await
|
21 21 | }
|
22 22 | }
|
23 23 | /// Fluent builder constructing a request to `PutMetricFilter`.
|
24 24 | ///
|
25 25 | /// <p>Creates or updates a metric filter and associates it with the specified log group. With metric filters, you can configure rules to extract metric data from log events ingested through <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html">PutLogEvents</a>.</p>
|
26 26 | /// <p>The maximum number of metric filters that can be associated with a log group is 100.</p>
|
27 27 | /// <p>Using regular expressions in filter patterns is supported. For these filters, there is a quota of two regular expression patterns within a single filter pattern. There is also a quota of five regular expression patterns per log group. For more information about using regular expressions in filter patterns, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html"> Filter pattern syntax for metric filters, subscription filters, filter log events, and Live Tail</a>.</p>
|
28 28 | /// <p>When you create a metric filter, you can also optionally assign a unit and dimensions to the metric that is created.</p><important>
|
29 29 | /// <p>Metrics extracted from log events are charged as custom metrics. To prevent unexpected high charges, do not specify high-cardinality fields such as <code>IPAddress</code> or <code>requestID</code> as dimensions. Each different value found for a dimension is treated as a separate metric and accrues charges as a separate custom metric.</p>
|
30 30 | /// <p>CloudWatch Logs might disable a metric filter if it generates 1,000 different name/value pairs for your specified dimensions within one hour.</p>
|
31 31 | /// <p>You can also set up a billing alarm to alert you if your charges are higher than expected. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/monitor_estimated_charges_with_cloudwatch.html"> Creating a Billing Alarm to Monitor Your Estimated Amazon Web Services Charges</a>.</p>
|
32 32 | /// </important>
|
33 33 | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
34 34 | pub struct PutMetricFilterFluentBuilder {
|
35 35 | handle: ::std::sync::Arc<crate::client::Handle>,
|