{"action":"opened","issue":{"url":"https://api.github.com/repos/gaochao1/swcollector/issues/38","repository_url":"https://api.github.com/repos/gaochao1/swcollector","labels_url":"https://api.github.com/repos/gaochao1/swcollector/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/gaochao1/swcollector/issues/38/comments","events_url":"https://api.github.com/repos/gaochao1/swcollector/issues/38/events","html_url":"https://github.com/gaochao1/swcollector/issues/38","id":249790315,"number":38,"title":"收集交换机内存和CPU时若设备类型不在设置的范围内会出现上报的endpoint名为空的情况","user":{"login":"hel2o","id":14226648,"avatar_url":"https://avatars0.githubusercontent.com/u/14226648?v=4","gravatar_id":"","url":"https://api.github.com/users/hel2o","html_url":"https://github.com/hel2o","followers_url":"https://api.github.com/users/hel2o/followers","following_url":"https://api.github.com/users/hel2o/following{/other_user}","gists_url":"https://api.github.com/users/hel2o/gists{/gist_id}","starred_url":"https://api.github.com/users/hel2o/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hel2o/subscriptions","organizations_url":"https://api.github.com/users/hel2o/orgs","repos_url":"https://api.github.com/users/hel2o/repos","events_url":"https://api.github.com/users/hel2o/events{/privacy}","received_events_url":"https://api.github.com/users/hel2o/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-12T05:31:48Z","updated_at":"2017-08-12T05:31:48Z","closed_at":null,"body":"这种情况会造成上报给transfer时出现Invalid，所以建议在swcpu.go swmem.go的第28行增加一个对ip是否存在做一个判断\r\n\r\n> \t\tif swCpu.Ip !=\"\" {\r\n> \t\t\tL = append(L, GaugeValueIp(time.Now().Unix(), swCpu.Ip, \"switch.CpuUtilization\", swCpu.CpuUtil))\r\n> \t\t}"}}
{"actor":{"display_login":"hel2o"}}