rozetko
2 years ago
20 changed files with 31 additions and 31 deletions
@ -1,10 +1,10 @@
|
||||
import { InfluxdbMetric } from './influxdb_metric'; |
||||
import { GraphiteMetric } from './graphite_metric'; |
||||
import { DatasourceConnector, DatasourceType } from './metric'; |
||||
import { PrometheusMetric } from './prometheus_metric'; |
||||
import { PostgresMetric } from './postgres_metric'; |
||||
import { ElasticsearchMetric } from './elasticsearch_metric'; |
||||
import { MysqlMetric } from './mysql_metric'; |
||||
import { InfluxdbMetric } from './influxdb'; |
||||
import { GraphiteMetric } from './graphite'; |
||||
import { DatasourceConnector, DatasourceType } from '.'; |
||||
import { PrometheusMetric } from './prometheus'; |
||||
import { PostgresMetric } from './postgres'; |
||||
import { ElasticsearchMetric } from './elasticsearch'; |
||||
import { MysqlMetric } from './mysql'; |
||||
|
||||
import { QueryConfig } from '../models/query_config'; |
||||
|
@ -1,4 +1,4 @@
|
||||
import { DatasourceConnector, Datasource, DatasourceQuery, DataTable } from './metric'; |
||||
import { DatasourceConnector, Datasource, DatasourceQuery, DataTable } from '.'; |
||||
import { TsdbKitError } from '../types'; |
||||
|
||||
import * as _ from 'lodash'; |
@ -1,4 +1,4 @@
|
||||
import { DatasourceConnector, Datasource, DatasourceQuery, DataTable } from './metric'; |
||||
import { DatasourceConnector, Datasource, DatasourceQuery, DataTable } from '.'; |
||||
|
||||
import * as _ from 'lodash'; |
||||
|
@ -1,4 +1,4 @@
|
||||
import { DatasourceConnector, Datasource, DatasourceQuery, DataTable } from './metric'; |
||||
import { DatasourceConnector, Datasource, DatasourceQuery, DataTable } from '.'; |
||||
import { processSQLLimitOffset } from './utils'; |
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { SqlMetric } from './sql_metric'; |
||||
import { SqlMetric } from './sql'; |
||||
|
||||
export class MysqlMetric extends SqlMetric { |
||||
|
@ -1,4 +1,4 @@
|
||||
import { SqlMetric } from './sql_metric'; |
||||
import { SqlMetric } from './sql'; |
||||
|
||||
export class PostgresMetric extends SqlMetric { |
||||
|
@ -1,4 +1,4 @@
|
||||
import { DatasourceConnector, Datasource, DatasourceQuery, DataTable } from './metric'; |
||||
import { DatasourceConnector, Datasource, DatasourceQuery, DataTable } from '.'; |
||||
|
||||
|
||||
const QUERY_TIME_REGEX = /\&start=[^\&]*\&end=[^\&]*\&/; |
@ -1,9 +1,9 @@
|
||||
import { DatasourceConnector, Datasource, DatasourceQuery, DataTable } from './metric'; |
||||
import { DatasourceConnector, Datasource, DatasourceQuery, DataTable } from '.'; |
||||
import { processSQLLimitOffset } from './utils'; |
||||
|
||||
import * as _ from 'lodash'; |
||||
|
||||
// for 26.09.2020 it works for all SQL datasources
|
||||
// as of 26.09.2020, it works for all SQL datasources
|
||||
export class SqlMetric extends DatasourceConnector { |
||||
private _targetName: string; //save first target name, while multi metric not implemented
|
||||
private url: string = 'api/tsdb/query'; |
Loading…
Reference in new issue