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"`
|
Message string `json:"message"`
|
||||||
Data HomeOverviewData `json:"data"`
|
Data HomeOverviewData `json:"data"`
|
||||||
}
|
}
|
||||||
HomeOverviewData {
|
HomeOverviewData{
|
||||||
AdaptSum int64 `json:"adaptSum"`
|
AdaptSum int64 `json:"adaptSum"`
|
||||||
ClusterSum int64 `json:"clusterSum"`
|
ClusterSum int64 `json:"clusterSum"`
|
||||||
StorageSum float32 `json:"storageSum"`
|
StorageSum float32 `json:"storageSum"`
|
||||||
|
@ -92,6 +92,7 @@ type (
|
||||||
Id int `json:"id"`
|
Id int `json:"id"`
|
||||||
PublicNetworkName string `json:"public_netWork_name"`
|
PublicNetworkName string `json:"public_netWork_name"`
|
||||||
}
|
}
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type remoteResp {
|
type remoteResp {
|
||||||
|
@ -175,6 +176,7 @@ type (
|
||||||
AdapterName string `json:"adapterName"`
|
AdapterName string `json:"adapterName"`
|
||||||
PodName string `json:"podName"`
|
PodName string `json:"podName"`
|
||||||
stream bool `json:"stream"`
|
stream bool `json:"stream"`
|
||||||
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -265,7 +267,7 @@ type (
|
||||||
Replica int32 `json:"replica"`
|
Replica int32 `json:"replica"`
|
||||||
Msg string `json:"msg"`
|
Msg string `json:"msg"`
|
||||||
}
|
}
|
||||||
VmTask {
|
VmTask{
|
||||||
Id string `json:"id" copier:"Id"`
|
Id string `json:"id" copier:"Id"`
|
||||||
Links []VmLinks `json:"links" copier:"Links"`
|
Links []VmLinks `json:"links" copier:"Links"`
|
||||||
OSDCFDiskConfig string `json:"OS_DCF_diskConfig" copier:"OSDCFDiskConfig"`
|
OSDCFDiskConfig string `json:"OS_DCF_diskConfig" copier:"OSDCFDiskConfig"`
|
||||||
|
@ -276,41 +278,41 @@ type (
|
||||||
Href string `json:"href " copier:"Href"`
|
Href string `json:"href " copier:"Href"`
|
||||||
Rel string `json:"rel" copier:"Rel"`
|
Rel string `json:"rel" copier:"Rel"`
|
||||||
}
|
}
|
||||||
// commitVmTaskReq {
|
// commitVmTaskReq {
|
||||||
// Name string `json:"name"`
|
// Name string `json:"name"`
|
||||||
// NsID string `json:"nsID"`
|
// NsID string `json:"nsID"`
|
||||||
// Replicas int64 `json:"replicas,optional"`
|
// Replicas int64 `json:"replicas,optional"`
|
||||||
// MatchLabels map[string]string `json:"matchLabels,optional"`
|
// MatchLabels map[string]string `json:"matchLabels,optional"`
|
||||||
// AdapterId string `json:"adapterId,optional"`
|
// AdapterId string `json:"adapterId,optional"`
|
||||||
// ClusterType string `json:"clusterType,optional"`
|
// ClusterType string `json:"clusterType,optional"`
|
||||||
// //Virtual Machine Section
|
// //Virtual Machine Section
|
||||||
// CreateMulServer []CreateMulDomainServer `json:"createMulServer,optional"`
|
// CreateMulServer []CreateMulDomainServer `json:"createMulServer,optional"`
|
||||||
// }
|
// }
|
||||||
// CreateMulDomainServer {
|
// CreateMulDomainServer {
|
||||||
// Platform string `json:"platform,optional"`
|
// Platform string `json:"platform,optional"`
|
||||||
// Name string `json:"name,optional"`
|
// Name string `json:"name,optional"`
|
||||||
// Min_count int64 `json:"min_count,optional"`
|
// Min_count int64 `json:"min_count,optional"`
|
||||||
// ImageRef string `json:"imageRef,optional"`
|
// ImageRef string `json:"imageRef,optional"`
|
||||||
// FlavorRef string `json:"flavorRef,optional"`
|
// FlavorRef string `json:"flavorRef,optional"`
|
||||||
// Uuid string `json:"uuid,optional"`
|
// Uuid string `json:"uuid,optional"`
|
||||||
// }
|
// }
|
||||||
// commitVmTaskResp {
|
// commitVmTaskResp {
|
||||||
// // VmTask []VmTask `json:"vmTask" copier:"VmTask"`
|
// // VmTask []VmTask `json:"vmTask" copier:"VmTask"`
|
||||||
// TaskId int64 `json:"taskId"`
|
// TaskId int64 `json:"taskId"`
|
||||||
// Code int32 `json:"code"`
|
// Code int32 `json:"code"`
|
||||||
// Msg string `json:"msg"`
|
// Msg string `json:"msg"`
|
||||||
// }
|
// }
|
||||||
// VmTask {
|
// VmTask {
|
||||||
// Id string `json:"id" copier:"Id"`
|
// Id string `json:"id" copier:"Id"`
|
||||||
// Links []VmLinks `json:"links" copier:"Links"`
|
// Links []VmLinks `json:"links" copier:"Links"`
|
||||||
// OSDCFDiskConfig string `json:"OS_DCF_diskConfig" copier:"OSDCFDiskConfig"`
|
// OSDCFDiskConfig string `json:"OS_DCF_diskConfig" copier:"OSDCFDiskConfig"`
|
||||||
// SecurityGroups []VmSecurity_groups_server `json:"security_groups" copier:"SecurityGroups"`
|
// SecurityGroups []VmSecurity_groups_server `json:"security_groups" copier:"SecurityGroups"`
|
||||||
// AdminPass string `json:"adminPass" copier:"AdminPass"`
|
// AdminPass string `json:"adminPass" copier:"AdminPass"`
|
||||||
// }
|
// }
|
||||||
// VmLinks {
|
// VmLinks {
|
||||||
// Href string `json:"href " copier:"Href"`
|
// Href string `json:"href " copier:"Href"`
|
||||||
// Rel string `json:"rel" copier:"Rel"`
|
// Rel string `json:"rel" copier:"Rel"`
|
||||||
// }
|
// }
|
||||||
|
|
||||||
VmSecurity_groups_server {
|
VmSecurity_groups_server {
|
||||||
Name string `json:"name" copier:"Name"`
|
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 (
|
type (
|
||||||
DomainResourceResp {
|
DomainResourceResp {
|
||||||
TotalCount int `json:"totalCount"`
|
TotalCount int `json:"totalCount"`
|
||||||
|
@ -1060,7 +1036,7 @@ type (
|
||||||
PageNum int `json:"pageNum,omitempty"`
|
PageNum int `json:"pageNum,omitempty"`
|
||||||
PageSize int `json:"pageSize,omitempty"`
|
PageSize int `json:"pageSize,omitempty"`
|
||||||
}
|
}
|
||||||
ListResult {
|
ListResult{
|
||||||
List interface{} `json:"list,omitempty"`
|
List interface{} `json:"list,omitempty"`
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
@ -1209,8 +1185,7 @@ type (
|
||||||
TaskName string `json:"taskName"`
|
TaskName string `json:"taskName"`
|
||||||
Incident string `json:"incident"`
|
Incident string `json:"incident"`
|
||||||
}
|
}
|
||||||
ListNoticeReq struct {
|
ListNoticeReq struct{}
|
||||||
}
|
|
||||||
|
|
||||||
ListNoticeResp {
|
ListNoticeResp {
|
||||||
Code int64 `json:"code"`
|
Code int64 `json:"code"`
|
||||||
|
@ -1269,9 +1244,11 @@ type (
|
||||||
SynergyStatus int64 `json:"synergyStatus"`
|
SynergyStatus int64 `json:"synergyStatus"`
|
||||||
ClusterInfos []*ClusterInfo `json:"clusterInfos"`
|
ClusterInfos []*ClusterInfo `json:"clusterInfos"`
|
||||||
SubTaskInfos []*SubTaskInfo `json:"subTaskInfos"`
|
SubTaskInfos []*SubTaskInfo `json:"subTaskInfos"`
|
||||||
|
TaskTypeDict string `json:"taskTypeDict"`
|
||||||
|
AdapterTypeDict string `json:"adapterTypeDict"`
|
||||||
}
|
}
|
||||||
|
|
||||||
SubTaskInfo {
|
SubTaskInfo{
|
||||||
Id string `json:"id" db:"id"`
|
Id string `json:"id" db:"id"`
|
||||||
Name string `json:"name" db:"name"`
|
Name string `json:"name" db:"name"`
|
||||||
ClusterId string `json:"clusterId" db:"cluster_id"`
|
ClusterId string `json:"clusterId" db:"cluster_id"`
|
||||||
|
|
|
@ -745,7 +745,7 @@ func (s *ShuguangAi) GetImageInferUrl(ctx context.Context, option *option.InferO
|
||||||
}
|
}
|
||||||
imageUrl := &collector.ImageInferUrl{
|
imageUrl := &collector.ImageInferUrl{
|
||||||
Url: urlResp.Url,
|
Url: urlResp.Url,
|
||||||
Card: option.ComputeCard,
|
Card: "dcu",
|
||||||
}
|
}
|
||||||
imageUrls = append(imageUrls, imageUrl)
|
imageUrls = append(imageUrls, imageUrl)
|
||||||
|
|
||||||
|
|
|
@ -1191,6 +1191,8 @@ type TaskDetailsResp struct {
|
||||||
SynergyStatus int64 `json:"synergyStatus"`
|
SynergyStatus int64 `json:"synergyStatus"`
|
||||||
ClusterInfos []*ClusterInfo `json:"clusterInfos"`
|
ClusterInfos []*ClusterInfo `json:"clusterInfos"`
|
||||||
SubTaskInfos []*SubTaskInfo `json:"subTaskInfos"`
|
SubTaskInfos []*SubTaskInfo `json:"subTaskInfos"`
|
||||||
|
TaskTypeDict string `json:"taskTypeDict"`
|
||||||
|
AdapterTypeDict string `json:"adapterTypeDict"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type SubTaskInfo struct {
|
type SubTaskInfo struct {
|
||||||
|
|
Loading…
Reference in New Issue