Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
# Conflicts: # api/desc/core/pcm-core.api Former-commit-id: e6ab78097d94be6b3454fdd06ee3539c0eb92e98
This commit is contained in:
commit
4a1bdc268e
|
@ -41,7 +41,7 @@ type (
|
|||
Message string `json:"message"`
|
||||
Data HomeOverviewData `json:"data"`
|
||||
}
|
||||
HomeOverviewData {
|
||||
HomeOverviewData{
|
||||
AdaptSum int64 `json:"adaptSum"`
|
||||
ClusterSum int64 `json:"clusterSum"`
|
||||
StorageSum float32 `json:"storageSum"`
|
||||
|
@ -92,6 +92,7 @@ type (
|
|||
Id int `json:"id"`
|
||||
PublicNetworkName string `json:"public_netWork_name"`
|
||||
}
|
||||
|
||||
)
|
||||
|
||||
type remoteResp {
|
||||
|
@ -175,6 +176,7 @@ type (
|
|||
AdapterName string `json:"adapterName"`
|
||||
PodName string `json:"podName"`
|
||||
stream bool `json:"stream"`
|
||||
|
||||
}
|
||||
)
|
||||
|
||||
|
@ -265,7 +267,7 @@ type (
|
|||
Replica int32 `json:"replica"`
|
||||
Msg string `json:"msg"`
|
||||
}
|
||||
VmTask {
|
||||
VmTask{
|
||||
Id string `json:"id" copier:"Id"`
|
||||
Links []VmLinks `json:"links" copier:"Links"`
|
||||
OSDCFDiskConfig string `json:"OS_DCF_diskConfig" copier:"OSDCFDiskConfig"`
|
||||
|
@ -276,41 +278,41 @@ type (
|
|||
Href string `json:"href " copier:"Href"`
|
||||
Rel string `json:"rel" copier:"Rel"`
|
||||
}
|
||||
// commitVmTaskReq {
|
||||
// Name string `json:"name"`
|
||||
// NsID string `json:"nsID"`
|
||||
// Replicas int64 `json:"replicas,optional"`
|
||||
// MatchLabels map[string]string `json:"matchLabels,optional"`
|
||||
// AdapterId string `json:"adapterId,optional"`
|
||||
// ClusterType string `json:"clusterType,optional"`
|
||||
// //Virtual Machine Section
|
||||
// CreateMulServer []CreateMulDomainServer `json:"createMulServer,optional"`
|
||||
// }
|
||||
// CreateMulDomainServer {
|
||||
// Platform string `json:"platform,optional"`
|
||||
// Name string `json:"name,optional"`
|
||||
// Min_count int64 `json:"min_count,optional"`
|
||||
// ImageRef string `json:"imageRef,optional"`
|
||||
// FlavorRef string `json:"flavorRef,optional"`
|
||||
// Uuid string `json:"uuid,optional"`
|
||||
// }
|
||||
// commitVmTaskResp {
|
||||
// // VmTask []VmTask `json:"vmTask" copier:"VmTask"`
|
||||
// TaskId int64 `json:"taskId"`
|
||||
// Code int32 `json:"code"`
|
||||
// Msg string `json:"msg"`
|
||||
// }
|
||||
// VmTask {
|
||||
// Id string `json:"id" copier:"Id"`
|
||||
// Links []VmLinks `json:"links" copier:"Links"`
|
||||
// OSDCFDiskConfig string `json:"OS_DCF_diskConfig" copier:"OSDCFDiskConfig"`
|
||||
// SecurityGroups []VmSecurity_groups_server `json:"security_groups" copier:"SecurityGroups"`
|
||||
// AdminPass string `json:"adminPass" copier:"AdminPass"`
|
||||
// }
|
||||
// VmLinks {
|
||||
// Href string `json:"href " copier:"Href"`
|
||||
// Rel string `json:"rel" copier:"Rel"`
|
||||
// }
|
||||
// commitVmTaskReq {
|
||||
// Name string `json:"name"`
|
||||
// NsID string `json:"nsID"`
|
||||
// Replicas int64 `json:"replicas,optional"`
|
||||
// MatchLabels map[string]string `json:"matchLabels,optional"`
|
||||
// AdapterId string `json:"adapterId,optional"`
|
||||
// ClusterType string `json:"clusterType,optional"`
|
||||
// //Virtual Machine Section
|
||||
// CreateMulServer []CreateMulDomainServer `json:"createMulServer,optional"`
|
||||
// }
|
||||
// CreateMulDomainServer {
|
||||
// Platform string `json:"platform,optional"`
|
||||
// Name string `json:"name,optional"`
|
||||
// Min_count int64 `json:"min_count,optional"`
|
||||
// ImageRef string `json:"imageRef,optional"`
|
||||
// FlavorRef string `json:"flavorRef,optional"`
|
||||
// Uuid string `json:"uuid,optional"`
|
||||
// }
|
||||
// commitVmTaskResp {
|
||||
// // VmTask []VmTask `json:"vmTask" copier:"VmTask"`
|
||||
// TaskId int64 `json:"taskId"`
|
||||
// Code int32 `json:"code"`
|
||||
// Msg string `json:"msg"`
|
||||
// }
|
||||
// VmTask {
|
||||
// Id string `json:"id" copier:"Id"`
|
||||
// Links []VmLinks `json:"links" copier:"Links"`
|
||||
// OSDCFDiskConfig string `json:"OS_DCF_diskConfig" copier:"OSDCFDiskConfig"`
|
||||
// SecurityGroups []VmSecurity_groups_server `json:"security_groups" copier:"SecurityGroups"`
|
||||
// AdminPass string `json:"adminPass" copier:"AdminPass"`
|
||||
// }
|
||||
// VmLinks {
|
||||
// Href string `json:"href " copier:"Href"`
|
||||
// Rel string `json:"rel" copier:"Rel"`
|
||||
// }
|
||||
|
||||
VmSecurity_groups_server {
|
||||
Name string `json:"name" copier:"Name"`
|
||||
|
@ -514,32 +516,6 @@ type (
|
|||
}
|
||||
)
|
||||
|
||||
type ScreenChartResp {
|
||||
ComputingPower []int `json:"computingPower"`
|
||||
CpuAvg []int `json:"cpuAvg"`
|
||||
CpuLoad []int `json:"cpuLoad"`
|
||||
MemoryLoad []int `json:"memoryLoad"`
|
||||
MemoryAvg []int `json:"memoryAvg"`
|
||||
CenterName string `json:"centerName"`
|
||||
}
|
||||
|
||||
|
||||
|
||||
type ScreenInfoResp {
|
||||
StorageTotal float64 `json:"storageTotal"`
|
||||
StorageAvail float64 `json:"storageAvail"`
|
||||
ApiDelay string `json:"apiDelay"`
|
||||
SchedulerTimes int `json:"schedulerTimes"`
|
||||
SchedulerErr int `json:"schedulerErr"`
|
||||
ApiTimes string `json:"apiTimes"`
|
||||
CenterCount int `json:"centerCount"`
|
||||
ComputingPower float64 `json:"computingPower"`
|
||||
ClusterCount int `json:"clusterCount"`
|
||||
RunningCount int `json:"runningCount"`
|
||||
CardCount int `json:"cardCount"`
|
||||
RunningTime int `json:"runningTime"`
|
||||
}
|
||||
|
||||
type (
|
||||
DomainResourceResp {
|
||||
TotalCount int `json:"totalCount"`
|
||||
|
@ -1060,7 +1036,7 @@ type (
|
|||
PageNum int `json:"pageNum,omitempty"`
|
||||
PageSize int `json:"pageSize,omitempty"`
|
||||
}
|
||||
ListResult {
|
||||
ListResult{
|
||||
List interface{} `json:"list,omitempty"`
|
||||
}
|
||||
)
|
||||
|
@ -1209,8 +1185,7 @@ type (
|
|||
TaskName string `json:"taskName"`
|
||||
Incident string `json:"incident"`
|
||||
}
|
||||
ListNoticeReq struct {
|
||||
}
|
||||
ListNoticeReq struct{}
|
||||
|
||||
ListNoticeResp {
|
||||
Code int64 `json:"code"`
|
||||
|
@ -1269,9 +1244,11 @@ type (
|
|||
SynergyStatus int64 `json:"synergyStatus"`
|
||||
ClusterInfos []*ClusterInfo `json:"clusterInfos"`
|
||||
SubTaskInfos []*SubTaskInfo `json:"subTaskInfos"`
|
||||
TaskTypeDict string `json:"taskTypeDict"`
|
||||
AdapterTypeDict string `json:"adapterTypeDict"`
|
||||
}
|
||||
|
||||
SubTaskInfo {
|
||||
SubTaskInfo{
|
||||
Id string `json:"id" db:"id"`
|
||||
Name string `json:"name" db:"name"`
|
||||
ClusterId string `json:"clusterId" db:"cluster_id"`
|
||||
|
|
|
@ -745,7 +745,7 @@ func (s *ShuguangAi) GetImageInferUrl(ctx context.Context, option *option.InferO
|
|||
}
|
||||
imageUrl := &collector.ImageInferUrl{
|
||||
Url: urlResp.Url,
|
||||
Card: option.ComputeCard,
|
||||
Card: "dcu",
|
||||
}
|
||||
imageUrls = append(imageUrls, imageUrl)
|
||||
|
||||
|
|
|
@ -1191,6 +1191,8 @@ type TaskDetailsResp struct {
|
|||
SynergyStatus int64 `json:"synergyStatus"`
|
||||
ClusterInfos []*ClusterInfo `json:"clusterInfos"`
|
||||
SubTaskInfos []*SubTaskInfo `json:"subTaskInfos"`
|
||||
TaskTypeDict string `json:"taskTypeDict"`
|
||||
AdapterTypeDict string `json:"adapterTypeDict"`
|
||||
}
|
||||
|
||||
type SubTaskInfo struct {
|
||||
|
|
Loading…
Reference in New Issue