mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Refactor: rename SeriesData to DataFrame (#17854)
This commit is contained in:
@@ -80,15 +80,15 @@ export default class ResponseParser {
|
||||
return id.substring(startIndex, endIndex);
|
||||
}
|
||||
|
||||
static convertDataToPoints(timeSeriesData) {
|
||||
static convertDataToPoints(timeDataFrame) {
|
||||
const dataPoints: any[] = [];
|
||||
|
||||
for (let k = 0; k < timeSeriesData.length; k++) {
|
||||
const epoch = ResponseParser.dateTimeToEpoch(timeSeriesData[k].timeStamp);
|
||||
const aggKey = ResponseParser.getKeyForAggregationField(timeSeriesData[k]);
|
||||
for (let k = 0; k < timeDataFrame.length; k++) {
|
||||
const epoch = ResponseParser.dateTimeToEpoch(timeDataFrame[k].timeStamp);
|
||||
const aggKey = ResponseParser.getKeyForAggregationField(timeDataFrame[k]);
|
||||
|
||||
if (aggKey) {
|
||||
dataPoints.push([timeSeriesData[k][aggKey], epoch]);
|
||||
dataPoints.push([timeDataFrame[k][aggKey], epoch]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import './editor/editor_component';
|
||||
|
||||
import { TemplateSrv } from 'app/features/templating/template_srv';
|
||||
import { auto } from 'angular';
|
||||
import { SeriesData } from '@grafana/ui';
|
||||
import { DataFrame } from '@grafana/ui';
|
||||
|
||||
export interface ResultFormat {
|
||||
text: string;
|
||||
@@ -125,7 +125,7 @@ export class AzureMonitorQueryCtrl extends QueryCtrl {
|
||||
}
|
||||
}
|
||||
|
||||
onDataReceived(dataList: SeriesData[]) {
|
||||
onDataReceived(dataList: DataFrame[]) {
|
||||
this.lastQueryError = undefined;
|
||||
this.lastQuery = '';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user