# TableThreshold

Thresholds for highlighting cells in TableWidget.

- Source: [`aws-cloudwatch/lib/graph.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-cloudwatch/lib/graph.ts#L617)
- Type last changed: v2.128.0 · 14 Feb 2024

## 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` (static) — A threshold for highlighting and coloring cells above the specified value.

  **Parameters**

  - `value` — lower bound of threshold range.
  - `color` — cell color for values within threshold range.

- `below(value: number, color?: string): TableThreshold // chainable` (static) — A threshold for highlighting and coloring cells below the specified value.

  **Parameters**

  - `value` — upper bound of threshold range.
  - `color` — cell color for values within threshold range.

- `between(lowerBound: number, upperBound: number, color?: string): TableThreshold // chainable` (static) — A threshold for highlighting and coloring cells within the specified values.

  **Parameters**

  - `lowerBound` — lower bound of threshold range.
  - `upperBound` — upper bound of threshold range.
  - `color` — cell color for values within threshold range.

- `toJson(): any`
