-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsevidently_CfnLaunch_MetricDefinitionObjectProperty.go
39 lines (36 loc) · 1.67 KB
/
awsevidently_CfnLaunch_MetricDefinitionObjectProperty.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package awsevidently
// 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 "github.com/aws/aws-cdk-go/awscdk"
//
// metricDefinitionObjectProperty := &metricDefinitionObjectProperty{
// entityIdKey: jsii.String("entityIdKey"),
// eventPattern: jsii.String("eventPattern"),
// metricName: jsii.String("metricName"),
// valueKey: jsii.String("valueKey"),
//
// // the properties below are optional
// unitLabel: jsii.String("unitLabel"),
// }
//
type CfnLaunch_MetricDefinitionObjectProperty struct {
// 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` .
EntityIdKey *string `field:"required" json:"entityIdKey" yaml:"entityIdKey"`
// The EventBridge event pattern that defines how the metric is recorded.
//
// For more information about EventBridge event patterns, see [Amazon EventBridge event patterns](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns.html) .
EventPattern *string `field:"required" json:"eventPattern" yaml:"eventPattern"`
// A name for the metric.
//
// It can include up to 255 characters.
MetricName *string `field:"required" json:"metricName" yaml:"metricName"`
// The value that is tracked to produce the metric.
ValueKey *string `field:"required" json:"valueKey" yaml:"valueKey"`
// A label for the units that the metric is measuring.
UnitLabel *string `field:"optional" json:"unitLabel" yaml:"unitLabel"`
}