formatLabels() function

formatLabels() function

Serializes the given labels to a string.

Signature

  1. export declare function formatLabels(labels: Labels, defaultValue?: string, withoutBraces?: boolean): string;

Import

  1. import { formatLabels } from '@grafana/data';

Parameters

ParameterTypeDescription
labelsLabels
defaultValuestring
withoutBracesboolean

Returns:

string