Interface MetricDefinitionConfig.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<MetricDefinitionConfig.Builder,
,MetricDefinitionConfig> SdkBuilder<MetricDefinitionConfig.Builder,
,MetricDefinitionConfig> SdkPojo
- Enclosing class:
MetricDefinitionConfig
@Mutable
@NotThreadSafe
public static interface MetricDefinitionConfig.Builder
extends SdkPojo, CopyableBuilder<MetricDefinitionConfig.Builder,MetricDefinitionConfig>
-
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.A name for the metric.A 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. An example is
userDetails.userID
.- Parameters:
entityIdKey
- The entity, such as a user or session, that does an action that causes a metric value to be recorded. An example isuserDetails.userID
.- 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
A name for the metric.
- Parameters:
name
- A name for the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unitLabel
A label for the units that the metric is measuring.
- Parameters:
unitLabel
- A 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.
-