Skip to content
v2.274.0

TableThreshold Class ​

Thresholds for highlighting cells in TableWidget.

Example ​

ts
declare const dashboard: cloudwatch.Dashboard;

dashboard.addWidgets(new cloudwatch.TableWidget({
  // ...

  thresholds: [
    cloudwatch.TableThreshold.above(1000, cloudwatch.Color.RED),
    cloudwatch.TableThreshold.between(500, 1000, cloudwatch.Color.ORANGE),
    cloudwatch.TableThreshold.below(500, cloudwatch.Color.GREEN),
  ],
}));

Methods ​

above(value: number, color?: string): TableThreshold // chainable@staticmethod def above(value: int | float, color: typing.Optional[str] = None) -> TableThresholdpublic static TableThreshold above(Number value, String color)public static TableThreshold Above(double value, string? color = null)func Above(Value *float64, Color *string) TableThresholdstatic#
A threshold for highlighting and coloring cells above the specified value.
2 parameters

Parameters

  • valuevaluevaluevalueValue — lower bound of threshold range.
  • colorcolorcolorcolorColor — cell color for values within threshold range.
below(value: number, color?: string): TableThreshold // chainable@staticmethod def below(value: int | float, color: typing.Optional[str] = None) -> TableThresholdpublic static TableThreshold below(Number value, String color)public static TableThreshold Below(double value, string? color = null)func Below(Value *float64, Color *string) TableThresholdstatic#
A threshold for highlighting and coloring cells below the specified value.
2 parameters

Parameters

  • valuevaluevaluevalueValue — upper bound of threshold range.
  • colorcolorcolorcolorColor — cell color for values within threshold range.
between(lowerBound: number, upperBound: number, color?: string): TableThreshold // chainable@staticmethod def between(lower_bound: int | float, upper_bound: int | float, color: typing.Optional[str] = None) -> TableThresholdpublic static TableThreshold between(Number lowerBound, Number upperBound, String color)public static TableThreshold Between(double lowerBound, double upperBound, string? color = null)func Between(LowerBound *float64, UpperBound *float64, Color *string) TableThresholdstatic#
A threshold for highlighting and coloring cells within the specified values.
3 parameters

Parameters

  • lowerBoundlower_boundlowerBoundlowerBoundLowerBound — lower bound of threshold range.
  • upperBoundupper_boundupperBoundupperBoundUpperBound — upper bound of threshold range.
  • colorcolorcolorcolorColor — cell color for values within threshold range.
toJson(): anydef to_json(self, ) -> Anypublic Object toJson()public object ToJson()func ToJson() interface{}#