Skip to content
Snippets Groups Projects
Commit 549ce476 authored by Imre Toth's avatar Imre Toth
Browse files

ICSHWI-10933: Fixing missing time interval param for logs

parent ac29d805
No related branches found
No related tags found
3 merge requests!270Merging develop branch to master in order to create RC,!226ICSHWI-10933: Fixing missing time interval param for logs,!222Fixing missing time interval parameter for logs
Pipeline #123883 passed
......@@ -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 });
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment