Package com.pulumi.aws.cloudwatch.inputs
Class LogMetricFilterMetricTransformationArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.cloudwatch.inputs.LogMetricFilterMetricTransformationArgs.Builder
-
- Enclosing class:
- LogMetricFilterMetricTransformationArgs
public static final class LogMetricFilterMetricTransformationArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(LogMetricFilterMetricTransformationArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(LogMetricFilterMetricTransformationArgs defaults)
-
-
Method Detail
-
defaultValue
public LogMetricFilterMetricTransformationArgs.Builder defaultValue(@Nullable com.pulumi.core.Output<java.lang.String> defaultValue)
- Parameters:
defaultValue- The value to emit when a filter pattern does not match a log event. Conflicts with `dimensions`.- Returns:
- builder
-
defaultValue
public LogMetricFilterMetricTransformationArgs.Builder defaultValue(java.lang.String defaultValue)
- Parameters:
defaultValue- The value to emit when a filter pattern does not match a log event. Conflicts with `dimensions`.- Returns:
- builder
-
dimensions
public LogMetricFilterMetricTransformationArgs.Builder dimensions(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> dimensions)
- Parameters:
dimensions- Map of fields to use as dimensions for the metric. Up to 3 dimensions are allowed. Conflicts with `defaultValue`.- Returns:
- builder
-
dimensions
public LogMetricFilterMetricTransformationArgs.Builder dimensions(java.util.Map<java.lang.String,java.lang.String> dimensions)
- Parameters:
dimensions- Map of fields to use as dimensions for the metric. Up to 3 dimensions are allowed. Conflicts with `defaultValue`.- Returns:
- builder
-
name
public LogMetricFilterMetricTransformationArgs.Builder name(com.pulumi.core.Output<java.lang.String> name)
- Parameters:
name- The name of the CloudWatch metric to which the monitored log information should be published (e.g., `ErrorCount`)- Returns:
- builder
-
name
public LogMetricFilterMetricTransformationArgs.Builder name(java.lang.String name)
- Parameters:
name- The name of the CloudWatch metric to which the monitored log information should be published (e.g., `ErrorCount`)- Returns:
- builder
-
namespace
public LogMetricFilterMetricTransformationArgs.Builder namespace(com.pulumi.core.Output<java.lang.String> namespace)
- Parameters:
namespace- The destination namespace of the CloudWatch metric.- Returns:
- builder
-
namespace
public LogMetricFilterMetricTransformationArgs.Builder namespace(java.lang.String namespace)
- Parameters:
namespace- The destination namespace of the CloudWatch metric.- Returns:
- builder
-
unit
public LogMetricFilterMetricTransformationArgs.Builder unit(@Nullable com.pulumi.core.Output<java.lang.String> unit)
- Parameters:
unit- The unit to assign to the metric. If you omit this, the unit is set as `None`.- Returns:
- builder
-
unit
public LogMetricFilterMetricTransformationArgs.Builder unit(java.lang.String unit)
- Parameters:
unit- The unit to assign to the metric. If you omit this, the unit is set as `None`.- Returns:
- builder
-
value
public LogMetricFilterMetricTransformationArgs.Builder value(com.pulumi.core.Output<java.lang.String> value)
- Parameters:
value- What to publish to the metric. For example, if you're counting the occurrences of a particular term like "Error", the value will be "1" for each occurrence. If you're counting the bytes transferred the published value will be the value in the log event.- Returns:
- builder
-
value
public LogMetricFilterMetricTransformationArgs.Builder value(java.lang.String value)
- Parameters:
value- What to publish to the metric. For example, if you're counting the occurrences of a particular term like "Error", the value will be "1" for each occurrence. If you're counting the bytes transferred the published value will be the value in the log event.- Returns:
- builder
-
build
public LogMetricFilterMetricTransformationArgs build()
-
-