Class GaugeWidget
A dashboard gauge widget that displays metrics.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class GaugeWidget : ConcreteWidget, IWidget
Syntax (vb)
Public Class GaugeWidget
Inherits ConcreteWidget
Implements IWidget
Remarks
ExampleMetadata: infused
Examples
Dashboard dashboard;
Alarm errorAlarm;
Metric gaugeMetric;
dashboard.AddWidgets(new GaugeWidget(new GaugeWidgetProps {
Metrics = new [] { gaugeMetric },
LeftYAxis = new YAxisProps {
Min = 0,
Max = 1000
}
}));
Synopsis
Constructors
GaugeWidget(IGaugeWidgetProps) | |
GaugeWidget(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
GaugeWidget(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
AddMetric(IMetric) | Add another metric to the left Y axis of the GaugeWidget. |
ToJson() | Return the widget JSON for use in the dashboard. |
Constructors
GaugeWidget(IGaugeWidgetProps)
GaugeWidget(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected GaugeWidget(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
GaugeWidget(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected GaugeWidget(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
AddMetric(IMetric)
Add another metric to the left Y axis of the GaugeWidget.
public virtual void AddMetric(IMetric metric)
Parameters
- metric IMetric
the metric to add.
ToJson()
Return the widget JSON for use in the dashboard.
public override object[] ToJson()
Returns
System.Object[]