@Stability(value=Stable) public static final class CfnMetricFilter.MetricTransformationProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnMetricFilter.MetricTransformationProperty>
CfnMetricFilter.MetricTransformationProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnMetricFilter.MetricTransformationProperty |
build()
Builds the configured instance.
|
CfnMetricFilter.MetricTransformationProperty.Builder |
defaultValue(Number defaultValue)
Sets the value of
CfnMetricFilter.MetricTransformationProperty.getDefaultValue() |
CfnMetricFilter.MetricTransformationProperty.Builder |
metricName(String metricName)
Sets the value of
CfnMetricFilter.MetricTransformationProperty.getMetricName() |
CfnMetricFilter.MetricTransformationProperty.Builder |
metricNamespace(String metricNamespace)
Sets the value of
CfnMetricFilter.MetricTransformationProperty.getMetricNamespace() |
CfnMetricFilter.MetricTransformationProperty.Builder |
metricValue(String metricValue)
Sets the value of
CfnMetricFilter.MetricTransformationProperty.getMetricValue() |
@Stability(value=Stable) public CfnMetricFilter.MetricTransformationProperty.Builder metricName(String metricName)
CfnMetricFilter.MetricTransformationProperty.getMetricName()metricName - The name of the CloudWatch metric. This parameter is required.this@Stability(value=Stable) public CfnMetricFilter.MetricTransformationProperty.Builder metricNamespace(String metricNamespace)
CfnMetricFilter.MetricTransformationProperty.getMetricNamespace()metricNamespace - A custom namespace to contain your metric in CloudWatch. This parameter is required.
Use namespaces to group together metrics that are similar. For more information, see Namespaces .this@Stability(value=Stable) public CfnMetricFilter.MetricTransformationProperty.Builder metricValue(String metricValue)
CfnMetricFilter.MetricTransformationProperty.getMetricValue()metricValue - The value that is published to the CloudWatch metric. This parameter is required.
For example, if you're counting the occurrences of a particular term like Error , specify 1 for the metric value. If you're counting the number of bytes transferred, reference the value that is in the log event by using $ followed by the name of the field that you specified in the filter pattern, such as $.size .this@Stability(value=Stable) public CfnMetricFilter.MetricTransformationProperty.Builder defaultValue(Number defaultValue)
CfnMetricFilter.MetricTransformationProperty.getDefaultValue()defaultValue - (Optional) The value to emit when a filter pattern does not match a log event.
This value can be null.this@Stability(value=Stable) public CfnMetricFilter.MetricTransformationProperty build()
build in interface software.amazon.jsii.Builder<CfnMetricFilter.MetricTransformationProperty>CfnMetricFilter.MetricTransformationPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.