feat(admin): KSM内存去重管理+监控图表增强+额度统计UI重构+流量管理合并 -- 缘由: 后端新增KSM状态/配置接口,监控数据改为绝对值,额度统计需可视化 -- 预期: HostDetail支持KSM查看/启停/调参,内存图表改为绝对值+磁盘IOPS图+流量趋势图,额度统计改为环形进度卡片,流量策略与统计合并为流量管理tab,订单代金券改为非必填,VmManage显示累计流量
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -322,6 +322,18 @@ export const getHostQuotaStats = (params) => {
|
||||
return http2.get('/api/v1/admin/server/host_service/point/host/quota_stats', { params })
|
||||
}
|
||||
|
||||
/** 获取宿主机 KSM 状态 */
|
||||
export const getHostKsmStatus = (params) => {
|
||||
return http2.get('/api/v1/admin/server/host_service/point/host/ksm/status', { params })
|
||||
}
|
||||
|
||||
/** 配置宿主机 KSM */
|
||||
export const configureHostKsm = (data) => {
|
||||
return http2.post('/api/v1/admin/server/host_service/point/host/ksm/configure', data, {
|
||||
headers: { 'Content-Type': 'multipart/form-data' }
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* ================================
|
||||
* 主控服务接口 - 数据卷管理
|
||||
|
||||
Reference in New Issue
Block a user