Documentation ¶
Index ¶
- Constants
- Variables
- func CheckDetectorNodes()
- func CheckJudge() error
- func CheckJudgeNodes()
- func CheckSnmpDetectorNodes()
- func CleanAggrCalcStraLoop()
- func CleanCollectLoop()
- func CleanStraLoop()
- func CleanerLoop()
- func ConsumeIm()
- func ConsumeMail()
- func ConsumeSms()
- func ConsumeVoice()
- func GetAggrCalcStrategy()
- func GetJudgeStrategy(cfg StrategySection)
- func GetStrategy()
- func HostUnderNode(nid int64) ([]string, error)
- func Init()
- func InitReportHeartBeat(cfg report.ReportSection)
- func InitStrategySection(cfg StrategySection)
- func InitWorker(sender map[string]SenderSection)
- func RebuildJudgePool()
- func SendMailBySMTP(message *dataobj.Message) error
- func SyncAggrCalcStras()
- func SyncApiCollects()
- func SyncCollects()
- func SyncHardwares()
- func SyncIdentsOfNode()
- func SyncNodeResources()
- func SyncResources()
- func SyncSnmpCollects()
- func SyncStras()
- func SyncTeamUsers()
- func SyncTeams()
- func SyncTreeNodes()
- func SyncUsers()
- func UpdateJudgeQueue()
- type AggrCalcResp
- type SenderSection
- type StraResp
- type StrasResp
- type StrategySection
Constants ¶
View Source
const ( SMS_QUEUE_NAME = "/queue/rdb/sms" MAIL_QUEUE_NAME = "/queue/rdb/mail" VOICE_QUEUE_NAME = "/queue/rdb/voice" IM_QUEUE_NAME = "/queue/rdb/im" )
Variables ¶
View Source
var ( SmsWorkerChan chan int MailWorkerChan chan int VoiceWorkerChan chan int ImWorkerChan chan int )
View Source
var ReportConfig report.ReportSection
View Source
var Sender map[string]SenderSection
Functions ¶
func CheckDetectorNodes ¶
func CheckDetectorNodes()
func CheckJudge ¶
func CheckJudge() error
func CheckJudgeNodes ¶
func CheckJudgeNodes()
func CheckSnmpDetectorNodes ¶
func CheckSnmpDetectorNodes()
func CleanAggrCalcStraLoop ¶
func CleanAggrCalcStraLoop()
func CleanCollectLoop ¶
func CleanCollectLoop()
func CleanStraLoop ¶
func CleanStraLoop()
func CleanerLoop ¶
func CleanerLoop()
func ConsumeMail ¶
func ConsumeMail()
func ConsumeSms ¶
func ConsumeSms()
func ConsumeVoice ¶
func ConsumeVoice()
func GetAggrCalcStrategy ¶
func GetAggrCalcStrategy()
func GetJudgeStrategy ¶
func GetJudgeStrategy(cfg StrategySection)
func GetStrategy ¶
func GetStrategy()
func HostUnderNode ¶
func InitReportHeartBeat ¶
func InitReportHeartBeat(cfg report.ReportSection)
func InitStrategySection ¶
func InitStrategySection(cfg StrategySection)
func InitWorker ¶
func InitWorker(sender map[string]SenderSection)
func RebuildJudgePool ¶
func RebuildJudgePool()
func SendMailBySMTP ¶
func SyncAggrCalcStras ¶
func SyncAggrCalcStras()
func SyncApiCollects ¶
func SyncApiCollects()
func SyncCollects ¶
func SyncCollects()
func SyncHardwares ¶
func SyncHardwares()
func SyncIdentsOfNode ¶ added in v4.0.4
func SyncIdentsOfNode()
func SyncNodeResources ¶ added in v4.0.4
func SyncNodeResources()
func SyncResources ¶ added in v4.0.4
func SyncResources()
func SyncSnmpCollects ¶
func SyncSnmpCollects()
func SyncTeamUsers ¶ added in v4.0.2
func SyncTeamUsers()
func SyncTreeNodes ¶ added in v4.0.4
func SyncTreeNodes()
func UpdateJudgeQueue ¶
func UpdateJudgeQueue()
Types ¶
type AggrCalcResp ¶
type SenderSection ¶
type StrategySection ¶
type StrategySection struct { PartitionApi string `yaml:"partitionApi"` Timeout int `yaml:"timeout"` Token string `yaml:"token"` UpdateInterval int `yaml:"updateInterval"` IndexInterval int `yaml:"indexInterval"` ReportInterval int `yaml:"reportInterval"` Mod string `yaml:"mod"` EventPrefix string `yaml:"eventPrefix"` }
var JudgeStra StrategySection
Source Files ¶
- cleaner.go
- init.go
- judge_ring.go
- judge_stra.go
- monapi_aggr.go
- monapi_api_collect.go
- monapi_api_detector.go
- monapi_collect.go
- monapi_snmp_collect.go
- monapi_snmp_detector.go
- monapi_snmp_hw.go
- monapi_stra.go
- monapi_team.go
- monapi_team_user.go
- monapi_user.go
- node.go
- node_resource.go
- report.go
- resource.go
- sender_im.go
- sender_init.go
- sender_mail.go
- sender_sms.go
- sender_voice.go
- transfer_aggr.go
- transfer_pool.go
- transfer_queue.go
- transfer_stra.go
Click to show internal directories.
Click to hide internal directories.