Class SingleValueWidget
A dashboard widget that displays the most recent value for every metric.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.AWS.CloudWatch.dll
Syntax (csharp)
public class SingleValueWidget : ConcreteWidget, IWidget
Syntax (vb)
Public Class SingleValueWidget
Inherits ConcreteWidget
Implements IWidget
Remarks
ExampleMetadata: infused
Examples
Dashboard dashboard;
Metric visitorCount;
Metric purchaseCount;
dashboard.AddWidgets(new SingleValueWidget(new SingleValueWidgetProps {
Metrics = new [] { visitorCount, purchaseCount }
}));
Synopsis
Constructors
SingleValueWidget(ISingleValueWidgetProps) | |
SingleValueWidget(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
SingleValueWidget(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
ToJson() | Return the widget JSON for use in the dashboard. |
Constructors
SingleValueWidget(ISingleValueWidgetProps)
SingleValueWidget(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected SingleValueWidget(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
SingleValueWidget(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected SingleValueWidget(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
ToJson()
Return the widget JSON for use in the dashboard.
public override object[] ToJson()
Returns
System.Object[]