refactor(data models): Renamed TableData to SeriesData (#16185)

This commit is contained in:
Ryan McKinley
2019-03-25 06:46:16 -07:00
committed by Torkel Ödegaard
parent c7d108264d
commit 77b3da3e8b
22 changed files with 283 additions and 253 deletions

View File

@@ -1,6 +1,6 @@
import _ from 'lodash';
import TableModel from 'app/core/table_model';
import { ColumnType } from '@grafana/ui';
import { FieldType } from '@grafana/ui';
export default class InfluxSeries {
series: any;
@@ -157,7 +157,7 @@ export default class InfluxSeries {
// Check that the first column is indeed 'time'
if (series.columns[0] === 'time') {
// Push this now before the tags and with the right type
table.columns.push({ text: 'Time', type: ColumnType.time });
table.columns.push({ text: 'Time', type: FieldType.time });
j++;
}
_.each(_.keys(series.tags), key => {