added deployinstance stat proto

Former-commit-id: df080e5be01aea84f11b4b9b28e2e3937f862806
This commit is contained in:
tzwang 2024-07-25 10:07:43 +08:00
parent a2f99bf2d0
commit 9280c2f27a
3 changed files with 30 additions and 0 deletions

View File

@ -1738,6 +1738,11 @@ PayloadCreateTrainJob{
Card string `json:"card,optional"`
TimeElapsed int32 `json:"elapsed,optional"`
}
TrainingTaskStatResp {
Running string `json:"running"`
Total string `json:"total"`
}
)
/******************create TrainIngJob end*************************/

View File

@ -103,4 +103,19 @@ type (
StopDeployInstanceResp {
}
DeployInstanceStatReq {
}
DeployInstanceStatResp {
Running string `json:"running"`
Total string `json:"total"`
}
InferenceTaskStatReq {}
InferenceTaskStatResp {
Running string `json:"running"`
Total string `json:"total"`
}
)

View File

@ -244,6 +244,10 @@ service pcm {
group: ai
)
service pcm {
@doc "训练任务统计"
@handler trainingTaskStatHandler
get /ai/trainingTaskStat returns (TrainingTaskStatResp)
@doc "智算中心概览"
@handler getCenterOverviewHandler
get /ai/getCenterOverview returns (CenterOverviewResp)
@ -949,6 +953,12 @@ service pcm {
@handler StopDeployInstanceHandler
post /inference/stopDeployInstance (StopDeployInstanceReq) returns (StopDeployInstanceResp)
@handler DeployInstanceStatHandler
get /inference/deployInstanceStat (DeployInstanceStatReq) returns (DeployInstanceStatResp)
@handler InferenceTaskStatHandler
get /inference/taskStat (InferenceTaskStatReq) returns (InferenceTaskStatResp)
}
@server(