mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(monitor): remove useless code (#19895)
This commit is contained in:
@@ -18,11 +18,10 @@ import (
|
||||
"yunion.io/x/jsonutils"
|
||||
|
||||
"yunion.io/x/onecloud/pkg/apihelper"
|
||||
"yunion.io/x/onecloud/pkg/apis"
|
||||
compute_api "yunion.io/x/onecloud/pkg/apis/compute"
|
||||
keystone_api "yunion.io/x/onecloud/pkg/apis/identity"
|
||||
"yunion.io/x/onecloud/pkg/apis/monitor"
|
||||
"yunion.io/x/onecloud/pkg/cloudcommon/db"
|
||||
compute_models "yunion.io/x/onecloud/pkg/compute/models"
|
||||
keystone_models "yunion.io/x/onecloud/pkg/keystone/models"
|
||||
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
|
||||
"yunion.io/x/onecloud/pkg/mcclient/modules/compute"
|
||||
"yunion.io/x/onecloud/pkg/mcclient/modules/identity"
|
||||
@@ -59,89 +58,58 @@ type (
|
||||
Projects map[string]*SProject
|
||||
)
|
||||
|
||||
// +onecloud:swagger-gen-ignore
|
||||
type Details struct {
|
||||
//com_apis.CloudproviderDetails
|
||||
//Host string
|
||||
HostId string
|
||||
Zone string
|
||||
zoneId string
|
||||
zoneExtId string
|
||||
Cloudregion string
|
||||
CloudregionId string
|
||||
Tenant string
|
||||
TenantId string
|
||||
Brand string
|
||||
DomainId string
|
||||
ProjectDomain string
|
||||
Ips string
|
||||
Account string
|
||||
apis.MetadataResourceInfo
|
||||
}
|
||||
|
||||
// +onecloud:swagger-gen-ignore
|
||||
type Guest struct {
|
||||
compute_models.SGuest
|
||||
Details
|
||||
// VIP
|
||||
Vip string `json:"vip"`
|
||||
// VIP's eip
|
||||
VipEip string `json:"vip_eip"`
|
||||
// 浮动IP
|
||||
Eip string `json:"eip"`
|
||||
// 浮动IP类型
|
||||
EipMode string `json:"eip_mode"`
|
||||
db.SModelBase
|
||||
compute_api.ServerDetails
|
||||
}
|
||||
|
||||
// +onecloud:swagger-gen-ignore
|
||||
type Host struct {
|
||||
Id string
|
||||
compute_models.SHost
|
||||
Details
|
||||
db.SModelBase
|
||||
compute_api.HostDetails
|
||||
}
|
||||
|
||||
// +onecloud:swagger-gen-ignore
|
||||
type SRds struct {
|
||||
compute_models.SDBInstance
|
||||
Details
|
||||
db.SModelBase
|
||||
compute_api.DBInstanceDetails
|
||||
}
|
||||
|
||||
// +onecloud:swagger-gen-ignore
|
||||
type SRedis struct {
|
||||
compute_models.SElasticcache
|
||||
Details
|
||||
db.SModelBase
|
||||
compute_api.ElasticcacheDetails
|
||||
}
|
||||
|
||||
// +onecloud:swagger-gen-ignore
|
||||
type SOss struct {
|
||||
compute_models.SBucket
|
||||
Details
|
||||
db.SModelBase
|
||||
compute_api.BucketDetails
|
||||
}
|
||||
|
||||
// +onecloud:swagger-gen-ignore
|
||||
type SStorage struct {
|
||||
Id string
|
||||
compute_models.SStorage
|
||||
Details
|
||||
db.SModelBase
|
||||
compute_api.StorageDetails
|
||||
}
|
||||
|
||||
// +onecloud:swagger-gen-ignore
|
||||
type SAccount struct {
|
||||
Id string
|
||||
compute_models.SCloudaccount
|
||||
Details
|
||||
db.SModelBase
|
||||
compute_api.CloudaccountDetail
|
||||
}
|
||||
|
||||
// +onecloud:swagger-gen-ignore
|
||||
type SDomain struct {
|
||||
Id string
|
||||
keystone_models.SDomain
|
||||
db.SModelBase
|
||||
keystone_api.DomainDetails
|
||||
}
|
||||
|
||||
// +onecloud:swagger-gen-ignore
|
||||
type SProject struct {
|
||||
Id string
|
||||
keystone_models.SProject
|
||||
db.SModelBase
|
||||
keystone_api.ProjectDetails
|
||||
}
|
||||
|
||||
func (s Servers) ModelManager() modulebase.IBaseManager {
|
||||
|
||||
Reference in New Issue
Block a user