Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateConfig ¶
UpdateConfig update ces config
Types ¶
type CESConfig ¶
type CESConfig struct { Enable bool Endpoint string EnableProcessList []HbProcess `json:"enable_processes"` SpecifiedProcList []string `json:"specified_procs"` EnablePlugin bool ExternalService string }
CESConfig is the type for heartbeat response
func ReloadConfig ¶
func ReloadConfig() *CESConfig
ReloadConfig reload config to support hot load config file
type EachPluginConfig ¶
type EachPluginConfig struct { Path string `json:"path"` Crontime int `json:"crontime"` Type string `json:"type"` MaxTimeoutProcNum int `json:"max_timeout_proc_num"` }
EachPluginConfig is the type for each plugin config
func GetCustomMonitorPluginConfig ¶
func GetCustomMonitorPluginConfig() []*EachPluginConfig
GetCustomMonitorPluginConfig ...
func GetDefaultPluginConfig ¶
func GetDefaultPluginConfig() []*EachPluginConfig
GetDefaultPluginConfig ...
func GetEventPluginConfig ¶
func GetEventPluginConfig() []*EachPluginConfig
GetEventPluginConfig ...
type PluginConfig ¶
type PluginConfig struct {
Plugins []*EachPluginConfig `json:"plugins"`
}
PluginConfig is the type for plugins config file
func ReadPluginConfig ¶
func ReadPluginConfig() (*PluginConfig, error)
ReadPluginConfig Read the config from ../plugins/conf.json
Click to show internal directories.
Click to hide internal directories.