mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
restored influxdb listSeries function
This commit is contained in:
@@ -54,6 +54,18 @@ function (angular, _, kbn) {
|
||||
|
||||
};
|
||||
|
||||
InfluxDatasource.prototype.listSeries = function() {
|
||||
return this.doInfluxRequest('list series').then(function(results) {
|
||||
if (!results.data) {
|
||||
return [];
|
||||
}
|
||||
|
||||
return _.map(results.data, function(series) {
|
||||
return series.name;
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
InfluxDatasource.prototype.doInfluxRequest = function(query) {
|
||||
var params = {
|
||||
u: this.username,
|
||||
|
||||
Reference in New Issue
Block a user