Former-commit-id: 7a02b3ac98c0e725bf0ea601112067dc9903e36c
This commit is contained in:
zhangwei 2024-04-19 16:54:52 +08:00
parent 56851224ad
commit 8ea6d19eb4
1 changed files with 23 additions and 3 deletions

View File

@ -82,6 +82,26 @@ type Region struct {
RunningJobs int64 `json:"runningJobs"`
}
type GeneralTaskReq struct {
Name string `json:"name"`
ComputeType string `json:"computeType"`
TemplateId string `json:"templateId"`
AdapterId string `json:"adapterId"`
ClusterIds []string `json:"clusterIds"`
Strategy Strategy `json:"strategy"`
ReqBody []string `json:"reqBody"`
}
type Strategy struct {
Name string `json:"name"`
StaticWeightList []StaticWeightList `json:"staticWeightList"`
}
type StaticWeightList struct {
ClusterName string `json:"clusterName"`
Weight int `json:"weight"`
}
type DeleteTaskReq struct {
Id int64 `path:"id"`
}
@ -1116,9 +1136,9 @@ type HpcResourceReq struct {
}
type HpcResourceResp struct {
Code int32 `json:"code"`
Msg string `json:"msg"`
Data HPCResource `json:"data"`
Code int32 `json:"code"`
Msg string `json:"msg"`
HPCResource HPCResource `json:"hpcResource"`
}
type HPCResource struct {