Use explicit app graphs api
This commit is contained in:
@@ -1797,6 +1797,15 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.getAppGraphs = function (appId, fromMinutes, callback) {
|
||||
get('/api/v1/apps/' + appId + '/graphs', { params: { fromMinutes: fromMinutes } }, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 200) return callback(new ClientError(status, data));
|
||||
|
||||
callback(null, data);
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.graphs = function (targets, from, options, callback) {
|
||||
// if we have a lot of apps, targets can be very large. node will just disconnect since it exceeds header size
|
||||
var size = 10, chunks = [];
|
||||
|
||||
Reference in New Issue
Block a user