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

API Reference@grafana/datacalculateFieldStats

calculateFieldStats() function

calculateFieldStats() function

Signature

export declare function calculateFieldStats(rows: LogRowModel[], extractor: RegExp): LogLabelStatsModel[];

Import

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

Parameters

Parameter Type Description
rows LogRowModel[]
extractor RegExp

Returns:

LogLabelStatsModel[]