From f41e4e87f27120d96c0766b1a5a2e4bfc9566300 Mon Sep 17 00:00:00 2001 From: Lucas Koehler Date: Fri, 10 Jan 2025 16:06:29 +0100 Subject: [PATCH] Extend testing page with getting session performance data --- node/testing-page/src/App.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/node/testing-page/src/App.tsx b/node/testing-page/src/App.tsx index bc4a26cd..ffd9a2e8 100644 --- a/node/testing-page/src/App.tsx +++ b/node/testing-page/src/App.tsx @@ -12,7 +12,8 @@ import { WorkspaceDeletionRequest, WorkspaceListRequest, PingRequest, - LaunchRequest + LaunchRequest, + SessionPerformanceRequest } from '@eclipse-theiacloud/common'; const KEYCLOAK_CONFIG: KeycloakConfig = { @@ -159,6 +160,14 @@ function App() { }; return TheiaCloud.Session.stopSession(request, generateRequestOptions(accessToken)); }; + const reportSessionPerformance = (user: string, accessToken?: string) => { + const request: SessionPerformanceRequest = { + appId: APP_ID, + sessionName: resourceName, + serviceUrl: SERVICE_URL + }; + return TheiaCloud.Session.getSessionPerformance(request, generateRequestOptions(accessToken)); + }; // App definition requests const listAppDefinitions = (user: string, accessToken?: string) => { @@ -197,6 +206,7 @@ function App() { +