|
|
|
@ -12,7 +12,7 @@ import { DataPuller } from '../services/data_puller';
|
|
|
|
|
import { getGrafanaUrl } from '../utils/grafana'; |
|
|
|
|
import { cutSegmentWithSegments } from '../utils/segments'; |
|
|
|
|
|
|
|
|
|
import { queryByMetric, GrafanaUnavailable, DatasourceUnavailable } from 'grafana-datasource-kit'; |
|
|
|
|
import { queryByMetric, GrafanaUnavailable, DatasourceUnavailable } from '@corpglory/tsdb-kit'; |
|
|
|
|
|
|
|
|
|
import * as _ from 'lodash'; |
|
|
|
|
|
|
|
|
@ -20,7 +20,7 @@ const SECONDS_IN_MINUTE = 60;
|
|
|
|
|
|
|
|
|
|
type TaskResult = any; |
|
|
|
|
type DetectionResult = any; |
|
|
|
|
// TODO: move TableTimeSeries to grafana-datasource-kit
|
|
|
|
|
// TODO: move TableTimeSeries to @corpglory/tsdb-kit
|
|
|
|
|
// TODO: TableTimeSeries is bad name
|
|
|
|
|
type TableTimeSeries = { values: [number, number][], columns: string[] }; |
|
|
|
|
// TODO: move type definitions somewhere
|
|
|
|
|