{"action":"created","comment":{"url":"https://api.github.com/repos/rounds/statsd-datadog-backend/pulls/comments/68730698","id":68730698,"diff_hunk":"@@ -225,6 +348,23 @@ exports.init = function datadog_init(startup_time, config, events, log) {\n       datadogApiHost = 'https://app.datadoghq.com';\n    }\n \n+   // Read metric regexps string into RegExp form.\n+   if (config.datadogMetricTagsByRegExp &&\n+       config.datadogMetricTagsByRegExp.constructor === Object &&\n+       Object.keys(config.datadogMetricTagsByRegExp).length > 0) {\n+\n+       for (var re in config.datadogMetricTagsByRegExp) {","path":"lib/datadog.js","position":251,"original_position":251,"commit_id":"fac79a0fc175971e698e5852ab28eed7de44c378","original_commit_id":"fac79a0fc175971e698e5852ab28eed7de44c378","user":{"login":"liorama","id":537868,"avatar_url":"https://avatars.githubusercontent.com/u/537868?v=3","gravatar_id":"","url":"https://api.github.com/users/liorama","html_url":"https://github.com/liorama","followers_url":"https://api.github.com/users/liorama/followers","following_url":"https://api.github.com/users/liorama/following{/other_user}","gists_url":"https://api.github.com/users/liorama/gists{/gist_id}","starred_url":"https://api.github.com/users/liorama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liorama/subscriptions","organizations_url":"https://api.github.com/users/liorama/orgs","repos_url":"https://api.github.com/users/liorama/repos","events_url":"https://api.github.com/users/liorama/events{/privacy}","received_events_url":"https://api.github.com/users/liorama/received_events","type":"User","site_admin":false},"body":"move `var re` up","created_at":"2016-06-28T10:09:58Z","updated_at":"2016-06-28T10:09:58Z","html_url":"https://github.com/rounds/statsd-datadog-backend/pull/1#discussion_r68730698","pull_request_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/rounds/statsd-datadog-backend/pulls/comments/68730698"},"html":{"href":"https://github.com/rounds/statsd-datadog-backend/pull/1#discussion_r68730698"},"pull_request":{"href":"https://api.github.com/repos/rounds/statsd-datadog-backend/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/rounds/statsd-datadog-backend/pulls/1","id":75228927,"html_url":"https://github.com/rounds/statsd-datadog-backend/pull/1","diff_url":"https://github.com/rounds/statsd-datadog-backend/pull/1.diff","patch_url":"https://github.com/rounds/statsd-datadog-backend/pull/1.patch","issue_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/issues/1","number":1,"state":"closed","locked":false,"title":"add support for extracting tags from metric key by javascript RegExp","user":{"login":"oryband","id":115387,"avatar_url":"https://avatars.githubusercontent.com/u/115387?v=3","gravatar_id":"","url":"https://api.github.com/users/oryband","html_url":"https://github.com/oryband","followers_url":"https://api.github.com/users/oryband/followers","following_url":"https://api.github.com/users/oryband/following{/other_user}","gists_url":"https://api.github.com/users/oryband/gists{/gist_id}","starred_url":"https://api.github.com/users/oryband/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oryband/subscriptions","organizations_url":"https://api.github.com/users/oryband/orgs","repos_url":"https://api.github.com/users/oryband/repos","events_url":"https://api.github.com/users/oryband/events{/privacy}","received_events_url":"https://api.github.com/users/oryband/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-26T12:47:04Z","updated_at":"2016-06-28T10:09:58Z","closed_at":"2016-06-27T09:58:24Z","merged_at":null,"merge_commit_sha":"cc88e61449add5a04f80d47824cf1ab495bc3525","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/pulls/1/commits","review_comments_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/pulls/1/comments","review_comment_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/issues/1/comments","statuses_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/statuses/fac79a0fc175971e698e5852ab28eed7de44c378","head":{"label":"rounds:metric-parts-to-tags","ref":"metric-parts-to-tags","sha":"fac79a0fc175971e698e5852ab28eed7de44c378","user":{"login":"rounds","id":3406523,"avatar_url":"https://avatars.githubusercontent.com/u/3406523?v=3","gravatar_id":"","url":"https://api.github.com/users/rounds","html_url":"https://github.com/rounds","followers_url":"https://api.github.com/users/rounds/followers","following_url":"https://api.github.com/users/rounds/following{/other_user}","gists_url":"https://api.github.com/users/rounds/gists{/gist_id}","starred_url":"https://api.github.com/users/rounds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rounds/subscriptions","organizations_url":"https://api.github.com/users/rounds/orgs","repos_url":"https://api.github.com/users/rounds/repos","events_url":"https://api.github.com/users/rounds/events{/privacy}","received_events_url":"https://api.github.com/users/rounds/received_events","type":"Organization","site_admin":false},"repo":{"id":61802956,"name":"statsd-datadog-backend","full_name":"rounds/statsd-datadog-backend","owner":{"login":"rounds","id":3406523,"avatar_url":"https://avatars.githubusercontent.com/u/3406523?v=3","gravatar_id":"","url":"https://api.github.com/users/rounds","html_url":"https://github.com/rounds","followers_url":"https://api.github.com/users/rounds/followers","following_url":"https://api.github.com/users/rounds/following{/other_user}","gists_url":"https://api.github.com/users/rounds/gists{/gist_id}","starred_url":"https://api.github.com/users/rounds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rounds/subscriptions","organizations_url":"https://api.github.com/users/rounds/orgs","repos_url":"https://api.github.com/users/rounds/repos","events_url":"https://api.github.com/users/rounds/events{/privacy}","received_events_url":"https://api.github.com/users/rounds/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rounds/statsd-datadog-backend","description":"A plugin to connect etsy's statsD to Datadog","fork":true,"url":"https://api.github.com/repos/rounds/statsd-datadog-backend","forks_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/forks","keys_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/teams","hooks_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/hooks","issue_events_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/issues/events{/number}","events_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/events","assignees_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/assignees{/user}","branches_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/branches{/branch}","tags_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/tags","blobs_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/languages","stargazers_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/stargazers","contributors_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/contributors","subscribers_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/subscribers","subscription_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/subscription","commits_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/contents/{+path}","compare_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/merges","archive_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/downloads","issues_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/issues{/number}","pulls_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/labels{/name}","releases_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/releases{/id}","deployments_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/deployments","created_at":"2016-06-23T12:19:26Z","updated_at":"2016-06-23T12:19:26Z","pushed_at":"2016-06-27T09:44:18Z","git_url":"git://github.com/rounds/statsd-datadog-backend.git","ssh_url":"git@github.com:rounds/statsd-datadog-backend.git","clone_url":"https://github.com/rounds/statsd-datadog-backend.git","svn_url":"https://github.com/rounds/statsd-datadog-backend","homepage":null,"size":26,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rounds:master","ref":"master","sha":"b63e136c7cf0dc64a56ae62bdf71e361a8134399","user":{"login":"rounds","id":3406523,"avatar_url":"https://avatars.githubusercontent.com/u/3406523?v=3","gravatar_id":"","url":"https://api.github.com/users/rounds","html_url":"https://github.com/rounds","followers_url":"https://api.github.com/users/rounds/followers","following_url":"https://api.github.com/users/rounds/following{/other_user}","gists_url":"https://api.github.com/users/rounds/gists{/gist_id}","starred_url":"https://api.github.com/users/rounds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rounds/subscriptions","organizations_url":"https://api.github.com/users/rounds/orgs","repos_url":"https://api.github.com/users/rounds/repos","events_url":"https://api.github.com/users/rounds/events{/privacy}","received_events_url":"https://api.github.com/users/rounds/received_events","type":"Organization","site_admin":false},"repo":{"id":61802956,"name":"statsd-datadog-backend","full_name":"rounds/statsd-datadog-backend","owner":{"login":"rounds","id":3406523,"avatar_url":"https://avatars.githubusercontent.com/u/3406523?v=3","gravatar_id":"","url":"https://api.github.com/users/rounds","html_url":"https://github.com/rounds","followers_url":"https://api.github.com/users/rounds/followers","following_url":"https://api.github.com/users/rounds/following{/other_user}","gists_url":"https://api.github.com/users/rounds/gists{/gist_id}","starred_url":"https://api.github.com/users/rounds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rounds/subscriptions","organizations_url":"https://api.github.com/users/rounds/orgs","repos_url":"https://api.github.com/users/rounds/repos","events_url":"https://api.github.com/users/rounds/events{/privacy}","received_events_url":"https://api.github.com/users/rounds/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rounds/statsd-datadog-backend","description":"A plugin to connect etsy's statsD to Datadog","fork":true,"url":"https://api.github.com/repos/rounds/statsd-datadog-backend","forks_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/forks","keys_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/teams","hooks_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/hooks","issue_events_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/issues/events{/number}","events_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/events","assignees_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/assignees{/user}","branches_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/branches{/branch}","tags_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/tags","blobs_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/languages","stargazers_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/stargazers","contributors_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/contributors","subscribers_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/subscribers","subscription_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/subscription","commits_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/contents/{+path}","compare_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/merges","archive_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/downloads","issues_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/issues{/number}","pulls_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/labels{/name}","releases_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/releases{/id}","deployments_url":"https://api.github.com/repos/rounds/statsd-datadog-backend/deployments","created_at":"2016-06-23T12:19:26Z","updated_at":"2016-06-23T12:19:26Z","pushed_at":"2016-06-27T09:44:18Z","git_url":"git://github.com/rounds/statsd-datadog-backend.git","ssh_url":"git@github.com:rounds/statsd-datadog-backend.git","clone_url":"https://github.com/rounds/statsd-datadog-backend.git","svn_url":"https://github.com/rounds/statsd-datadog-backend","homepage":null,"size":26,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rounds/statsd-datadog-backend/pulls/1"},"html":{"href":"https://github.com/rounds/statsd-datadog-backend/pull/1"},"issue":{"href":"https://api.github.com/repos/rounds/statsd-datadog-backend/issues/1"},"comments":{"href":"https://api.github.com/repos/rounds/statsd-datadog-backend/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/rounds/statsd-datadog-backend/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/rounds/statsd-datadog-backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rounds/statsd-datadog-backend/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/rounds/statsd-datadog-backend/statuses/fac79a0fc175971e698e5852ab28eed7de44c378"}}}}
{"actor":{"display_login":"liorama"}}