Documentation
¶
Index ¶
Constants ¶
View Source
const ( InstanceTenantTable = "tb_tmc_instance_tenant" MonitorTable = "sp_monitor" )
table name
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstanceTenant ¶
type InstanceTenant struct {
Id string `json:"id"`
InstanceId string `json:"instance_id"`
Config string `json:"config"`
Options string `json:"options"`
CreateTime time.Time `json:"create_time"`
UpdateTime time.Time `json:"update_time"`
IsDeleted string `json:"is_deleted"`
TenantGroup string `json:"tenant_group"`
Engine string `json:"engine"`
Az string `json:"az"`
}
func (InstanceTenant) TableName ¶
func (InstanceTenant) TableName() string
type InstanceTenantDb ¶
func (*InstanceTenantDb) QueryTkByTenantGroup ¶
func (db *InstanceTenantDb) QueryTkByTenantGroup(tenantGroup string) (string, error)
type Monitor ¶
type Monitor struct {
Id string `json:"id"`
MonitorId string `json:"monitor_id"`
TerminusKey string `json:"terminus_key"`
Workspace string `json:"workspace"`
ProjectId string `json:"project_id"`
ProjectName string `json:"project_name"`
OrgId string `json:"org_id"`
OrgName string `json:"org_name"`
ClusterName string `json:"cluster_name"`
Created string `json:"created"`
Updated string `json:"updated"`
}
type MonitorDb ¶
func (*MonitorDb) GetInstanceByTk ¶
func (*MonitorDb) GetTkByProjectIdAndWorkspace ¶
Click to show internal directories.
Click to hide internal directories.