metrics: add stream api for system info

This commit is contained in:
Girish Ramakrishnan
2025-05-21 17:15:04 +02:00
parent 7e3162d287
commit c0f0084e56
6 changed files with 83 additions and 27 deletions
+3
View File
@@ -94,6 +94,9 @@ 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}`);
}
};
}