Commit d0d5b385 by Ryan McKinley Committed by Torkel Ödegaard

Refactor: Rename Tags to Labels in SeriesData (simple) (#16284)

* rename Tags to Labels in SeriesData

* copy timeseries tags to labels
parent 930fd8b4
......@@ -21,7 +21,7 @@ export interface Field {
dateFormat?: string; // Source data format
}
export interface Tags {
export interface Labels {
[key: string]: string;
}
......@@ -29,7 +29,7 @@ export interface SeriesData {
name?: string;
fields: Field[];
rows: any[][];
tags?: Tags;
labels?: Labels;
}
export interface Column {
......@@ -51,6 +51,7 @@ export interface TimeSeries {
target: string;
datapoints: TimeSeriesPoints;
unit?: string;
tags?: Labels;
}
export enum NullValueMode {
......
......@@ -35,6 +35,7 @@ function convertTimeSeriesToSeriesData(timeSeries: TimeSeries): SeriesData {
},
],
rows: timeSeries.datapoints,
labels: timeSeries.tags,
};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment