mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 08:42:15 +08:00

* added packages reference menu item. * removed the draft flag. * Updated docs by running script.
48 lines
1.1 KiB
Markdown
48 lines
1.1 KiB
Markdown
+++
|
|
# -----------------------------------------------------------------------
|
|
# Do not edit this file. It is automatically generated by API Documenter.
|
|
# -----------------------------------------------------------------------
|
|
title = "ThresholdsConfig"
|
|
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
|
type = "docs"
|
|
+++
|
|
|
|
## ThresholdsConfig interface
|
|
|
|
Config that is passed to the ThresholdsEditor
|
|
|
|
<b>Signature</b>
|
|
|
|
```typescript
|
|
export interface ThresholdsConfig
|
|
```
|
|
<b>Import</b>
|
|
|
|
```typescript
|
|
import { ThresholdsConfig } from '@grafana/data';
|
|
```
|
|
<b>Properties</b>
|
|
|
|
| Property | Type | Description |
|
|
| --- | --- | --- |
|
|
| [mode](#mode-property) | <code>ThresholdsMode</code> | |
|
|
| [steps](#steps-property) | <code>Threshold[]</code> | Must be sorted by 'value', first value is always -Infinity |
|
|
|
|
### mode property
|
|
|
|
<b>Signature</b>
|
|
|
|
```typescript
|
|
mode: ThresholdsMode;
|
|
```
|
|
|
|
### steps property
|
|
|
|
Must be sorted by 'value', first value is always -Infinity
|
|
|
|
<b>Signature</b>
|
|
|
|
```typescript
|
|
steps: Threshold[];
|
|
```
|