-
Notifications
You must be signed in to change notification settings - Fork 17
/
VerticalAnnotation.go
41 lines (38 loc) · 1.37 KB
/
VerticalAnnotation.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
package awscloudwatch
// Vertical annotation to be added to a graph.
//
// 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"
//
// verticalAnnotation := &VerticalAnnotation{
// Date: jsii.String("date"),
//
// // the properties below are optional
// Color: jsii.String("color"),
// Fill: awscdk.Aws_cloudwatch.VerticalShading_NONE,
// Label: jsii.String("label"),
// Visible: jsii.Boolean(false),
// }
//
type VerticalAnnotation struct {
// The date and time (in ISO 8601 format) in the graph where the vertical annotation line is to appear.
Date *string `field:"required" json:"date" yaml:"date"`
// The hex color code, prefixed with '#' (e.g. '#00ff00'), to be used for the annotation. The `Color` class has a set of standard colors that can be used here.
// Default: - Automatic color.
//
Color *string `field:"optional" json:"color" yaml:"color"`
// Add shading before or after the annotation.
// Default: No shading.
//
Fill VerticalShading `field:"optional" json:"fill" yaml:"fill"`
// Label for the annotation.
// Default: - No label.
//
Label *string `field:"optional" json:"label" yaml:"label"`
// Whether the annotation is visible.
// Default: true.
//
Visible *bool `field:"optional" json:"visible" yaml:"visible"`
}