TableSummaryColumn Enum
Standard table summary columns.
| Source | aws-cloudwatch/lib/graph.ts |
|---|---|
| Type last changed |
Example
ts
declare const dashboard: cloudwatch.Dashboard;
dashboard.addWidgets(new cloudwatch.TableWidget({
// ...
summary: {
columns: [cloudwatch.TableSummaryColumn.AVERAGE],
hideNonSummaryColumns: true,
sticky: true,
},
}));
python
# dashboard: cloudwatch.Dashboard
dashboard.add_widgets(cloudwatch.TableWidget(
# ...
summary=cloudwatch.TableSummaryProps(
columns=[cloudwatch.TableSummaryColumn.AVERAGE],
hide_non_summary_columns=True,
sticky=True
)
))
java
Dashboard dashboard;
dashboard.addWidgets(TableWidget.Builder.create()
// ...
.summary(TableSummaryProps.builder()
.columns(List.of(TableSummaryColumn.AVERAGE))
.hideNonSummaryColumns(true)
.sticky(true)
.build())
.build());
csharp
// Install: dotnet add package Amazon.CDK.Lib
Dashboard dashboard;
dashboard.AddWidgets(new TableWidget(new TableWidgetProps {
// ...
Summary = new TableSummaryProps {
Columns = new [] { TableSummaryColumn.AVERAGE },
HideNonSummaryColumns = true,
Sticky = true
}
}));
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
var dashboard Dashboard
dashboard.AddWidgets(cloudwatch.NewTableWidget(&TableWidgetProps{
// ...
Summary: &TableSummaryProps{
Columns: []TableSummaryColumn{
cloudwatch.TableSummaryColumn_AVERAGE,
},
HideNonSummaryColumns: jsii.Boolean(true),
Sticky: jsii.Boolean(true),
},
}))
Members
| Member | Description |
|---|---|
MINIMUM | Minimum of all data points. |
MAXIMUM | Maximum of all data points. |
SUM | Sum of all data points. |
AVERAGE | Average of all data points. |
Referenced by
TableSummaryProps.columnscolumnscolumnsColumnsColumns