Class ConcreteWidget
A real CloudWatch widget that has its own fixed size and remembers its position.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.AWS.CloudWatch.dll
Syntax (csharp)
public abstract class ConcreteWidget : DeputyBase, IWidget
Syntax (vb)
Public MustInherit Class ConcreteWidget
Inherits DeputyBase
Implements IWidget
Remarks
This is in contrast to other widgets which exist for layout purposes.
Synopsis
Constructors
ConcreteWidget(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
ConcreteWidget(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
ConcreteWidget(Double, Double) |
Properties
Height | The amount of vertical grid units the widget will take up. |
Warnings | Any warnings that are produced as a result of putting together this widget. |
Width | The amount of horizontal grid units the widget will take up. |
X | |
Y |
Methods
CopyMetricWarnings(IMetric[]) | Copy the warnings from the given metric. |
Position(Double, Double) | Place the widget at a given position. |
ToJson() | Return the widget JSON for use in the dashboard. |
Constructors
ConcreteWidget(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected ConcreteWidget(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
ConcreteWidget(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected ConcreteWidget(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
ConcreteWidget(Double, Double)
protected ConcreteWidget(double width, double height)
Parameters
- width System.Double
- height System.Double
Properties
Height
The amount of vertical grid units the widget will take up.
public virtual double Height { get; }
Property Value
System.Double
Warnings
Any warnings that are produced as a result of putting together this widget.
public virtual string[] Warnings { get; }
Property Value
System.String[]
Width
The amount of horizontal grid units the widget will take up.
public virtual double Width { get; }
Property Value
System.Double
X
protected virtual Nullable<double> X { get; set; }
Property Value
System.Nullable<System.Double>
Y
protected virtual Nullable<double> Y { get; set; }
Property Value
System.Nullable<System.Double>
Methods
CopyMetricWarnings(IMetric[])
Copy the warnings from the given metric.
protected virtual void CopyMetricWarnings(params IMetric[] ms)
Parameters
- ms IMetric[]
Position(Double, Double)
Place the widget at a given position.
public virtual void Position(double x, double y)
Parameters
- x System.Double
- y System.Double
ToJson()
Return the widget JSON for use in the dashboard.
public abstract object[] ToJson()
Returns
System.Object[]