interface MetricDefinitionObjectProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.Evidently.CfnLaunchPropsMixin.MetricDefinitionObjectProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsevidently#CfnLaunchPropsMixin_MetricDefinitionObjectProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.evidently.CfnLaunchPropsMixin.MetricDefinitionObjectProperty |
Python | aws_cdk.cfn_property_mixins.aws_evidently.CfnLaunchPropsMixin.MetricDefinitionObjectProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_evidently » CfnLaunchPropsMixin » MetricDefinitionObjectProperty |
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 { aws_evidently as evidently } from '@aws-cdk/cfn-property-mixins';
const metricDefinitionObjectProperty: evidently.CfnLaunchPropsMixin.MetricDefinitionObjectProperty = {
entityIdKey: 'entityIdKey',
eventPattern: 'eventPattern',
metricName: 'metricName',
unitLabel: 'unitLabel',
valueKey: 'valueKey',
};
Properties
| Name | Type | Description |
|---|---|---|
| entity | string | The entity, such as a user or session, that does an action that causes a metric value to be recorded. |
| event | string | The EventBridge event pattern that defines how the metric is recorded. |
| metric | string | A name for the metric. |
| unit | string | A label for the units that the metric is measuring. |
| value | string | The value that is tracked to produce the metric. |
entityIdKey?
Type:
string
(optional)
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 .
eventPattern?
Type:
string
(optional)
The EventBridge event pattern that defines how the metric is recorded.
For more information about EventBridge event patterns, see Amazon EventBridge event patterns .
metricName?
Type:
string
(optional)
A name for the metric.
It can include up to 255 characters.
unitLabel?
Type:
string
(optional)
A label for the units that the metric is measuring.
valueKey?
Type:
string
(optional)
The value that is tracked to produce the metric.

.NET
Go
Java
Python
TypeScript