Show / Hide Table of Contents

Class GraphWidget

A dashboard widget that displays metrics.

Inheritance
System.Object
ConcreteWidget
GraphWidget
Implements
IWidget
Inherited Members
ConcreteWidget.CopyMetricWarnings(IMetric[])
ConcreteWidget.Position(Double, Double)
ConcreteWidget.Height
ConcreteWidget.Width
ConcreteWidget.Warnings
ConcreteWidget.X
ConcreteWidget.Y
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.AWS.CloudWatch.dll
Syntax (csharp)
public class GraphWidget : ConcreteWidget, IWidget
Syntax (vb)
Public Class GraphWidget
    Inherits ConcreteWidget
    Implements IWidget
Remarks

ExampleMetadata: infused

Examples
Dashboard dashboard;


dashboard.AddWidgets(new GraphWidget(new GraphWidgetProps {
    // ...

    LegendPosition = LegendPosition.RIGHT
}));

Synopsis

Constructors

GraphWidget(IGraphWidgetProps)
GraphWidget(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

GraphWidget(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

Methods

AddLeftMetric(IMetric)

Add another metric to the left Y axis of the GraphWidget.

AddRightMetric(IMetric)

Add another metric to the right Y axis of the GraphWidget.

ToJson()

Return the widget JSON for use in the dashboard.

Constructors

GraphWidget(IGraphWidgetProps)

public GraphWidget(IGraphWidgetProps props)
Parameters
props IGraphWidgetProps

GraphWidget(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

protected GraphWidget(ByRefValue reference)
Parameters
reference Amazon.JSII.Runtime.Deputy.ByRefValue

The Javascript-owned object reference

GraphWidget(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

protected GraphWidget(DeputyBase.DeputyProps props)
Parameters
props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps

The deputy props

Methods

AddLeftMetric(IMetric)

Add another metric to the left Y axis of the GraphWidget.

public virtual void AddLeftMetric(IMetric metric)
Parameters
metric IMetric

the metric to add.

AddRightMetric(IMetric)

Add another metric to the right Y axis of the GraphWidget.

public virtual void AddRightMetric(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[]

Overrides
ConcreteWidget.ToJson()

Implements

IWidget
Back to top Generated by DocFX