@Stability(value=Stable)
public static interface CfnLaunch.MetricDefinitionObjectProperty
extends software.amazon.jsii.JsiiSerializable
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")
.eventPattern("eventPattern")
.metricName("metricName")
.valueKey("valueKey")
// the properties below are optional
.unitLabel("unitLabel")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnLaunch.MetricDefinitionObjectProperty.Builder
A builder for
CfnLaunch.MetricDefinitionObjectProperty |
static class |
CfnLaunch.MetricDefinitionObjectProperty.Jsii$Proxy
An implementation for
CfnLaunch.MetricDefinitionObjectProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnLaunch.MetricDefinitionObjectProperty.Builder |
builder() |
String |
getEntityIdKey()
The entity, such as a user or session, that does an action that causes a metric value to be recorded.
|
String |
getEventPattern()
The EventBridge event pattern that defines how the metric is recorded.
|
String |
getMetricName()
A name for the metric.
|
default String |
getUnitLabel()
A label for the units that the metric is measuring.
|
String |
getValueKey()
The value that is tracked to produce the metric.
|
@Stability(value=Stable) @NotNull String getEntityIdKey()
An example is userDetails.userID .
@Stability(value=Stable) @NotNull String getEventPattern()
For more information about EventBridge event patterns, see Amazon EventBridge event patterns .
@Stability(value=Stable) @NotNull String getMetricName()
It can include up to 255 characters.
@Stability(value=Stable) @NotNull String getValueKey()
@Stability(value=Stable) @Nullable default String getUnitLabel()
@Stability(value=Stable) static CfnLaunch.MetricDefinitionObjectProperty.Builder builder()
Copyright © 2022. All rights reserved.