added deployinstance stat proto
Former-commit-id: df080e5be01aea84f11b4b9b28e2e3937f862806
This commit is contained in:
parent
a2f99bf2d0
commit
9280c2f27a
|
@ -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*************************/
|
||||
|
|
|
@ -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"`
|
||||
}
|
||||
)
|
||||
|
|
10
desc/pcm.api
10
desc/pcm.api
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue