Documentation ¶
Index ¶
- Variables
- func DbInit(dbConfig *commonDb.DbConfig) (err error)
- func Init()
- func QueryBuiltinMetrics(tids string) ([]*model.BuiltinMetric, error)
- func QueryConfig(key string) (*model.Config, error)
- func QueryExpressions() (ret []*model.Expression, err error)
- func QueryGroupTemplates() (map[int][]int, error)
- func QueryHostGroups() (map[int][]int, error)
- func QueryHostTemplateIds() (map[int][]int, error)
- func QueryHosts() (map[string]int, error)
- func QueryMonitoredHosts() (map[int]*model.Host, error)
- func QueryPlugins() (map[int][]string, error)
- func QueryStrategies(tpls map[int]*model.Template) (map[int]*model.Strategy, error)
- func QueryTemplates() (map[int]*model.Template, error)
- func Release()
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *sql.DB
View Source
var DbFacade = &f.DbFacade{}
Functions ¶
func QueryBuiltinMetrics ¶
func QueryBuiltinMetrics(tids string) ([]*model.BuiltinMetric, error)
func QueryExpressions ¶
func QueryExpressions() (ret []*model.Expression, err error)
func QueryGroupTemplates ¶
func QueryHostGroups ¶
func QueryHosts ¶
func QueryPlugins ¶
func QueryStrategies ¶
获取所有的Strategy列表
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.