Documentation
¶
Index ¶
- Constants
- Variables
- func GetHostCount(totalCache map[int]LruCache) (totalCount int)
- func GetIP() string
- func InitLog() *log.Logger
- func MonitorPeriod()
- func ParseConfig(cfg string)
- func PutData(totalCache map[int]LruCache, newCache LruCache) (reNewCache map[int]LruCache)
- func ToString(filePath string) (string, error)
- func ToTrimString(filePath string) (string, error)
- type ClientConfig
- type Cmdb
- type Degrade
- type Falcon
- type GlobalConfig
- type HttpConfig
- type HttpPingRequest
- type HttpPingResponse
- type LruCache
- type Pigeon
- type Proxy
- type RedisConfig
- type TransferConfig
Constants ¶
View Source
const (
Version = "3.0.1"
)
Variables ¶
View Source
var ( TransferCheck = false RedisNormalHost []string TotalLru = make(map[int]LruCache, 1) SkipAlarm = false )
View Source
var ( Logger *log.Logger Ipaddr string )
View Source
var (
ConfigFile string
)
Functions ¶
func GetHostCount ¶
func MonitorPeriod ¶
func MonitorPeriod()
func ParseConfig ¶
func ParseConfig(cfg string)
func ToTrimString ¶
Types ¶
type ClientConfig ¶
type GlobalConfig ¶
type GlobalConfig struct {
Debug bool `json:"debug"`
ForceCheck bool `json:"forcecheck"`
AlarmEnable bool `json:"alarmenable"`
LogMaxAge int `json:"logmaxage"`
LogRotateAge int `json:"logrotateage"`
AgentExpire int64 `json:"agentexpire"`
AgentPriority string `json:"agentpriority"`
CheckInterval int `json:"checkinterval"`
LogFile string `json:"logfile"`
Http *HttpConfig `json:"http"`
Redis *RedisConfig `json:"redis"`
FlushKeyInterval int `json:"flushkeyinterval"`
Falcon *Falcon `json:"falcon"`
Cmdb *Cmdb `json:"cmdb"`
Pigeon *Pigeon `json:"pigeon"`
ExcludeDomains []string `json:"excludedomains"`
ExcludeDBATags string `json:"excludedbatags"`
ExcludeDBADeploy []int `json:"excludedbadeploytype"`
Transfer *TransferConfig `json:"transfer"`
PingClient *[]ClientConfig `json:"pingclient"`
Degrade *Degrade `json:"degrade"`
Proxy *Proxy `json:"proxy"`
}
func Config ¶
func Config() *GlobalConfig
type HttpConfig ¶
type HttpPingRequest ¶
type HttpPingRequest struct {
Ipaddr string `json:"ipaddr"`
}
type HttpPingResponse ¶
type LruCache ¶
func (LruCache) HostDetail ¶
type RedisConfig ¶
type TransferConfig ¶
Click to show internal directories.
Click to hide internal directories.