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

API Reference@grafana/dataintervalToMs

rangeUtil.intervalToMs() function

rangeUtil.intervalToMs() function

Signature

export declare function intervalToMs(str: string): number;

Import

import { rangeUtil } from '@grafana/data';
const { intervalToMs } = rangeUtil;

Parameters

Parameter Type Description
str string

Returns:

number