-
Notifications
You must be signed in to change notification settings - Fork 17
/
SearchComponents.go
44 lines (41 loc) · 1.75 KB
/
SearchComponents.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
39
40
41
42
43
package awscloudwatch
// Search components for use with {@link Values.fromSearchComponents}.
//
// Example:
// import "github.com/aws/aws-cdk-go/awscdk"
//
//
// dashboard := cw.NewDashboard(this, jsii.String("Dash"), &DashboardProps{
// DefaultInterval: awscdk.Duration_Days(jsii.Number(7)),
// Variables: []iVariable{
// cw.NewDashboardVariable(&DashboardVariableOptions{
// Id: jsii.String("functionName"),
// Type: cw.VariableType_PATTERN,
// Label: jsii.String("Function"),
// InputType: cw.VariableInputType_RADIO,
// Value: jsii.String("originalFuncNameInDashboard"),
// // equivalent to cw.Values.fromSearch('{AWS/Lambda,FunctionName} MetricName=\"Duration\"', 'FunctionName')
// Values: cw.Values_FromSearchComponents(&SearchComponents{
// Namespace: jsii.String("AWS/Lambda"),
// Dimensions: []*string{
// jsii.String("FunctionName"),
// },
// MetricName: jsii.String("Duration"),
// PopulateFrom: jsii.String("FunctionName"),
// }),
// DefaultValue: cw.DefaultValue_FIRST(),
// Visible: jsii.Boolean(true),
// }),
// },
// })
//
type SearchComponents struct {
// The list of dimensions to be used in the search expression.
Dimensions *[]*string `field:"required" json:"dimensions" yaml:"dimensions"`
// The metric name to be used in the search expression.
MetricName *string `field:"required" json:"metricName" yaml:"metricName"`
// The namespace to be used in the search expression.
Namespace *string `field:"required" json:"namespace" yaml:"namespace"`
// The dimension name, that the search expression retrieves, whose values will be used to populate the values to choose from.
PopulateFrom *string `field:"required" json:"populateFrom" yaml:"populateFrom"`
}