This is documentation for the next version of Grafana. For the latest stable release, go to the latest version.

API Reference@grafana/datagetActiveThreshold

getActiveThreshold() function

getActiveThreshold() function

Signature

export declare function getActiveThreshold(value: number, thresholds: Threshold[] | undefined): Threshold;

Import

import { getActiveThreshold } from '@grafana/data';

Parameters

Parameter Type Description
value number
thresholds Threshold[] | undefined

Returns:

Threshold