{"action":"created","comment":{"url":"https://api.github.com/repos/Feuerlabs/exometer_core/pulls/comments/27860251","id":27860251,"diff_hunk":"@@ -0,0 +1,26 @@\n+%% -------------------------------------------------------------------\n+%%\n+%% Copyright (c) 2014 Basho Technologies, Inc.  All Rights Reserved.","path":"src/exometer_report_logger_sup.erl","position":3,"original_position":3,"commit_id":"185ef28f017bb542ed649da16835950c13517151","original_commit_id":"185ef28f017bb542ed649da16835950c13517151","user":{"login":"tolbrino","id":1107,"avatar_url":"https://avatars.githubusercontent.com/u/1107?v=3","gravatar_id":"","url":"https://api.github.com/users/tolbrino","html_url":"https://github.com/tolbrino","followers_url":"https://api.github.com/users/tolbrino/followers","following_url":"https://api.github.com/users/tolbrino/following{/other_user}","gists_url":"https://api.github.com/users/tolbrino/gists{/gist_id}","starred_url":"https://api.github.com/users/tolbrino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tolbrino/subscriptions","organizations_url":"https://api.github.com/users/tolbrino/orgs","repos_url":"https://api.github.com/users/tolbrino/repos","events_url":"https://api.github.com/users/tolbrino/events{/privacy}","received_events_url":"https://api.github.com/users/tolbrino/received_events","type":"User","site_admin":false},"body":"new year should be 2015, same in other new files","created_at":"2015-04-07T08:38:29Z","updated_at":"2015-04-07T08:38:29Z","html_url":"https://github.com/Feuerlabs/exometer_core/pull/21#discussion_r27860251","pull_request_url":"https://api.github.com/repos/Feuerlabs/exometer_core/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/Feuerlabs/exometer_core/pulls/comments/27860251"},"html":{"href":"https://github.com/Feuerlabs/exometer_core/pull/21#discussion_r27860251"},"pull_request":{"href":"https://api.github.com/repos/Feuerlabs/exometer_core/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/Feuerlabs/exometer_core/pulls/21","id":32683850,"html_url":"https://github.com/Feuerlabs/exometer_core/pull/21","diff_url":"https://github.com/Feuerlabs/exometer_core/pull/21.diff","patch_url":"https://github.com/Feuerlabs/exometer_core/pull/21.patch","issue_url":"https://api.github.com/repos/Feuerlabs/exometer_core/issues/21","number":21,"state":"open","locked":false,"title":"Added exometer_report_logger and test suite","user":{"login":"uwiger","id":160216,"avatar_url":"https://avatars.githubusercontent.com/u/160216?v=3","gravatar_id":"","url":"https://api.github.com/users/uwiger","html_url":"https://github.com/uwiger","followers_url":"https://api.github.com/users/uwiger/followers","following_url":"https://api.github.com/users/uwiger/following{/other_user}","gists_url":"https://api.github.com/users/uwiger/gists{/gist_id}","starred_url":"https://api.github.com/users/uwiger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uwiger/subscriptions","organizations_url":"https://api.github.com/users/uwiger/orgs","repos_url":"https://api.github.com/users/uwiger/repos","events_url":"https://api.github.com/users/uwiger/events{/privacy}","received_events_url":"https://api.github.com/users/uwiger/received_events","type":"User","site_admin":false},"body":"The report logger was primarily created as a means to automate testing of reporters, but it should also be useful for ad-hoc testing of reporters during development, as well as perhaps creating custom report logging solutions.\r\n\r\nExample:\r\n```erlang\r\nEshell V5.10.3  (abort with ^G)\r\n1> application:ensure_all_started(exometer_core).\r\n...\r\n{ok,[syntax_tools,compiler,goldrush,lager,setup,exometer_core]}\r\n2> exometer_report_logger:new([{input,[{mode,udp},{port,8888}]},{output,[{mode,tty},{prefix,\"statsd.\"}]}]).\r\n{ok,<0.81.0>}\r\n3> exometer_report_logger:info().\r\n[{<0.81.0>,\r\n  [{id,undefined},\r\n   {input,[{udp,[{socket,#Port<0.3547>},\r\n                 {port,8888},\r\n                 {options,[]},\r\n                 {active,once}]}]},\r\n   {output,[{tty,[{prefix,\"statsd.\"}]}]}]}]\r\n4> exometer_report:add_reporter(statsd,[{module,exometer_report_statsd},{hostname,\"localhost\"},{port,8888}]).\r\nok\r\n5> 16:57:32.808 [info] exometer_report_statsd([{module,exometer_report_statsd},{hostname,\"localhost\"},{port,8888}]): Starting\r\n\r\n5> exometer:new([g], gauge, []).\r\nok\r\n6> exometer_report:subscribe(statsd, [g], value, 1000, true).\r\nok\r\n7> statsd.g.value:0|g\r\nstatsd.g.value:0|g\r\nstatsd.g.value:0|g\r\nstatsd.g.value:0|g\r\nstatsd.g.value:0|g\r\nstatsd.g.value:0|g\r\nstatsd.g.value:0|g\r\n```\r\n\r\nFor a more advanced example, see [exometer_report_SUITE.erl](https://github.com/Feuerlabs/exometer_core/blob/uw-report-logger/test/exometer_report_SUITE.erl) and [exometer_test_udp_reporter.erl](https://github.com/Feuerlabs/exometer_core/blob/uw-report-logger/test/exometer_test_udp_reporter.erl).","created_at":"2015-04-06T15:01:30Z","updated_at":"2015-04-07T08:38:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1036a1b5604613530a6e1a6d1f8cd70ac253dc44","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Feuerlabs/exometer_core/pulls/21/commits","review_comments_url":"https://api.github.com/repos/Feuerlabs/exometer_core/pulls/21/comments","review_comment_url":"https://api.github.com/repos/Feuerlabs/exometer_core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Feuerlabs/exometer_core/issues/21/comments","statuses_url":"https://api.github.com/repos/Feuerlabs/exometer_core/statuses/185ef28f017bb542ed649da16835950c13517151","head":{"label":"Feuerlabs:uw-report-logger","ref":"uw-report-logger","sha":"185ef28f017bb542ed649da16835950c13517151","user":{"login":"Feuerlabs","id":1229379,"avatar_url":"https://avatars.githubusercontent.com/u/1229379?v=3","gravatar_id":"","url":"https://api.github.com/users/Feuerlabs","html_url":"https://github.com/Feuerlabs","followers_url":"https://api.github.com/users/Feuerlabs/followers","following_url":"https://api.github.com/users/Feuerlabs/following{/other_user}","gists_url":"https://api.github.com/users/Feuerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/Feuerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Feuerlabs/subscriptions","organizations_url":"https://api.github.com/users/Feuerlabs/orgs","repos_url":"https://api.github.com/users/Feuerlabs/repos","events_url":"https://api.github.com/users/Feuerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/Feuerlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":26772418,"name":"exometer_core","full_name":"Feuerlabs/exometer_core","owner":{"login":"Feuerlabs","id":1229379,"avatar_url":"https://avatars.githubusercontent.com/u/1229379?v=3","gravatar_id":"","url":"https://api.github.com/users/Feuerlabs","html_url":"https://github.com/Feuerlabs","followers_url":"https://api.github.com/users/Feuerlabs/followers","following_url":"https://api.github.com/users/Feuerlabs/following{/other_user}","gists_url":"https://api.github.com/users/Feuerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/Feuerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Feuerlabs/subscriptions","organizations_url":"https://api.github.com/users/Feuerlabs/orgs","repos_url":"https://api.github.com/users/Feuerlabs/repos","events_url":"https://api.github.com/users/Feuerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/Feuerlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Feuerlabs/exometer_core","description":"Core components of exometer","fork":false,"url":"https://api.github.com/repos/Feuerlabs/exometer_core","forks_url":"https://api.github.com/repos/Feuerlabs/exometer_core/forks","keys_url":"https://api.github.com/repos/Feuerlabs/exometer_core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Feuerlabs/exometer_core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Feuerlabs/exometer_core/teams","hooks_url":"https://api.github.com/repos/Feuerlabs/exometer_core/hooks","issue_events_url":"https://api.github.com/repos/Feuerlabs/exometer_core/issues/events{/number}","events_url":"https://api.github.com/repos/Feuerlabs/exometer_core/events","assignees_url":"https://api.github.com/repos/Feuerlabs/exometer_core/assignees{/user}","branches_url":"https://api.github.com/repos/Feuerlabs/exometer_core/branches{/branch}","tags_url":"https://api.github.com/repos/Feuerlabs/exometer_core/tags","blobs_url":"https://api.github.com/repos/Feuerlabs/exometer_core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Feuerlabs/exometer_core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Feuerlabs/exometer_core/git/refs{/sha}","trees_url":"https://api.github.com/repos/Feuerlabs/exometer_core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Feuerlabs/exometer_core/statuses/{sha}","languages_url":"https://api.github.com/repos/Feuerlabs/exometer_core/languages","stargazers_url":"https://api.github.com/repos/Feuerlabs/exometer_core/stargazers","contributors_url":"https://api.github.com/repos/Feuerlabs/exometer_core/contributors","subscribers_url":"https://api.github.com/repos/Feuerlabs/exometer_core/subscribers","subscription_url":"https://api.github.com/repos/Feuerlabs/exometer_core/subscription","commits_url":"https://api.github.com/repos/Feuerlabs/exometer_core/commits{/sha}","git_commits_url":"https://api.github.com/repos/Feuerlabs/exometer_core/git/commits{/sha}","comments_url":"https://api.github.com/repos/Feuerlabs/exometer_core/comments{/number}","issue_comment_url":"https://api.github.com/repos/Feuerlabs/exometer_core/issues/comments{/number}","contents_url":"https://api.github.com/repos/Feuerlabs/exometer_core/contents/{+path}","compare_url":"https://api.github.com/repos/Feuerlabs/exometer_core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Feuerlabs/exometer_core/merges","archive_url":"https://api.github.com/repos/Feuerlabs/exometer_core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Feuerlabs/exometer_core/downloads","issues_url":"https://api.github.com/repos/Feuerlabs/exometer_core/issues{/number}","pulls_url":"https://api.github.com/repos/Feuerlabs/exometer_core/pulls{/number}","milestones_url":"https://api.github.com/repos/Feuerlabs/exometer_core/milestones{/number}","notifications_url":"https://api.github.com/repos/Feuerlabs/exometer_core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Feuerlabs/exometer_core/labels{/name}","releases_url":"https://api.github.com/repos/Feuerlabs/exometer_core/releases{/id}","created_at":"2014-11-17T19:08:17Z","updated_at":"2015-04-04T06:44:11Z","pushed_at":"2015-04-06T15:01:30Z","git_url":"git://github.com/Feuerlabs/exometer_core.git","ssh_url":"git@github.com:Feuerlabs/exometer_core.git","clone_url":"https://github.com/Feuerlabs/exometer_core.git","svn_url":"https://github.com/Feuerlabs/exometer_core","homepage":null,"size":857,"stargazers_count":5,"watchers_count":5,"language":"Erlang","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":2,"forks":10,"open_issues":2,"watchers":5,"default_branch":"master"}},"base":{"label":"Feuerlabs:master","ref":"master","sha":"780a896aa6daa9a115647b317b652ba0d8bc28c1","user":{"login":"Feuerlabs","id":1229379,"avatar_url":"https://avatars.githubusercontent.com/u/1229379?v=3","gravatar_id":"","url":"https://api.github.com/users/Feuerlabs","html_url":"https://github.com/Feuerlabs","followers_url":"https://api.github.com/users/Feuerlabs/followers","following_url":"https://api.github.com/users/Feuerlabs/following{/other_user}","gists_url":"https://api.github.com/users/Feuerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/Feuerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Feuerlabs/subscriptions","organizations_url":"https://api.github.com/users/Feuerlabs/orgs","repos_url":"https://api.github.com/users/Feuerlabs/repos","events_url":"https://api.github.com/users/Feuerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/Feuerlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":26772418,"name":"exometer_core","full_name":"Feuerlabs/exometer_core","owner":{"login":"Feuerlabs","id":1229379,"avatar_url":"https://avatars.githubusercontent.com/u/1229379?v=3","gravatar_id":"","url":"https://api.github.com/users/Feuerlabs","html_url":"https://github.com/Feuerlabs","followers_url":"https://api.github.com/users/Feuerlabs/followers","following_url":"https://api.github.com/users/Feuerlabs/following{/other_user}","gists_url":"https://api.github.com/users/Feuerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/Feuerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Feuerlabs/subscriptions","organizations_url":"https://api.github.com/users/Feuerlabs/orgs","repos_url":"https://api.github.com/users/Feuerlabs/repos","events_url":"https://api.github.com/users/Feuerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/Feuerlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Feuerlabs/exometer_core","description":"Core components of exometer","fork":false,"url":"https://api.github.com/repos/Feuerlabs/exometer_core","forks_url":"https://api.github.com/repos/Feuerlabs/exometer_core/forks","keys_url":"https://api.github.com/repos/Feuerlabs/exometer_core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Feuerlabs/exometer_core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Feuerlabs/exometer_core/teams","hooks_url":"https://api.github.com/repos/Feuerlabs/exometer_core/hooks","issue_events_url":"https://api.github.com/repos/Feuerlabs/exometer_core/issues/events{/number}","events_url":"https://api.github.com/repos/Feuerlabs/exometer_core/events","assignees_url":"https://api.github.com/repos/Feuerlabs/exometer_core/assignees{/user}","branches_url":"https://api.github.com/repos/Feuerlabs/exometer_core/branches{/branch}","tags_url":"https://api.github.com/repos/Feuerlabs/exometer_core/tags","blobs_url":"https://api.github.com/repos/Feuerlabs/exometer_core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Feuerlabs/exometer_core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Feuerlabs/exometer_core/git/refs{/sha}","trees_url":"https://api.github.com/repos/Feuerlabs/exometer_core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Feuerlabs/exometer_core/statuses/{sha}","languages_url":"https://api.github.com/repos/Feuerlabs/exometer_core/languages","stargazers_url":"https://api.github.com/repos/Feuerlabs/exometer_core/stargazers","contributors_url":"https://api.github.com/repos/Feuerlabs/exometer_core/contributors","subscribers_url":"https://api.github.com/repos/Feuerlabs/exometer_core/subscribers","subscription_url":"https://api.github.com/repos/Feuerlabs/exometer_core/subscription","commits_url":"https://api.github.com/repos/Feuerlabs/exometer_core/commits{/sha}","git_commits_url":"https://api.github.com/repos/Feuerlabs/exometer_core/git/commits{/sha}","comments_url":"https://api.github.com/repos/Feuerlabs/exometer_core/comments{/number}","issue_comment_url":"https://api.github.com/repos/Feuerlabs/exometer_core/issues/comments{/number}","contents_url":"https://api.github.com/repos/Feuerlabs/exometer_core/contents/{+path}","compare_url":"https://api.github.com/repos/Feuerlabs/exometer_core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Feuerlabs/exometer_core/merges","archive_url":"https://api.github.com/repos/Feuerlabs/exometer_core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Feuerlabs/exometer_core/downloads","issues_url":"https://api.github.com/repos/Feuerlabs/exometer_core/issues{/number}","pulls_url":"https://api.github.com/repos/Feuerlabs/exometer_core/pulls{/number}","milestones_url":"https://api.github.com/repos/Feuerlabs/exometer_core/milestones{/number}","notifications_url":"https://api.github.com/repos/Feuerlabs/exometer_core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Feuerlabs/exometer_core/labels{/name}","releases_url":"https://api.github.com/repos/Feuerlabs/exometer_core/releases{/id}","created_at":"2014-11-17T19:08:17Z","updated_at":"2015-04-04T06:44:11Z","pushed_at":"2015-04-06T15:01:30Z","git_url":"git://github.com/Feuerlabs/exometer_core.git","ssh_url":"git@github.com:Feuerlabs/exometer_core.git","clone_url":"https://github.com/Feuerlabs/exometer_core.git","svn_url":"https://github.com/Feuerlabs/exometer_core","homepage":null,"size":857,"stargazers_count":5,"watchers_count":5,"language":"Erlang","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":2,"forks":10,"open_issues":2,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Feuerlabs/exometer_core/pulls/21"},"html":{"href":"https://github.com/Feuerlabs/exometer_core/pull/21"},"issue":{"href":"https://api.github.com/repos/Feuerlabs/exometer_core/issues/21"},"comments":{"href":"https://api.github.com/repos/Feuerlabs/exometer_core/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/Feuerlabs/exometer_core/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/Feuerlabs/exometer_core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Feuerlabs/exometer_core/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/Feuerlabs/exometer_core/statuses/185ef28f017bb542ed649da16835950c13517151"}}}}