Interface MetricDefinition.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<MetricDefinition.Builder,
,MetricDefinition> SdkBuilder<MetricDefinition.Builder,
,MetricDefinition> SdkPojo
- Enclosing class:
MetricDefinition
@Mutable
@NotThreadSafe
public static interface MetricDefinition.Builder
extends SdkPojo, CopyableBuilder<MetricDefinition.Builder,MetricDefinition>
-
Method Summary
Modifier and TypeMethodDescriptionentityIdKey
(String entityIdKey) The entity, such as a user or session, that does an action that causes a metric value to be recorded.eventPattern
(String eventPattern) The EventBridge event pattern that defines how the metric is recorded.The name of the metric.The label for the units that the metric is measuring.The value that is tracked to produce the metric.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
entityIdKey
The entity, such as a user or session, that does an action that causes a metric value to be recorded.
- Parameters:
entityIdKey
- The entity, such as a user or session, that does an action that causes a metric value to be recorded.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventPattern
The EventBridge event pattern that defines how the metric is recorded.
For more information about EventBridge event patterns, see Amazon EventBridge event patterns.
- Parameters:
eventPattern
- The EventBridge event pattern that defines how the metric is recorded.For more information about EventBridge event patterns, see Amazon EventBridge event patterns.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the metric.
- Parameters:
name
- The name of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unitLabel
The label for the units that the metric is measuring.
- Parameters:
unitLabel
- The label for the units that the metric is measuring.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
valueKey
The value that is tracked to produce the metric.
- Parameters:
valueKey
- The value that is tracked to produce the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-