package awscloudwatch import ( "github.com/aws/aws-cdk-go/awscdk/v2" ) // Properties for a GaugeWidget. // // Example: // var dashboard dashboard // var errorAlarm alarm // var gaugeMetric metric // // // dashboard.AddWidgets(cloudwatch.NewGaugeWidget(&GaugeWidgetProps{ // Metrics: []iMetric{ // gaugeMetric, // }, // LeftYAxis: &YAxisProps{ // Min: jsii.Number(0), // Max: jsii.Number(1000), // }, // })) // type GaugeWidgetProps struct { // Height of the widget. Height *float64 `field:"optional" json:"height" yaml:"height"` // The region the metrics of this graph should be taken from. Region *string `field:"optional" json:"region" yaml:"region"` // Title for the graph. Title *string `field:"optional" json:"title" yaml:"title"` // Width of the widget, in a grid of 24 units wide. Width *float64 `field:"optional" json:"width" yaml:"width"` // Annotations for the left Y axis. Annotations *[]*HorizontalAnnotation `field:"optional" json:"annotations" yaml:"annotations"` // Left Y axis. LeftYAxis *YAxisProps `field:"optional" json:"leftYAxis" yaml:"leftYAxis"` // Position of the legend. LegendPosition LegendPosition `field:"optional" json:"legendPosition" yaml:"legendPosition"` // Whether the graph should show live data. LiveData *bool `field:"optional" json:"liveData" yaml:"liveData"` // Metrics to display on left Y axis. Metrics *[]IMetric `field:"optional" json:"metrics" yaml:"metrics"` // The default period for all metrics in this widget. // // The period is the length of time represented by one data point on the graph. // This default can be overridden within each metric definition. Period awscdk.Duration `field:"optional" json:"period" yaml:"period"` // Whether to show the value from the entire time range. Only applicable for Bar and Pie charts. // // If false, values will be from the most recent period of your chosen time range; // if true, shows the value from the entire time range. SetPeriodToTimeRange *bool `field:"optional" json:"setPeriodToTimeRange" yaml:"setPeriodToTimeRange"` // The default statistic to be displayed for each metric. // // This default can be overridden within the definition of each individual metric. Statistic *string `field:"optional" json:"statistic" yaml:"statistic"` }