graphs: cpu live graphs

This commit is contained in:
Girish Ramakrishnan
2025-05-23 11:40:25 +02:00
parent 94681fd47d
commit f3087773e3
2 changed files with 44 additions and 15 deletions
+2 -2
View File
@@ -94,8 +94,8 @@ function create() {
if (error || result.status !== 200) return [error || result];
return [null, result.body];
},
async getMetricStream() {
return new EventSource(`${API_ORIGIN}/api/v1/system/metricstream?access_token=${accessToken}&intervalMsecs=500`);
async getMetricStream(intervalMsecs) {
return new EventSource(`${API_ORIGIN}/api/v1/system/metricstream?access_token=${accessToken}&intervalMsecs=${intervalMsecs}`);
}
};
}