@Stability(value=Experimental) public static final class MetricFilterOptions.Builder extends Object implements software.amazon.jsii.Builder<MetricFilterOptions>
MetricFilterOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
MetricFilterOptions |
build()
Builds the configured instance.
|
MetricFilterOptions.Builder |
defaultValue(Number defaultValue)
Sets the value of
MetricFilterOptions.getDefaultValue() |
MetricFilterOptions.Builder |
filterPattern(IFilterPattern filterPattern)
Sets the value of
MetricFilterOptions.getFilterPattern() |
MetricFilterOptions.Builder |
metricName(String metricName)
Sets the value of
MetricFilterOptions.getMetricName() |
MetricFilterOptions.Builder |
metricNamespace(String metricNamespace)
Sets the value of
MetricFilterOptions.getMetricNamespace() |
MetricFilterOptions.Builder |
metricValue(String metricValue)
Sets the value of
MetricFilterOptions.getMetricValue() |
@Stability(value=Experimental) public MetricFilterOptions.Builder filterPattern(IFilterPattern filterPattern)
MetricFilterOptions.getFilterPattern()filterPattern - Pattern to search for log events. This parameter is required.this@Stability(value=Experimental) public MetricFilterOptions.Builder metricName(String metricName)
MetricFilterOptions.getMetricName()metricName - The name of the metric to emit. This parameter is required.this@Stability(value=Experimental) public MetricFilterOptions.Builder metricNamespace(String metricNamespace)
MetricFilterOptions.getMetricNamespace()metricNamespace - The namespace of the metric to emit. This parameter is required.this@Stability(value=Experimental) public MetricFilterOptions.Builder defaultValue(Number defaultValue)
MetricFilterOptions.getDefaultValue()defaultValue - The value to emit if the pattern does not match a particular event.this@Stability(value=Experimental) public MetricFilterOptions.Builder metricValue(String metricValue)
MetricFilterOptions.getMetricValue()metricValue - The value to emit for the metric.
Can either be a literal number (typically "1"), or the name of a field in the structure
to take the value from the matched event. If you are using a field value, the field
value must have been matched using the pattern.
If you want to specify a field from a matched JSON structure, use '$.fieldName', and make sure the field is in the pattern (if only as '$.fieldName = *').
If you want to specify a field from a matched space-delimited structure, use '$fieldName'.
this@Stability(value=Experimental) public MetricFilterOptions build()
build in interface software.amazon.jsii.Builder<MetricFilterOptions>MetricFilterOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.