formatLabels() function
formatLabels() function
Serializes the given labels to a string.
Signature
export declare function formatLabels(labels: Labels, defaultValue?: string, withoutBraces?: boolean): string;
Import
import { formatLabels } from '@grafana/data';
Parameters
Parameter | Type | Description |
---|---|---|
labels | Labels | |
defaultValue | string | |
withoutBraces | boolean |
Returns:
string