diff --git a/src/api/admin/kvmService.js b/src/api/admin/kvmService.js
index f9b6dcf..b0fd376 100644
--- a/src/api/admin/kvmService.js
+++ b/src/api/admin/kvmService.js
@@ -411,6 +411,16 @@ export const getVmDetail = (params) => {
return http2.get('/api/v1/admin/server/host_service/point/vm/detail', { params })
}
+export const getVmResourceThresholdPolicy = (params) => {
+ return http2.get('/api/v1/admin/server/host_service/point/vm/resource_threshold_policy', { params })
+}
+
+export const updateVmResourceThresholdPolicy = (data) => {
+ return http2.post('/api/v1/admin/server/host_service/point/vm/resource_threshold_policy/update', data, {
+ headers: { 'Content-Type': 'multipart/form-data' }
+ })
+}
+
/** 获取虚拟机状态 */
export const getVmStatus = (params) => {
return http2.get('/api/v1/admin/server/host_service/point/vm/status', { params })
@@ -547,6 +557,21 @@ export const abortDataMigrate = (data) => {
})
}
+/** 获取虚拟机迁移记录列表 */
+export const getVmMigrationRecordList = (params) => {
+ return http2.get('/api/v1/admin/server/host_service/point/vm/migration_record/list', { params })
+}
+
+/** 获取虚拟机迁移记录详情 */
+export const getVmMigrationRecordDetail = (params) => {
+ return http2.get('/api/v1/admin/server/host_service/point/vm/migration_record/detail', { params })
+}
+
+/** 获取虚拟机迁移链 */
+export const getVmMigrationRecordChain = (params) => {
+ return http2.get('/api/v1/admin/server/host_service/point/vm/migration_record/chain', { params })
+}
+
/**
* ================================
* 主控服务接口 - 安全组管理
diff --git a/src/router/index.js b/src/router/index.js
index 656d932..241e24b 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -556,6 +556,14 @@ const routes = [
title: 'VNC指令管理'
}
},
+ {
+ path: 'migration-record',
+ name: 'VmMigrationRecord',
+ component: () => import('../views/virtualization/VmMigrationRecord.vue'),
+ meta: {
+ title: '虚拟机迁移记录'
+ }
+ },
{
path: 'host-detail',
name: 'VirtHostDetail',
diff --git a/src/views/user-vm/UserVmDetail.vue b/src/views/user-vm/UserVmDetail.vue
index 086f220..86d986f 100644
--- a/src/views/user-vm/UserVmDetail.vue
+++ b/src/views/user-vm/UserVmDetail.vue
@@ -6,7 +6,10 @@