12345678910111213141516171819202122232425262728 |
- package monitor
- func StartSystem() {
- s1 := new(systemMonitor)
- go s1.initCache()
- }
- //系统级行为监控
- type systemMonitor struct {
- }
- //初始化缓存业务数据
- func (t *systemMonitor) initCache() {
- /*
- scdmgr := new(bo.ScdMgr)
- node := new(bo.ScdNode)
- scdall, _ := scdmgr.List(map[string]interface{}{})
- if len(scdall) == 0 {
- return
- }
- for _, row := range scdall {
- //缓存每个scd的设备网络IP及mac信息
- //scdmgr.GetIedNetAddr(tools.IsEmpty(row["id"]))
- //缓存每个scd的IED关系
- //node.GetIedRelations(map[string]interface{}{"scd_id": tools.IsEmpty(row["id"])})
- }
- */
- }
|