AIManage/src/api/log/index.js

46 lines
887 B
JavaScript
Raw Normal View History

2024-07-06 00:13:43 +08:00
import request from "@/utils/request";
const serverState=()=>{
return request({
url: "/logs/server_state",
method: "get"
});
}
2024-07-06 22:58:31 +08:00
//获取用户操作状态通知
const userOperationNotice=()=>{
return request({
url: "/logs/user_operation/notice",
method: "get"
});
}
2024-07-18 00:13:00 +08:00
2024-08-20 20:39:44 +08:00
const userRunning=()=>{
return request({
url:`/logs/user_operation/running`,
method:"get"
})
}
2024-07-18 00:13:00 +08:00
//获取用户操作详情
const userOperation=(operation_id)=>{
return request({
url: `/logs/user_operation/${operation_id}`,
method: "get"
});
}
2024-07-19 00:41:51 +08:00
//获取编译部署日志
const compileDeploy=(operation_id)=>{
return request({
url: `/logs/compile_deploy/${operation_id}`,
method: "get"
});
}
2024-07-06 00:13:43 +08:00
export default {
2024-07-06 22:58:31 +08:00
serverState,
2024-07-18 00:13:00 +08:00
userOperationNotice,
2024-07-19 00:41:51 +08:00
userOperation,
2024-08-20 20:39:44 +08:00
compileDeploy,
userRunning
2024-07-19 00:41:51 +08:00
2024-07-06 00:13:43 +08:00
}