influx: support retention policy for long-term stored data
This commit is contained in:
@@ -31,6 +31,7 @@ export class ZabbixDSConfigController {
|
||||
this.dbDataSources = this.getSupportedDBDataSources();
|
||||
this.zabbixVersions = _.cloneDeep(zabbixVersions);
|
||||
this.autoDetectZabbixVersion();
|
||||
console.log(this.dbDataSources);
|
||||
}
|
||||
|
||||
getSupportedDBDataSources() {
|
||||
@@ -40,6 +41,12 @@ export class ZabbixDSConfigController {
|
||||
});
|
||||
}
|
||||
|
||||
getCurrentDatasourceType() {
|
||||
const dsId = this.current.jsonData.dbConnectionDatasourceId;
|
||||
const currentDs = _.find(this.dbDataSources, { 'id': dsId });
|
||||
return currentDs ? currentDs.type : null;
|
||||
}
|
||||
|
||||
autoDetectZabbixVersion() {
|
||||
if (!this.current.id) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user