feat: add host system logs (#13285)

This commit is contained in:
ssongliu
2026-07-17 17:54:36 +08:00
committed by GitHub
parent d7723fd42a
commit b02cdbc5f9
26 changed files with 1283 additions and 2 deletions
+10
View File
@@ -21,6 +21,16 @@ export const getSystemFiles = (node?: string) => {
return http.get<Array<string>>(`/logs/system/files${params}`);
};
export const readSystemLogs = (params: Log.SystemLogSearch, node?: string) => {
const query = node ? `?operateNode=${node}` : '';
return http.post<Log.SystemLog>(`/logs/system/read${query}`, params);
};
export const listRunningServices = (node?: string) => {
const query = node ? `?operateNode=${node}` : '';
return http.get<string[]>(`/logs/system/services${query}`);
};
export const cleanLogs = (param: Log.CleanLog) => {
return http.post(`/core/logs/clean`, param);
};