Class AlarmWidget
Display the metric associated with an alarm, including the alarm line.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.AWS.CloudWatch.dll
Syntax (csharp)
public class AlarmWidget : ConcreteWidget, IWidget
Syntax (vb)
Public Class AlarmWidget
Inherits ConcreteWidget
Implements IWidget
Remarks
ExampleMetadata: infused
Examples
Dashboard dashboard;
Alarm errorAlarm;
dashboard.AddWidgets(new AlarmWidget(new AlarmWidgetProps {
Title = "Errors",
Alarm = errorAlarm
}));
Synopsis
Constructors
AlarmWidget(IAlarmWidgetProps) | |
AlarmWidget(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
AlarmWidget(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
AlarmWidget(IAlarmWidgetProps)
AlarmWidget(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected AlarmWidget(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
AlarmWidget(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected AlarmWidget(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[]