Class TableWidget
A dashboard widget that displays metrics.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TableWidget : ConcreteWidget, IWidget
Syntax (vb)
Public Class TableWidget Inherits ConcreteWidget Implements IWidget
Remarks
ExampleMetadata: infused
Examples
Dashboard dashboard;
dashboard.AddWidgets(new TableWidget(new TableWidgetProps {
// ...
Layout = TableLayout.VERTICAL
}));
Synopsis
Constructors
| TableWidget(ITableWidgetProps) | A dashboard widget that displays metrics. |
Methods
| AddMetric(IMetric) | Add another metric. |
| ToJson() | Return the widget JSON for use in the dashboard. |
Constructors
TableWidget(ITableWidgetProps)
A dashboard widget that displays metrics.
public TableWidget(ITableWidgetProps props)
Parameters
- props ITableWidgetProps
Remarks
ExampleMetadata: infused
Examples
Dashboard dashboard;
dashboard.AddWidgets(new TableWidget(new TableWidgetProps {
// ...
Layout = TableLayout.VERTICAL
}));
Methods
AddMetric(IMetric)
Add another metric.
public virtual void AddMetric(IMetric metric)
Parameters
- metric IMetric
the metric to add.
Remarks
ExampleMetadata: infused
ToJson()
Return the widget JSON for use in the dashboard.
public override object[] ToJson()
Returns
object[]
Overrides
Remarks
ExampleMetadata: infused