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-08-20 23:16:55 +08:00
|
|
|
//获取推理最新的模型推理日志
|
2024-09-15 16:27:31 +08:00
|
|
|
const inferenceTaskLatest=(task_id,DeviceId)=>{
|
2024-08-20 23:16:55 +08:00
|
|
|
return request({
|
2024-09-15 16:27:31 +08:00
|
|
|
url: `/logs/inference/${task_id}/latest?DeviceId=${DeviceId}&LogCount=50`,
|
2024-08-20 23:16:55 +08:00
|
|
|
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,
|
2024-08-20 23:16:55 +08:00
|
|
|
userRunning,
|
|
|
|
inferenceTaskLatest
|
2024-07-19 00:41:51 +08:00
|
|
|
|
2024-07-06 00:13:43 +08:00
|
|
|
}
|