interface MetricGoalObjectProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Evidently.Mixins.CfnExperimentPropsMixin.MetricGoalObjectProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsevidently/mixins#CfnExperimentPropsMixin_MetricGoalObjectProperty |
Java | software.amazon.awscdk.mixins.preview.services.evidently.mixins.CfnExperimentPropsMixin.MetricGoalObjectProperty |
Python | aws_cdk.mixins_preview.aws_evidently.mixins.CfnExperimentPropsMixin.MetricGoalObjectProperty |
TypeScript | @aws-cdk/mixins-preview » aws_evidently » mixins » CfnExperimentPropsMixin » MetricGoalObjectProperty |
Use this structure to tell Evidently whether higher or lower values are desired for a metric that is used in an experiment.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as evidently_mixins } from '@aws-cdk/mixins-preview/aws-evidently';
const metricGoalObjectProperty: evidently_mixins.CfnExperimentPropsMixin.MetricGoalObjectProperty = {
desiredChange: 'desiredChange',
entityIdKey: 'entityIdKey',
eventPattern: 'eventPattern',
metricName: 'metricName',
unitLabel: 'unitLabel',
valueKey: 'valueKey',
};
Properties
| Name | Type | Description |
|---|---|---|
| desired | string | INCREASE means that a variation with a higher number for this metric is performing better. |
| 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 JSON path to reference the numerical metric value in the event. |
desiredChange?
Type:
string
(optional)
INCREASE means that a variation with a higher number for this metric is performing better.
DECREASE means that a variation with a lower number for this metric is performing better.
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 JSON path to reference the numerical metric value in the event.

.NET
Go
Java
Python
TypeScript