interface SingleValueWidgetProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CloudWatch.SingleValueWidgetProps |
Java | software.amazon.awscdk.services.cloudwatch.SingleValueWidgetProps |
Python | aws_cdk.aws_cloudwatch.SingleValueWidgetProps |
TypeScript (source) | @aws-cdk/aws-cloudwatch » SingleValueWidgetProps |
Properties for a SingleValueWidget.
Example
declare const dashboard: cloudwatch.Dashboard;
declare const visitorCount: cloudwatch.Metric;
declare const purchaseCount: cloudwatch.Metric;
dashboard.addWidgets(new cloudwatch.SingleValueWidget({
metrics: [visitorCount, purchaseCount],
}));
Properties
Name | Type | Description |
---|---|---|
metrics | IMetric [] | Metrics to display. |
full | boolean | Whether to show as many digits as can fit, before rounding. |
height? | number | Height of the widget. |
region? | string | The region the metrics of this graph should be taken from. |
set | boolean | Whether to show the value from the entire time range. |
title? | string | Title for the graph. |
width? | number | Width of the widget, in a grid of 24 units wide. |
metrics
Type:
IMetric
[]
Metrics to display.
fullPrecision?
Type:
boolean
(optional, default: false)
Whether to show as many digits as can fit, before rounding.
height?
Type:
number
(optional, default: 6 for Alarm and Graph widgets.
3 for single value widgets where most recent value of a metric is displayed.)
Height of the widget.
region?
Type:
string
(optional, default: Current region)
The region the metrics of this graph should be taken from.
setPeriodToTimeRange?
Type:
boolean
(optional, default: false)
Whether to show the value from the entire time range.
title?
Type:
string
(optional, default: None)
Title for the graph.
width?
Type:
number
(optional, default: 6)
Width of the widget, in a grid of 24 units wide.