|
|
@@ -6,7 +6,8 @@ import { PanelCtrl } from 'app/features/panel/panel_ctrl';
|
|
|
import { getExploreUrl } from 'app/core/utils/explore';
|
|
|
import { applyPanelTimeOverrides, getResolution } from 'app/features/dashboard/utils/panel';
|
|
|
import { ContextSrv } from 'app/core/services/context_srv';
|
|
|
-import { toLegacyResponseData, isSeriesData } from '@grafana/ui';
|
|
|
+import { toLegacyResponseData, isSeriesData, LegacyResponseData, TimeRange } from '@grafana/ui';
|
|
|
+import { Unsubscribable } from 'rxjs';
|
|
|
|
|
|
class MetricsPanelCtrl extends PanelCtrl {
|
|
|
scope: any;
|
|
|
@@ -17,15 +18,15 @@ class MetricsPanelCtrl extends PanelCtrl {
|
|
|
datasourceSrv: any;
|
|
|
timeSrv: any;
|
|
|
templateSrv: any;
|
|
|
- range: any;
|
|
|
+ range: TimeRange;
|
|
|
interval: any;
|
|
|
intervalMs: any;
|
|
|
resolution: any;
|
|
|
- timeInfo: any;
|
|
|
+ timeInfo?: string;
|
|
|
skipDataOnInit: boolean;
|
|
|
dataStream: any;
|
|
|
- dataSubscription: any;
|
|
|
- dataList: any;
|
|
|
+ dataSubscription?: Unsubscribable;
|
|
|
+ dataList: LegacyResponseData[];
|
|
|
|
|
|
constructor($scope, $injector) {
|
|
|
super($scope, $injector);
|