Add options to graphs
This commit is contained in:
@@ -1215,7 +1215,7 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.graphs = function (targets, from, callback) {
|
||||
Client.prototype.graphs = function (targets, from, options, callback) {
|
||||
var config = {
|
||||
params: {
|
||||
target: targets,
|
||||
@@ -1224,6 +1224,8 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
|
||||
}
|
||||
};
|
||||
|
||||
if (options.noNullPoints) config.params.noNullPoints = true;
|
||||
|
||||
get('/api/v1/cloudron/graphs', config, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 200) return callback(new ClientError(status, data));
|
||||
|
||||
Reference in New Issue
Block a user