Documentation ¶
Index ¶
- Variables
- func Init()
- func QueryBuiltinMetrics(tids string) ([]*model.BuiltinMetric, error)
- func QueryDynamicConfig() (map[string][]*model.DynamicConfig, error)
- func QueryExpressions() (ret []*model.Expression, err error)
- func QueryGroupTemplates() (map[int][]int, error)
- func QueryHostGroups() (map[int][]int, error)
- func QueryHostMaintain(hostname string) bool
- func QueryHostSpecialMetric(hostname string) (sps []*model.BuiltinMetric)
- 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 QueryPluginsForEnd(hostname string) (ps []string)
- func QueryServices() (map[string]string, error)
- func QueryStrategies(tpls map[int]*model.Template) (map[int]*model.Strategy, map[int][]*model.Strategy, error)
- func QueryStrategiesForOneEnd(endpoint string) (ss []*model.Strategy)
- func QueryTemplates() (map[int]*model.Template, error)
- func QueryUnionStrategiesByUnionId(unionId int) (ss []*model.Strategy)
- func RemoveIndex(s []int, index int) []int
- func SlaveInit()
- func SliceDiffMap(all []int) map[int][]int
- func UpdateAgent(agentInfo *model.AgentUpdateInfo)
- func UpdateAgentNew(agentInfo *model.AgentUpdateInfo)
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *sql.DB
View Source
var DBRO *sql.DB
Functions ¶
func QueryBuiltinMetrics ¶
func QueryBuiltinMetrics(tids string) ([]*model.BuiltinMetric, error)
func QueryDynamicConfig ¶
func QueryDynamicConfig() (map[string][]*model.DynamicConfig, error)
func QueryExpressions ¶
func QueryExpressions() (ret []*model.Expression, err error)
func QueryGroupTemplates ¶
func QueryHostGroups ¶
func QueryHostMaintain ¶
func QueryHostSpecialMetric ¶
func QueryHostSpecialMetric(hostname string) (sps []*model.BuiltinMetric)
func QueryHostTemplateIds ¶
func QueryHosts ¶
func QueryPlugins ¶
func QueryPluginsForEnd ¶
func QueryServices ¶
func QueryStrategies ¶
func RemoveIndex ¶
func SliceDiffMap ¶
func UpdateAgent ¶
func UpdateAgent(agentInfo *model.AgentUpdateInfo)
func UpdateAgentNew ¶
func UpdateAgentNew(agentInfo *model.AgentUpdateInfo)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.