From 549ce4764e34a798f66b2f7124b01e7f2e713cfd Mon Sep 17 00:00:00 2001 From: Imre Toth <imre.toth@ess.eu> Date: Wed, 16 Nov 2022 16:43:17 +0100 Subject: [PATCH] ICSHWI-10933: Fixing missing time interval param for logs --- src/api/SwaggerApi.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/SwaggerApi.js b/src/api/SwaggerApi.js index 95b642a1..da76f5ee 100644 --- a/src/api/SwaggerApi.js +++ b/src/api/SwaggerApi.js @@ -680,13 +680,13 @@ export function unpackLokilog(logData) { export function useLokiSysLog() { const api = useContext(apiContext); - const method = useCallAndUnpack((hostName, timeRange) => api.apis.Monitoring.fetchSyslogLines({ host_name: hostName, timeRange: timeRange }), unpackLokilog) + const method = useCallAndUnpack((hostName, timeRange) => api.apis.Monitoring.fetchSyslogLines({ host_name: hostName, time_range: timeRange }), unpackLokilog) return useAsync({ fcn: method, call: false }); } export function useLokiProcServLog() { const api = useContext(apiContext); - const method = useCallAndUnpack((hostName, iocName, timeRange) => api.apis.Monitoring.fetchProcServLogLines({ host_name: hostName, ioc_name: iocName, timeRange: timeRange }), unpackLokilog) + const method = useCallAndUnpack((hostName, iocName, timeRange) => api.apis.Monitoring.fetchProcServLogLines({ host_name: hostName, ioc_name: iocName, time_range: timeRange }), unpackLokilog) return useAsync({ fcn: method, call: false }); } -- GitLab