Class TableThreshold
Thresholds for highlighting cells in TableWidget.
Inheritance
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TableThreshold : DeputyBase
Syntax (vb)
Public Class TableThreshold
Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
Dashboard dashboard;
dashboard.AddWidgets(new TableWidget(new TableWidgetProps {
// ...
Thresholds = new [] { TableThreshold.Above(1000, Color.RED), TableThreshold.Between(500, 1000, Color.ORANGE), TableThreshold.Below(500, Color.GREEN) }
}));
Synopsis
Constructors
TableThreshold(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
TableThreshold(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Above(Double, String) | A threshold for highlighting and coloring cells above the specified value. |
Below(Double, String) | A threshold for highlighting and coloring cells below the specified value. |
Between(Double, Double, String) | A threshold for highlighting and coloring cells within the specified values. |
ToJson() |
Constructors
TableThreshold(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected TableThreshold(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
TableThreshold(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected TableThreshold(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Above(Double, String)
A threshold for highlighting and coloring cells above the specified value.
public static TableThreshold Above(double value, string color = null)
Parameters
- value System.Double
lower bound of threshold range.
- color System.String
cell color for values within threshold range.
Returns
Below(Double, String)
A threshold for highlighting and coloring cells below the specified value.
public static TableThreshold Below(double value, string color = null)
Parameters
- value System.Double
upper bound of threshold range.
- color System.String
cell color for values within threshold range.
Returns
Between(Double, Double, String)
A threshold for highlighting and coloring cells within the specified values.
public static TableThreshold Between(double lowerBound, double upperBound, string color = null)
Parameters
- lowerBound System.Double
lower bound of threshold range.
- upperBound System.Double
upper bound of threshold range.
- color System.String
cell color for values within threshold range.
Returns
ToJson()
public virtual object ToJson()
Returns
System.Object