{"action":"closed","issue":{"url":"https://api.github.com/repos/dianping/cat/issues/798","labels_url":"https://api.github.com/repos/dianping/cat/issues/798/labels{/name}","comments_url":"https://api.github.com/repos/dianping/cat/issues/798/comments","events_url":"https://api.github.com/repos/dianping/cat/issues/798/events","html_url":"https://github.com/dianping/cat/issues/798","id":69571329,"number":798,"title":"Metric的type不应该与productLine匹配","user":{"login":"huang--yijian","id":7484190,"avatar_url":"https://avatars.githubusercontent.com/u/7484190?v=3","gravatar_id":"","url":"https://api.github.com/users/huang--yijian","html_url":"https://github.com/huang--yijian","followers_url":"https://api.github.com/users/huang--yijian/followers","following_url":"https://api.github.com/users/huang--yijian/following{/other_user}","gists_url":"https://api.github.com/users/huang--yijian/gists{/gist_id}","starred_url":"https://api.github.com/users/huang--yijian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huang--yijian/subscriptions","organizations_url":"https://api.github.com/users/huang--yijian/orgs","repos_url":"https://api.github.com/users/huang--yijian/repos","events_url":"https://api.github.com/users/huang--yijian/events{/privacy}","received_events_url":"https://api.github.com/users/huang--yijian/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-20T12:00:42Z","updated_at":"2015-04-27T07:31:40Z","closed_at":"2015-04-27T07:31:40Z","body":"当查询Metric时，LocalModelService调用MetricAnalyzer.getReport( Product Line )——即根据用户在metric.jsp中选择的业务线(Product Line)查询。\r\n\r\n接着，在MetricAnalyzer.getReport()里面，会把Product Line和CAT客户端记的Metric的type作匹配。\r\n\r\n我觉得这样不合理。\r\n因为在CAT客户端里，通过Cat.logMetricForCount()记录的Metric的type是固定的空字符串。所以导致匹配永远不成立，总是拿不到Metric数据。\r\n\r\n"}}