Documentation ¶
Index ¶
- Constants
- type CompatibleTerminusKey
- type Monitor
- type MonitorDB
- func (db *MonitorDB) GetByFields(fields map[string]interface{}) (*Monitor, error)
- func (db *MonitorDB) GetByTerminusKey(terminusKey string) (*Monitor, error)
- func (db *MonitorDB) GetMonitorByProjectId(projectID int64) ([]*Monitor, error)
- func (db *MonitorDB) GetMonitorByProjectIdAndWorkspace(projectID int64, workspace string) (*Monitor, error)
- func (db *MonitorDB) ListCompatibleTKs() ([]*CompatibleTerminusKey, error)
- func (db *MonitorDB) UpdateStatusByMonitorId(monitorId string, delete int) error
Constants ¶
View Source
const (
TableMonitor = "sp_monitor"
)
tables name
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompatibleTerminusKey ¶
type CompatibleTerminusKey struct { TerminusKey string `gorm:"column:terminus_key"` TerminusKeyRuntime string `gorm:"column:terminus_key_runtime"` }
CompatibleTerminusKey .
type Monitor ¶
type Monitor struct { Id int `gorm:"column:id;primary_key"` MonitorId string `gorm:"column:monitor_id"` TerminusKey string `gorm:"column:terminus_key"` TerminusKeyRuntime string `gorm:"column:terminus_key_runtime"` Workspace string `gorm:"column:workspace"` RuntimeId string `gorm:"column:runtime_id"` RuntimeName string `gorm:"column:runtime_name"` ApplicationId string `gorm:"column:application_id"` ApplicationName string `gorm:"column:application_name"` ProjectId string `gorm:"column:project_id"` ProjectName string `gorm:"column:project_name"` OrgId string `gorm:"column:org_id"` OrgName string `gorm:"column:org_name"` ClusterId string `gorm:"column:cluster_id"` ClusterName string `gorm:"column:cluster_name"` Config string `gorm:"column:config;default:''"` CallbackUrl string `gorm:"column:callback_url"` Version string `gorm:"column:version"` Plan string `gorm:"column:plan"` IsDelete int `gorm:"column:is_delete"` Created time.Time `gorm:"column:created;"` Updated time.Time `gorm:"column:updated;"` }
Monitor .
type MonitorDB ¶
MoniroeDB .
func (*MonitorDB) GetByFields ¶
func (*MonitorDB) GetByTerminusKey ¶
GetByTerminusKey .
func (*MonitorDB) GetMonitorByProjectId ¶
func (*MonitorDB) GetMonitorByProjectIdAndWorkspace ¶
func (*MonitorDB) ListCompatibleTKs ¶
func (db *MonitorDB) ListCompatibleTKs() ([]*CompatibleTerminusKey, error)
Click to show internal directories.
Click to hide internal directories.