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
@@ -391,10 +391,10 @@ function create() {
if (result.status !== 202) return [result];
return [null];
},
async graphs(id, options) {
async getMetrics(id, options) {
let result;
try {
result = await fetcher.get(`${API_ORIGIN}/api/v1/apps/${id}/graphs`, { fromSecs: options.fromSecs, intervalSecs: options.intervalSecs, access_token: accessToken });
result = await fetcher.get(`${API_ORIGIN}/api/v1/apps/${id}/metrics`, { fromSecs: options.fromSecs, intervalSecs: options.intervalSecs, access_token: accessToken });
} catch (e) {
return [e];
}