metrics: fix up app graphs after api changes

This commit is contained in:
Girish Ramakrishnan
2025-07-07 20:09:09 +02:00
parent 4cf1739604
commit 6b2e98b9be
5 changed files with 58 additions and 39 deletions
+1 -1
View File
@@ -1085,7 +1085,7 @@ async function getMetrics(req, res, next) {
async function getMetricStream(req, res, next) {
if (req.headers.accept !== 'text/event-stream') return next(new HttpError(400, 'This API call requires EventStream'));
const [error, metricStream] = await safe(metrics.getStream(req.resources.app.id, { appIds: [req.resources.app.id] }));
const [error, metricStream] = await safe(metrics.getStream({ appIds: [req.resources.app.id] }));
if (error) return next(BoxError.toHttpError(error));
res.writeHead(200, {