mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 17:52:30 +08:00

* added packages reference menu item. * removed the draft flag. * Updated docs by running script.
35 lines
843 B
Markdown
35 lines
843 B
Markdown
+++
|
|
# -----------------------------------------------------------------------
|
|
# Do not edit this file. It is automatically generated by API Documenter.
|
|
# -----------------------------------------------------------------------
|
|
title = "getActiveThreshold"
|
|
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
|
type = "docs"
|
|
+++
|
|
|
|
## getActiveThreshold() function
|
|
|
|
### getActiveThreshold() function
|
|
|
|
<b>Signature</b>
|
|
|
|
```typescript
|
|
export declare function getActiveThreshold(value: number, thresholds: Threshold[]): Threshold;
|
|
```
|
|
<b>Import</b>
|
|
|
|
```typescript
|
|
import { getActiveThreshold } from '@grafana/data';
|
|
```
|
|
<b>Parameters</b>
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| value | <code>number</code> | |
|
|
| thresholds | <code>Threshold[]</code> | |
|
|
|
|
<b>Returns:</b>
|
|
|
|
`Threshold`
|
|
|