Zabbix API: add types

This commit is contained in:
Alexander Zobnin
2020-05-18 11:37:22 +03:00
parent a3f45f1bb8
commit d7a96f06ee
6 changed files with 83 additions and 41 deletions

View File

@@ -165,6 +165,8 @@ export class ZabbixDatasource {
return this.queryNumericData(target, timeRange, useTrends, options);
} else if (target.queryType === c.MODE_TEXT) {
return this.queryTextData(target, timeRange);
} else {
return [];
}
} else if (target.queryType === c.MODE_ITEMID) {
// Item ID query