Documentation ¶
Index ¶
- Constants
- type DB
- type LogMetricConfig
- type LogMetricConfigDB
- func (db *LogMetricConfigDB) Delete(scope, scopeID string, id int64) error
- func (db *LogMetricConfigDB) Enable(scope, scopeID string, id int64, enable bool) error
- func (db *LogMetricConfigDB) Insert(cfg *LogMetricConfig) error
- func (db *LogMetricConfigDB) QueryByID(scope, scopeID string, id int64) (*LogMetricConfig, error)
- func (db *LogMetricConfigDB) QueryByScope(scope, scopeID string) ([]*LogMetricConfig, error)
- func (db *LogMetricConfigDB) QueryEnabledByScope(scope, scopeID string) (list []*LogMetricConfig, err error)
- func (db *LogMetricConfigDB) Update(cfg *LogMetricConfig) error
Constants ¶
View Source
const LogMetricConfigTable = "sp_log_metric_config"
LogMetricConfigTable .
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogMetricConfig ¶
type LogMetricConfig struct { ID int64 `gorm:"column:id" json:"id"` OrgID int64 `gorm:"column:org_id" json:"org_id"` Scope string `gorm:"column:scope" json:"scope"` ScopeID string `gorm:"column:scope_id" json:"scope_id"` Name string `gorm:"column:name" json:"name"` Metric string `gorm:"column:metric" json:"metric"` Filters string `gorm:"column:filters" json:"filters"` Processors string `gorm:"column:processors" json:"processors"` Enable bool `gorm:"column:enable" json:"enable"` CreatorID string `gorm:"column:creator_id" json:"creator_id"` CreateTime time.Time `gorm:"column:create_time" json:"create_time"` UpdateTime time.Time `gorm:"column:update_time" json:"update_time"` }
LogMetricConfig .
type LogMetricConfigDB ¶
LogMetricConfigDB .
func (*LogMetricConfigDB) Delete ¶
func (db *LogMetricConfigDB) Delete(scope, scopeID string, id int64) error
Delete .
func (*LogMetricConfigDB) Enable ¶
func (db *LogMetricConfigDB) Enable(scope, scopeID string, id int64, enable bool) error
Enable .
func (*LogMetricConfigDB) Insert ¶
func (db *LogMetricConfigDB) Insert(cfg *LogMetricConfig) error
Insert .
func (*LogMetricConfigDB) QueryByID ¶
func (db *LogMetricConfigDB) QueryByID(scope, scopeID string, id int64) (*LogMetricConfig, error)
QueryByID .
func (*LogMetricConfigDB) QueryByScope ¶
func (db *LogMetricConfigDB) QueryByScope(scope, scopeID string) ([]*LogMetricConfig, error)
QueryByScope .
func (*LogMetricConfigDB) QueryEnabledByScope ¶
func (db *LogMetricConfigDB) QueryEnabledByScope(scope, scopeID string) (list []*LogMetricConfig, err error)
QueryEnabledByScope .
func (*LogMetricConfigDB) Update ¶
func (db *LogMetricConfigDB) Update(cfg *LogMetricConfig) error
Update .
Click to show internal directories.
Click to hide internal directories.