TableThreshold
- class aws_cdk.aws_cloudwatch.TableThreshold(*args: Any, **kwargs)
Bases:
object
Thresholds for highlighting cells in TableWidget.
- ExampleMetadata:
infused
Example:
# dashboard: cloudwatch.Dashboard dashboard.add_widgets(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
- to_json()
- Return type:
Any
Static Methods
- classmethod above(value, color=None)
A threshold for highlighting and coloring cells above the specified value.
- Parameters:
value (
Union
[int
,float
]) – lower bound of threshold range.color (
Optional
[str
]) – cell color for values within threshold range.
- Return type:
- classmethod below(value, color=None)
A threshold for highlighting and coloring cells below the specified value.
- Parameters:
value (
Union
[int
,float
]) – upper bound of threshold range.color (
Optional
[str
]) – cell color for values within threshold range.
- Return type:
- classmethod between(lower_bound, upper_bound, color=None)
A threshold for highlighting and coloring cells within the specified values.
- Parameters:
lower_bound (
Union
[int
,float
]) – lower bound of threshold range.upper_bound (
Union
[int
,float
]) – upper bound of threshold range.color (
Optional
[str
]) – cell color for values within threshold range.
- Return type: