diff --git a/api/desc/core/pcm-core.api b/api/desc/core/pcm-core.api index 038b716f..988899e9 100644 --- a/api/desc/core/pcm-core.api +++ b/api/desc/core/pcm-core.api @@ -504,6 +504,36 @@ 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 { + StorageUsed float32 `json:"storageUsed"` + StorageUsing float32 `json:"storageUsing"` + UsageRate float32 `json:"usageRate"` + UsingRate float32 `json:"usingRate"` + 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 ( cpResp { POpsAtFp16 float32 `json:"pOpsAtFp16"` diff --git a/api/internal/types/types.go b/api/internal/types/types.go index 3432c695..f464d93a 100644 --- a/api/internal/types/types.go +++ b/api/internal/types/types.go @@ -446,16 +446,6 @@ type ComputeCluster struct { Description string `json:"description"` } -type CpResp struct { - POpsAtFp16 float32 `json:"pOpsAtFp16"` -} - -type GiResp struct { - CpuNum int32 `json:"cpuNum,optional"` - MemoryInGib int32 `json:"memoryInGib,optional"` - StorageInGib int32 `json:"storageInGib,optional"` -} - type ScreenChartResp struct { ComputingPower []int `json:"computingPower"` CpuAvg []int `json:"cpuAvg"` @@ -466,8 +456,10 @@ type ScreenChartResp struct { } type ScreenInfoResp struct { - StorageTotal float64 `json:"storageTotal"` - StorageAvail float64 `json:"storageAvail"` + StorageUsed float32 `json:"storageUsed"` + StorageUsing float32 `json:"storageUsing"` + UsageRate float32 `json:"usageRate"` + UsingRate float32 `json:"usingRate"` ApiDelay string `json:"apiDelay"` SchedulerTimes int `json:"schedulerTimes"` SchedulerErr int `json:"schedulerErr"` @@ -480,6 +472,16 @@ type ScreenInfoResp struct { RunningTime int `json:"runningTime"` } +type CpResp struct { + POpsAtFp16 float32 `json:"pOpsAtFp16"` +} + +type GiResp struct { + CpuNum int32 `json:"cpuNum,optional"` + MemoryInGib int32 `json:"memoryInGib,optional"` + StorageInGib int32 `json:"storageInGib,optional"` +} + type DomainResourceResp struct { TotalCount int `json:"totalCount"` DomainResourceList []DomainResource `json:"domainResourceList"`