/
MetricWidgetProps.go
37 lines (34 loc) · 1.1 KB
/
MetricWidgetProps.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
package awscloudwatch
// Basic properties for widgets that display metrics.
//
// 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"
//
// metricWidgetProps := &MetricWidgetProps{
// Height: jsii.Number(123),
// Region: jsii.String("region"),
// Title: jsii.String("title"),
// Width: jsii.Number(123),
// }
//
type MetricWidgetProps struct {
// Height of the widget.
// Default: - 6 for Alarm and Graph widgets.
// 3 for single value widgets where most recent value of a metric is displayed.
//
Height *float64 `field:"optional" json:"height" yaml:"height"`
// The region the metrics of this graph should be taken from.
// Default: - Current region.
//
Region *string `field:"optional" json:"region" yaml:"region"`
// Title for the graph.
// Default: - None.
//
Title *string `field:"optional" json:"title" yaml:"title"`
// Width of the widget, in a grid of 24 units wide.
// Default: 6.
//
Width *float64 `field:"optional" json:"width" yaml:"width"`
}