mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-04 20:57:38 +08:00
19 lines
763 B
Go
19 lines
763 B
Go
|
package model
|
||
|
|
||
|
//TenantServiceMonitor custom service monitor
|
||
|
type TenantServiceMonitor struct {
|
||
|
Model
|
||
|
TenantID string `gorm:"column:tenant_id;size:40" json:"tenant_id"`
|
||
|
ServiceID string `gorm:"column:service_id;size:40" json:"service_id"`
|
||
|
Name string `gorm:"column:name;size:40;unique_index" json:"name"`
|
||
|
ServiceShowName string `gorm:"column:service_show_name" json:"service_show_name"`
|
||
|
Port int `gorm:"column:port;size:5" json:"port"`
|
||
|
Path string `gorm:"column:path;size:255" json:"path"`
|
||
|
Interval string `gorm:"column:interval;size:20" json:"interval"`
|
||
|
}
|
||
|
|
||
|
// TableName returns table name of TenantServiceMonitor
|
||
|
func (TenantServiceMonitor) TableName() string {
|
||
|
return "tenant_services_monitor"
|
||
|
}
|