|
|
|
@@ -158,7 +158,7 @@ type ( |
|
|
|
centerResourcesResp { |
|
|
|
CentersIndex []CenterIndex `json:"centersIndex"` |
|
|
|
} |
|
|
|
CenterIndex{ |
|
|
|
CenterIndex { |
|
|
|
name string `json:"name"` |
|
|
|
cpu float32 `json:"cpu"` |
|
|
|
memory float32 `json:"memory"` |
|
|
|
@@ -166,6 +166,20 @@ type ( |
|
|
|
centerType string `json:"centerType"` |
|
|
|
} |
|
|
|
) |
|
|
|
type ( |
|
|
|
syncClusterLoadReq { |
|
|
|
clusterLoadRecords []ClusterLoadRecord `json:"clusterLoadRecords"` |
|
|
|
} |
|
|
|
ClusterLoadRecord { |
|
|
|
ClusterName string `json:"clusterName"` |
|
|
|
CpuUsage float64 `json:"cpuUsage"` |
|
|
|
MemoryUsage float64 `json:"memoryUsage"` |
|
|
|
DiskUsage float64 `json:"diskUsage"` |
|
|
|
} |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type ( |
|
|
|
getClusterListReq { |
|
|
|
Id int64 `form:"id"` |
|
|
|
@@ -670,7 +684,7 @@ type ( |
|
|
|
|
|
|
|
type ( |
|
|
|
AdapterQueryReq { |
|
|
|
Id string `form:"id,optional" db:"id"` |
|
|
|
Id string `form:"id,optional" db:"id"` |
|
|
|
Name string `form:"name,optional"` |
|
|
|
Type string `form:"type,optional"` |
|
|
|
Nickname string `form:"nickname,optional"` |
|
|
|
@@ -678,7 +692,7 @@ type ( |
|
|
|
Server string `form:"server,optional"` |
|
|
|
} |
|
|
|
AdapterReq { |
|
|
|
Id string `json:"id,optional" db:"id"` |
|
|
|
Id string `json:"id,optional" db:"id"` |
|
|
|
Name string `json:"name,optional"` |
|
|
|
Type string `json:"type,optional"` |
|
|
|
Nickname string `json:"nickname,optional"` |
|
|
|
@@ -686,7 +700,7 @@ type ( |
|
|
|
Server string `json:"server,optional"` |
|
|
|
} |
|
|
|
AdapterCreateReq { |
|
|
|
Id string `json:"id,optional" db:"id"` |
|
|
|
Id string `json:"id,optional" db:"id"` |
|
|
|
Name string `json:"name"` |
|
|
|
Type string `json:"type"` |
|
|
|
Nickname string `json:"nickname"` |
|
|
|
@@ -694,7 +708,7 @@ type ( |
|
|
|
Server string `json:"server"` |
|
|
|
} |
|
|
|
AdapterDelReq { |
|
|
|
Id string `form:"id,optional" db:"id"` |
|
|
|
Id string `form:"id,optional" db:"id"` |
|
|
|
} |
|
|
|
AdapterInfo { |
|
|
|
Id string `json:"id,omitempty" db:"id"` |
|
|
|
@@ -727,51 +741,51 @@ type ( |
|
|
|
) |
|
|
|
|
|
|
|
type ClusterReq { |
|
|
|
Id string `form:"id,optional"` |
|
|
|
AdapterId string `form:"adapterId,optional"` |
|
|
|
Name string `json:"name,optional"` |
|
|
|
Nickname string `json:"nickname,optional"` |
|
|
|
Description string `json:"description,optional"` |
|
|
|
Server string `json:"server,optional"` |
|
|
|
MonitorServer string `json:"monitorServer,optional"` |
|
|
|
Username string `json:"username,optional"` |
|
|
|
Password string `json:"password,optional"` |
|
|
|
Token string `json:"token,optional"` |
|
|
|
Ak string `json:"ak,optional"` |
|
|
|
Sk string `json:"sk,optional"` |
|
|
|
Region string `json:"region,optional"` |
|
|
|
ProjectId string `json:"projectId,optional"` |
|
|
|
Version string `json:"version,optional"` |
|
|
|
Label string `json:"label,optional"` |
|
|
|
OwnerId string `json:"ownerId,omitempty,optional"` |
|
|
|
AuthType string `json:"authType,optional"` |
|
|
|
Type string `json:"type,optional"` |
|
|
|
Id string `form:"id,optional"` |
|
|
|
AdapterId string `form:"adapterId,optional"` |
|
|
|
Name string `json:"name,optional"` |
|
|
|
Nickname string `json:"nickname,optional"` |
|
|
|
Description string `json:"description,optional"` |
|
|
|
Server string `json:"server,optional"` |
|
|
|
MonitorServer string `json:"monitorServer,optional"` |
|
|
|
Username string `json:"username,optional"` |
|
|
|
Password string `json:"password,optional"` |
|
|
|
Token string `json:"token,optional"` |
|
|
|
Ak string `json:"ak,optional"` |
|
|
|
Sk string `json:"sk,optional"` |
|
|
|
Region string `json:"region,optional"` |
|
|
|
ProjectId string `json:"projectId,optional"` |
|
|
|
Version string `json:"version,optional"` |
|
|
|
Label string `json:"label,optional"` |
|
|
|
OwnerId string `json:"ownerId,omitempty,optional"` |
|
|
|
AuthType string `json:"authType,optional"` |
|
|
|
Type string `json:"type,optional"` |
|
|
|
} |
|
|
|
|
|
|
|
type ClusterDelReq { |
|
|
|
Id string `form:"id,optional"` |
|
|
|
Id string `form:"id,optional"` |
|
|
|
} |
|
|
|
|
|
|
|
type ClusterInfo { |
|
|
|
Id string `json:"id,omitempty" db:"id"` |
|
|
|
AdapterId string `json:"adapterId,omitempty" db:"adapter_id"` |
|
|
|
Name string `json:"name,omitempty" db:"name"` |
|
|
|
Nickname string `json:"nickname,omitempty" db:"nickname"` |
|
|
|
Description string `json:"description,omitempty" db:"description"` |
|
|
|
Server string `json:"server,omitempty" db:"server"` |
|
|
|
MonitorServer string `json:"monitorServer,omitempty" db:"monitor_server"` |
|
|
|
Username string `json:"username,omitempty" db:"username"` |
|
|
|
Password string `json:"password,omitempty" db:"password"` |
|
|
|
Token string `json:"token,omitempty" db:"token"` |
|
|
|
Ak string `json:"ak,omitempty" db:"ak"` |
|
|
|
Sk string `json:"sk,omitempty" db:"sk"` |
|
|
|
Region string `json:"region,omitempty" db:"region"` |
|
|
|
ProjectId string `json:"projectId,omitempty" db:"project_id"` |
|
|
|
Version string `json:"version,omitempty" db:"version"` |
|
|
|
Label string `json:"label,omitempty" db:"label"` |
|
|
|
OwnerId string `json:"ownerId,omitempty" db:"owner_id"` |
|
|
|
AuthType string `json:"authType,omitempty" db:"auth_type"` |
|
|
|
CreateTime string `json:"createTime,omitempty" db:"created_time" gorm:"autoCreateTime"` |
|
|
|
Id string `json:"id,omitempty" db:"id"` |
|
|
|
AdapterId string `json:"adapterId,omitempty" db:"adapter_id"` |
|
|
|
Name string `json:"name,omitempty" db:"name"` |
|
|
|
Nickname string `json:"nickname,omitempty" db:"nickname"` |
|
|
|
Description string `json:"description,omitempty" db:"description"` |
|
|
|
Server string `json:"server,omitempty" db:"server"` |
|
|
|
MonitorServer string `json:"monitorServer,omitempty" db:"monitor_server"` |
|
|
|
Username string `json:"username,omitempty" db:"username"` |
|
|
|
Password string `json:"password,omitempty" db:"password"` |
|
|
|
Token string `json:"token,omitempty" db:"token"` |
|
|
|
Ak string `json:"ak,omitempty" db:"ak"` |
|
|
|
Sk string `json:"sk,omitempty" db:"sk"` |
|
|
|
Region string `json:"region,omitempty" db:"region"` |
|
|
|
ProjectId string `json:"projectId,omitempty" db:"project_id"` |
|
|
|
Version string `json:"version,omitempty" db:"version"` |
|
|
|
Label string `json:"label,omitempty" db:"label"` |
|
|
|
OwnerId string `json:"ownerId,omitempty" db:"owner_id"` |
|
|
|
AuthType string `json:"authType,omitempty" db:"auth_type"` |
|
|
|
CreateTime string `json:"createTime,omitempty" db:"created_time" gorm:"autoCreateTime"` |
|
|
|
} |
|
|
|
|
|
|
|
type ClusterResp { |
|
|
|
@@ -786,7 +800,7 @@ type clusterSumReq { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
type clusterSumReqResp{ |
|
|
|
type clusterSumReqResp { |
|
|
|
ClusterSum int `json:"ClusterSum,omitempty"` |
|
|
|
AdapterSum int `json:"AdapterSum,omitempty"` |
|
|
|
TaskSum int `json:"TaskSum,omitempty"` |
|
|
|
@@ -800,23 +814,23 @@ type ClusterRelationInfo { |
|
|
|
Version string `json:"version,omitempty" db:"version"` |
|
|
|
Server string `json:"server,omitempty" db:"server"` |
|
|
|
CreateTime string `json:"createTime,omitempty" db:"create_time" gorm:"autoCreateTime"` |
|
|
|
CId string `json:"cId,omitempty" db:"id"` |
|
|
|
CAdapterId string `json:"cAdapterId,omitempty" db:"adapter_id"` |
|
|
|
CName string `json:"cName,omitempty" db:"name"` |
|
|
|
CNickname string `json:"cNickname,omitempty" db:"nickname"` |
|
|
|
CDescription string `json:"cDescription,omitempty" db:"description"` |
|
|
|
CServer string `json:"cServer,omitempty" db:"server"` |
|
|
|
CMonitorServer string `json:"cMonitorServer,omitempty" db:"monitor_server"` |
|
|
|
CUsername string `json:"cUsername,omitempty" db:"username"` |
|
|
|
CPassword string `json:"cPassword,omitempty" db:"password"` |
|
|
|
CToken string `json:"cToken,omitempty" db:"token"` |
|
|
|
CAk string `json:"cAk,omitempty" db:"ak"` |
|
|
|
CSk string `json:"cSk,omitempty" db:"sk"` |
|
|
|
CRegion string `json:"cRegion,omitempty" db:"region"` |
|
|
|
CProjectId string `json:"cProjectId,omitempty" db:"project_id"` |
|
|
|
CVersion string `json:"cVersion,omitempty" db:"version"` |
|
|
|
CLabel string `json:"cLabel,omitempty" db:"label"` |
|
|
|
COwnerId string `json:"cOwnerId,omitempty" db:"owner_id"` |
|
|
|
CAuthType string `json:"cAuthType,omitempty" db:"auth_type"` |
|
|
|
CCreateTime string `json:"cCreateTime,omitempty" db:"created_time" gorm:"autoCreateTime"` |
|
|
|
CId string `json:"cId,omitempty" db:"id"` |
|
|
|
CAdapterId string `json:"cAdapterId,omitempty" db:"adapter_id"` |
|
|
|
CName string `json:"cName,omitempty" db:"name"` |
|
|
|
CNickname string `json:"cNickname,omitempty" db:"nickname"` |
|
|
|
CDescription string `json:"cDescription,omitempty" db:"description"` |
|
|
|
CServer string `json:"cServer,omitempty" db:"server"` |
|
|
|
CMonitorServer string `json:"cMonitorServer,omitempty" db:"monitor_server"` |
|
|
|
CUsername string `json:"cUsername,omitempty" db:"username"` |
|
|
|
CPassword string `json:"cPassword,omitempty" db:"password"` |
|
|
|
CToken string `json:"cToken,omitempty" db:"token"` |
|
|
|
CAk string `json:"cAk,omitempty" db:"ak"` |
|
|
|
CSk string `json:"cSk,omitempty" db:"sk"` |
|
|
|
CRegion string `json:"cRegion,omitempty" db:"region"` |
|
|
|
CProjectId string `json:"cProjectId,omitempty" db:"project_id"` |
|
|
|
CVersion string `json:"cVersion,omitempty" db:"version"` |
|
|
|
CLabel string `json:"cLabel,omitempty" db:"label"` |
|
|
|
COwnerId string `json:"cOwnerId,omitempty" db:"owner_id"` |
|
|
|
CAuthType string `json:"cAuthType,omitempty" db:"auth_type"` |
|
|
|
CCreateTime string `json:"cCreateTime,omitempty" db:"created_time" gorm:"autoCreateTime"` |
|
|
|
} |