public static interface MetricTransformation.Builder extends SdkPojo, CopyableBuilder<MetricTransformation.Builder,MetricTransformation>
| Modifier and Type | Method and Description |
|---|---|
MetricTransformation.Builder |
defaultValue(Double defaultValue)
(Optional) The value to emit when a filter pattern does not match a log event.
|
MetricTransformation.Builder |
dimensions(Map<String,String> dimensions)
The fields to use as dimensions for the metric.
|
MetricTransformation.Builder |
metricName(String metricName)
The name of the CloudWatch metric.
|
MetricTransformation.Builder |
metricNamespace(String metricNamespace)
A custom namespace to contain your metric in CloudWatch.
|
MetricTransformation.Builder |
metricValue(String metricValue)
The value to publish to the CloudWatch metric when a filter pattern matches a log event.
|
MetricTransformation.Builder |
unit(StandardUnit unit)
The unit to assign to the metric.
|
MetricTransformation.Builder |
unit(String unit)
The unit to assign to the metric.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildMetricTransformation.Builder metricName(String metricName)
The name of the CloudWatch metric.
metricName - The name of the CloudWatch metric.MetricTransformation.Builder metricNamespace(String metricNamespace)
A custom namespace to contain your metric in CloudWatch. Use namespaces to group together metrics that are similar. For more information, see Namespaces.
metricNamespace - A custom namespace to contain your metric in CloudWatch. Use namespaces to group together metrics that
are similar. For more information, see Namespaces.MetricTransformation.Builder metricValue(String metricValue)
The value to publish to the CloudWatch metric when a filter pattern matches a log event.
metricValue - The value to publish to the CloudWatch metric when a filter pattern matches a log event.MetricTransformation.Builder defaultValue(Double defaultValue)
(Optional) The value to emit when a filter pattern does not match a log event. This value can be null.
defaultValue - (Optional) The value to emit when a filter pattern does not match a log event. This value can be null.MetricTransformation.Builder dimensions(Map<String,String> dimensions)
The fields to use as dimensions for the metric. One metric filter can include as many as three dimensions.
Metrics extracted from log events are charged as custom metrics. To prevent unexpected high charges, do not
specify high-cardinality fields such as IPAddress or requestID as dimensions. Each
different value found for a dimension is treated as a separate metric and accrues charges as a separate
custom metric.
To help prevent accidental high charges, Amazon disables a metric filter if it generates 1000 different name/value pairs for the dimensions that you have specified within a certain amount of time.
You can also set up a billing alarm to alert you if your charges are higher than expected. For more information, see Creating a Billing Alarm to Monitor Your Estimated Amazon Web Services Charges.
dimensions - The fields to use as dimensions for the metric. One metric filter can include as many as three
dimensions.
Metrics extracted from log events are charged as custom metrics. To prevent unexpected high charges,
do not specify high-cardinality fields such as IPAddress or requestID as
dimensions. Each different value found for a dimension is treated as a separate metric and accrues
charges as a separate custom metric.
To help prevent accidental high charges, Amazon disables a metric filter if it generates 1000 different name/value pairs for the dimensions that you have specified within a certain amount of time.
You can also set up a billing alarm to alert you if your charges are higher than expected. For more information, see Creating a Billing Alarm to Monitor Your Estimated Amazon Web Services Charges.
MetricTransformation.Builder unit(String unit)
The unit to assign to the metric. If you omit this, the unit is set as None.
unit - The unit to assign to the metric. If you omit this, the unit is set as None.StandardUnit,
StandardUnitMetricTransformation.Builder unit(StandardUnit unit)
The unit to assign to the metric. If you omit this, the unit is set as None.
unit - The unit to assign to the metric. If you omit this, the unit is set as None.StandardUnit,
StandardUnitCopyright © 2022. All rights reserved.