mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
use default min interval of 1m for sql datasources
This commit is contained in:
parent
71bfefa8fb
commit
df60804937
@ -12,7 +12,7 @@ export class MssqlDatasource {
|
|||||||
this.name = instanceSettings.name;
|
this.name = instanceSettings.name;
|
||||||
this.id = instanceSettings.id;
|
this.id = instanceSettings.id;
|
||||||
this.responseParser = new ResponseParser(this.$q);
|
this.responseParser = new ResponseParser(this.$q);
|
||||||
this.interval = (instanceSettings.jsonData || {}).timeInterval;
|
this.interval = (instanceSettings.jsonData || {}).timeInterval || '1m';
|
||||||
}
|
}
|
||||||
|
|
||||||
interpolateVariable(value, variable) {
|
interpolateVariable(value, variable) {
|
||||||
|
@ -15,7 +15,7 @@ export class MysqlDatasource {
|
|||||||
this.id = instanceSettings.id;
|
this.id = instanceSettings.id;
|
||||||
this.responseParser = new ResponseParser(this.$q);
|
this.responseParser = new ResponseParser(this.$q);
|
||||||
this.queryModel = new MysqlQuery({});
|
this.queryModel = new MysqlQuery({});
|
||||||
this.interval = (instanceSettings.jsonData || {}).timeInterval;
|
this.interval = (instanceSettings.jsonData || {}).timeInterval || '1m';
|
||||||
}
|
}
|
||||||
|
|
||||||
interpolateVariable = (value, variable) => {
|
interpolateVariable = (value, variable) => {
|
||||||
|
@ -17,7 +17,7 @@ export class PostgresDatasource {
|
|||||||
this.jsonData = instanceSettings.jsonData;
|
this.jsonData = instanceSettings.jsonData;
|
||||||
this.responseParser = new ResponseParser(this.$q);
|
this.responseParser = new ResponseParser(this.$q);
|
||||||
this.queryModel = new PostgresQuery({});
|
this.queryModel = new PostgresQuery({});
|
||||||
this.interval = (instanceSettings.jsonData || {}).timeInterval;
|
this.interval = (instanceSettings.jsonData || {}).timeInterval || '1m';
|
||||||
}
|
}
|
||||||
|
|
||||||
interpolateVariable = (value, variable) => {
|
interpolateVariable = (value, variable) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user