@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:31.740Z") @Stability(value=Experimental) public interface MetricFilterOptions extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
MetricFilterOptions.Builder
A builder for
MetricFilterOptions |
static class |
MetricFilterOptions.Jsii$Proxy
An implementation for
MetricFilterOptions |
| Modifier and Type | Method and Description |
|---|---|
static MetricFilterOptions.Builder |
builder() |
default Number |
getDefaultValue()
(experimental) The value to emit if the pattern does not match a particular event.
|
IFilterPattern |
getFilterPattern()
(experimental) Pattern to search for log events.
|
String |
getMetricName()
(experimental) The name of the metric to emit.
|
String |
getMetricNamespace()
(experimental) The namespace of the metric to emit.
|
default String |
getMetricValue()
(experimental) The value to emit for the metric.
|
@Stability(value=Experimental) @NotNull IFilterPattern getFilterPattern()
@Stability(value=Experimental) @NotNull String getMetricName()
@Stability(value=Experimental) @NotNull String getMetricNamespace()
@Stability(value=Experimental) @Nullable default Number getDefaultValue()
Default: No metric emitted.
@Stability(value=Experimental) @Nullable default String getMetricValue()
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'.
Default: "1"
@Stability(value=Experimental) static MetricFilterOptions.Builder builder()
MetricFilterOptions.Builder of MetricFilterOptionsCopyright © 2021. All rights reserved.