rename /graphs route to /metrics

This commit is contained in:
Girish Ramakrishnan
2025-05-21 16:26:36 +02:00
parent 3770f07720
commit 8779de448d
10 changed files with 31 additions and 29 deletions
+2 -2
View File
@@ -83,10 +83,10 @@ function create() {
if (error || result.status !== 201) return [error || result];
return [null, result.body.taskId];
},
async graphs(options) {
async getMetrics(options) {
let error, result;
try {
result = await fetcher.get(`${API_ORIGIN}/api/v1/system/graphs`, { fromSecs: options.fromSecs, intervalSecs: options.intervalSecs, access_token: accessToken });
result = await fetcher.get(`${API_ORIGIN}/api/v1/system/metrics`, { fromSecs: options.fromSecs, intervalSecs: options.intervalSecs, access_token: accessToken });
} catch (e) {
error = e;
}