Browse Source

updated DeployTask apis

Former-commit-id: a02581d9d1
pull/278/head
tzwang 1 year ago
parent
commit
4bd778ba3a
2 changed files with 17 additions and 16 deletions
  1. +2
    -2
      desc/pcm.api
  2. +15
    -14
      pkg/models/aiinferdeployinstancemodel_gen.go

+ 2
- 2
desc/pcm.api View File

@@ -961,10 +961,10 @@ service pcm {
get /inference/taskStat (InferenceTaskStatReq) returns (InferenceTaskStatResp)

@handler StartAllByDeployTaskId
post /inference/startAllById (StartAllByDeployTaskIdReq) returns (StartAllByDeployTaskIdResp)
post /inference/startAll (StartAllByDeployTaskIdReq) returns (StartAllByDeployTaskIdResp)

@handler StopAllByDeployTaskId
post /inference/stopAllById (StopAllByDeployTaskIdReq) returns (StopAllByDeployTaskIdResp)
post /inference/stopAll (StopAllByDeployTaskIdReq) returns (StopAllByDeployTaskIdResp)

@handler GetDeployTasks
get /inference/getDeployTasks (GetDeployTasksReq) returns (GetDeployTasksResp)


+ 15
- 14
pkg/models/aiinferdeployinstancemodel_gen.go View File

@@ -35,20 +35,21 @@ type (
}

AiInferDeployInstance struct {
Id int64 `db:"id" json:"id,string"`
InstanceId string `db:"instance_id" json:"instanceId"`
InstanceName string `db:"instance_name" json:"instanceName"`
AdapterId int64 `db:"adapter_id" json:"adapterId,string"`
AdapterName string `db:"adapter_name" json:"adapterName" `
ClusterId int64 `db:"cluster_id" json:"clusterId,string"`
ClusterName string `db:"cluster_name" json:"clusterName"`
ModelName string `db:"model_name" json:"modelName"`
ModelType string `db:"model_type" json:"modelType"`
InferCard string `db:"infer_card" json:"inferCard"`
Status string `db:"status" json:"status"`
CreateTime string `db:"create_time" json:"createTime"`
UpdateTime string `db:"update_time" json:"updateTime"`
ClusterType string `db:"cluster_type" json:"clusterType"`
Id int64 `db:"id" json:"id,string"`
DeployInstanceTaskId int64 `db:"deploy_instance_task_id" json:"deployTaskId,string"`
InstanceId string `db:"instance_id" json:"instanceId"`
InstanceName string `db:"instance_name" json:"instanceName"`
AdapterId int64 `db:"adapter_id" json:"adapterId,string"`
AdapterName string `db:"adapter_name" json:"adapterName" `
ClusterId int64 `db:"cluster_id" json:"clusterId,string"`
ClusterName string `db:"cluster_name" json:"clusterName"`
ModelName string `db:"model_name" json:"modelName"`
ModelType string `db:"model_type" json:"modelType"`
InferCard string `db:"infer_card" json:"inferCard"`
Status string `db:"status" json:"status"`
CreateTime string `db:"create_time" json:"createTime"`
UpdateTime string `db:"update_time" json:"updateTime"`
ClusterType string `db:"cluster_type" json:"clusterType"`
}
)



Loading…
Cancel
Save