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

API Reference@grafana/datacalculateLogsLabelStats

calculateLogsLabelStats() function

calculateLogsLabelStats() function

Signature

export declare function calculateLogsLabelStats(rows: LogRowModel[], label: string): LogLabelStatsModel[];

Import

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

Parameters

Parameter Type Description
rows LogRowModel[]
label string

Returns:

LogLabelStatsModel[]