Interface CfnLaunch.MetricDefinitionObjectProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLaunch.MetricDefinitionObjectProperty.Jsii$Proxy
- Enclosing class:
CfnLaunch
@Stability(Stable)
public static interface CfnLaunch.MetricDefinitionObjectProperty
extends software.amazon.jsii.JsiiSerializable
This structure defines a metric that you want to use to evaluate the variations during a launch or experiment.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.evidently.*;
MetricDefinitionObjectProperty metricDefinitionObjectProperty = MetricDefinitionObjectProperty.builder()
.entityIdKey("entityIdKey")
.metricName("metricName")
.valueKey("valueKey")
// the properties below are optional
.eventPattern("eventPattern")
.unitLabel("unitLabel")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnLaunch.MetricDefinitionObjectPropertystatic final classAn implementation forCfnLaunch.MetricDefinitionObjectProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The entity, such as a user or session, that does an action that causes a metric value to be recorded.default StringThe EventBridge event pattern that defines how the metric is recorded.A name for the metric.default StringA label for the units that the metric is measuring.The value that is tracked to produce the metric.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEntityIdKey
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.- See Also:
-
getMetricName
A name for the metric.It can include up to 255 characters.
- See Also:
-
getValueKey
The value that is tracked to produce the metric.- See Also:
-
getEventPattern
The EventBridge event pattern that defines how the metric is recorded.For more information about EventBridge event patterns, see Amazon EventBridge event patterns .
- See Also:
-
getUnitLabel
A label for the units that the metric is measuring.- See Also:
-
builder
-