17 lines
796 B
TypeScript
17 lines
796 B
TypeScript
import { defHttp } from '@jeesite/core/utils/http/axios';
|
|
import { useGlobSetting } from '@jeesite/core/hooks/setting';
|
|
import { BasicModel, Page, TreeDataModel, TreeModel } from '@jeesite/core/api/model/baseModel';
|
|
const { adminPath } = useGlobSetting();
|
|
|
|
export interface BizResourceMonitor extends BasicModel<BizResourceMonitor> {
|
|
createTime: string; // 记录时间
|
|
hostName: string; // 服务器主机名
|
|
cpuUsage: number; // CPU使用率
|
|
memoryUsage: number; // 内存使用率
|
|
memoryTotal: number; // 服务器总内存大小
|
|
hourTime: string; // 时间
|
|
hostId: string; // 服务器主机编号
|
|
}
|
|
|
|
export const bizResourceMonitorListAll = (params?: BizResourceMonitor | any) =>
|
|
defHttp.get<BizResourceMonitor[]>({ url: adminPath + '/biz/resourceMonitor/listAll', params }); |