Versions in this module Expand all Collapse all v0 v0.0.2 Feb 5, 2024 v0.0.1 Jan 23, 2024 Changes in this version + func AddEntity(entity interface{}) error + func DeleteChartAndLines(chartId uint32) error + func DeleteEntity(entity interface{}) error + func DeleteLines(lineIds []uint32) error + func GetEntity(entity interface{}) error + func IsContactNameExist(name string) bool + func NewMySQL(c *MySQLConfig) error + func QueryAllEntity(entities interface{}) error + func QueryUpdateContacts(updated time.Time, contacts *[]AlarmContact) error + func QueryUpdateRules(updated time.Time, rules *[]AlarmRule) error + func UpdateEntity(entity interface{}) error + type AlarmContact struct + Mail string + Name string + Phone string + Wechat string + func (AlarmContact) TableName() string + type AlarmRule struct + Contacts string + DataSource string + Level int + Message string + Name string + QueryRange int + Trigger string + Type int + func (AlarmRule) TableName() string + type Chart struct + Aggregation string + DashboardId uint32 + DownSample string + Name string + TopnLimit int + Type string + func QueryDashboardCharts(dashboardId uint32) ([]Chart, error) + func (Chart) TableName() string + type Dashboard struct + AppName string + ChartLayout string + Creator string + Name string + SavedStatus string + TagFilter string + func (Dashboard) TableName() string + type Entity struct + Created time.Time + ID uint32 + IsDeleted int + Updated time.Time + func (p *Entity) SetTimeNow() + type Line struct + ChartId uint32 + Metric string + Name string + Offset int + Tags string + func QueryChatLines(chartId uint32) ([]Line, error) + func (Line) TableName() string + type MetricWhiteList struct + AppName string + Creator string + Metric string + func (MetricWhiteList) TableName() string + type MySQLConfig struct + DBName string + Host string + Password string + Port int + Username string