{"action":"created","comment":{"url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/pulls/comments/219131990","pull_request_review_id":157230571,"id":219131990,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxOTEzMTk5MA==","diff_hunk":"@@ -1,12 +1,43 @@\n-import { AbsractMetric, Datasource, MetricId  } from \"./metric\";\n+import { AbsractMetric, Datasource, MetricId  } from './metric';\n+\n+import * as moment from 'moment';\n \n export class GraphiteMetric extends AbsractMetric {\n \n+    private static QUERY_TIME_REGEX = /\\&from=[^\\&]+\\&until=[^\\&]+\\&/;","path":"src/metrics/graphite_metric.ts","position":8,"original_position":8,"commit_id":"7f8be94459e21707bee789cc195d7f38260a5d32","original_commit_id":"7f8be94459e21707bee789cc195d7f38260a5d32","user":{"login":"jonyrock","id":1022757,"node_id":"MDQ6VXNlcjEwMjI3NTc=","avatar_url":"https://avatars1.githubusercontent.com/u/1022757?v=4","gravatar_id":"","url":"https://api.github.com/users/jonyrock","html_url":"https://github.com/jonyrock","followers_url":"https://api.github.com/users/jonyrock/followers","following_url":"https://api.github.com/users/jonyrock/following{/other_user}","gists_url":"https://api.github.com/users/jonyrock/gists{/gist_id}","starred_url":"https://api.github.com/users/jonyrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonyrock/subscriptions","organizations_url":"https://api.github.com/users/jonyrock/orgs","repos_url":"https://api.github.com/users/jonyrock/repos","events_url":"https://api.github.com/users/jonyrock/events{/privacy}","received_events_url":"https://api.github.com/users/jonyrock/received_events","type":"User","site_admin":false},"body":"You can move it to the top of the file. ","created_at":"2018-09-20T11:47:45Z","updated_at":"2018-09-20T11:51:41Z","html_url":"https://github.com/CorpGlory/grafana-datasource-kit/pull/20#discussion_r219131990","pull_request_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/pulls/20","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/pulls/comments/219131990"},"html":{"href":"https://github.com/CorpGlory/grafana-datasource-kit/pull/20#discussion_r219131990"},"pull_request":{"href":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/pulls/20","id":216936543,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2OTM2NTQz","html_url":"https://github.com/CorpGlory/grafana-datasource-kit/pull/20","diff_url":"https://github.com/CorpGlory/grafana-datasource-kit/pull/20.diff","patch_url":"https://github.com/CorpGlory/grafana-datasource-kit/pull/20.patch","issue_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/issues/20","number":20,"state":"open","locked":false,"title":"Graphite datasource #2","user":{"login":"amper43","id":5675912,"node_id":"MDQ6VXNlcjU2NzU5MTI=","avatar_url":"https://avatars1.githubusercontent.com/u/5675912?v=4","gravatar_id":"","url":"https://api.github.com/users/amper43","html_url":"https://github.com/amper43","followers_url":"https://api.github.com/users/amper43/followers","following_url":"https://api.github.com/users/amper43/following{/other_user}","gists_url":"https://api.github.com/users/amper43/gists{/gist_id}","starred_url":"https://api.github.com/users/amper43/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amper43/subscriptions","organizations_url":"https://api.github.com/users/amper43/orgs","repos_url":"https://api.github.com/users/amper43/repos","events_url":"https://api.github.com/users/amper43/events{/privacy}","received_events_url":"https://api.github.com/users/amper43/received_events","type":"User","site_admin":false},"body":"- add Graphite support\r\n- README updated\r\n\r\nFixes https://github.com/CorpGlory/grafana-datasource-kit/issues/2","created_at":"2018-09-20T11:25:48Z","updated_at":"2018-09-20T11:51:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"83e7c31e00c4b28c108cad3b0e904846bb1212a3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/pulls/20/commits","review_comments_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/pulls/20/comments","review_comment_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/issues/20/comments","statuses_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/statuses/7f8be94459e21707bee789cc195d7f38260a5d32","head":{"label":"CorpGlory:graphite-datasource-#2","ref":"graphite-datasource-#2","sha":"7f8be94459e21707bee789cc195d7f38260a5d32","user":{"login":"CorpGlory","id":20858176,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwODU4MTc2","avatar_url":"https://avatars1.githubusercontent.com/u/20858176?v=4","gravatar_id":"","url":"https://api.github.com/users/CorpGlory","html_url":"https://github.com/CorpGlory","followers_url":"https://api.github.com/users/CorpGlory/followers","following_url":"https://api.github.com/users/CorpGlory/following{/other_user}","gists_url":"https://api.github.com/users/CorpGlory/gists{/gist_id}","starred_url":"https://api.github.com/users/CorpGlory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CorpGlory/subscriptions","organizations_url":"https://api.github.com/users/CorpGlory/orgs","repos_url":"https://api.github.com/users/CorpGlory/repos","events_url":"https://api.github.com/users/CorpGlory/events{/privacy}","received_events_url":"https://api.github.com/users/CorpGlory/received_events","type":"Organization","site_admin":false},"repo":{"id":148315971,"node_id":"MDEwOlJlcG9zaXRvcnkxNDgzMTU5NzE=","name":"grafana-datasource-kit","full_name":"CorpGlory/grafana-datasource-kit","private":false,"owner":{"login":"CorpGlory","id":20858176,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwODU4MTc2","avatar_url":"https://avatars1.githubusercontent.com/u/20858176?v=4","gravatar_id":"","url":"https://api.github.com/users/CorpGlory","html_url":"https://github.com/CorpGlory","followers_url":"https://api.github.com/users/CorpGlory/followers","following_url":"https://api.github.com/users/CorpGlory/following{/other_user}","gists_url":"https://api.github.com/users/CorpGlory/gists{/gist_id}","starred_url":"https://api.github.com/users/CorpGlory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CorpGlory/subscriptions","organizations_url":"https://api.github.com/users/CorpGlory/orgs","repos_url":"https://api.github.com/users/CorpGlory/repos","events_url":"https://api.github.com/users/CorpGlory/events{/privacy}","received_events_url":"https://api.github.com/users/CorpGlory/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/CorpGlory/grafana-datasource-kit","description":"Node.js library for running Grafan datasources on backend plus utils","fork":false,"url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit","forks_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/forks","keys_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/teams","hooks_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/hooks","issue_events_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/issues/events{/number}","events_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/events","assignees_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/assignees{/user}","branches_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/branches{/branch}","tags_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/tags","blobs_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/git/refs{/sha}","trees_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/statuses/{sha}","languages_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/languages","stargazers_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/stargazers","contributors_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/contributors","subscribers_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/subscribers","subscription_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/subscription","commits_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/commits{/sha}","git_commits_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/git/commits{/sha}","comments_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/comments{/number}","issue_comment_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/issues/comments{/number}","contents_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/contents/{+path}","compare_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/merges","archive_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/downloads","issues_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/issues{/number}","pulls_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/pulls{/number}","milestones_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/milestones{/number}","notifications_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/labels{/name}","releases_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/releases{/id}","deployments_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/deployments","created_at":"2018-09-11T12:46:41Z","updated_at":"2018-09-19T16:52:24Z","pushed_at":"2018-09-20T11:44:58Z","git_url":"git://github.com/CorpGlory/grafana-datasource-kit.git","ssh_url":"git@github.com:CorpGlory/grafana-datasource-kit.git","clone_url":"https://github.com/CorpGlory/grafana-datasource-kit.git","svn_url":"https://github.com/CorpGlory/grafana-datasource-kit","homepage":null,"size":44,"stargazers_count":4,"watchers_count":4,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":5,"watchers":4,"default_branch":"master"}},"base":{"label":"CorpGlory:master","ref":"master","sha":"493de61d9774cca844d60a672c807814544e2ef0","user":{"login":"CorpGlory","id":20858176,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwODU4MTc2","avatar_url":"https://avatars1.githubusercontent.com/u/20858176?v=4","gravatar_id":"","url":"https://api.github.com/users/CorpGlory","html_url":"https://github.com/CorpGlory","followers_url":"https://api.github.com/users/CorpGlory/followers","following_url":"https://api.github.com/users/CorpGlory/following{/other_user}","gists_url":"https://api.github.com/users/CorpGlory/gists{/gist_id}","starred_url":"https://api.github.com/users/CorpGlory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CorpGlory/subscriptions","organizations_url":"https://api.github.com/users/CorpGlory/orgs","repos_url":"https://api.github.com/users/CorpGlory/repos","events_url":"https://api.github.com/users/CorpGlory/events{/privacy}","received_events_url":"https://api.github.com/users/CorpGlory/received_events","type":"Organization","site_admin":false},"repo":{"id":148315971,"node_id":"MDEwOlJlcG9zaXRvcnkxNDgzMTU5NzE=","name":"grafana-datasource-kit","full_name":"CorpGlory/grafana-datasource-kit","private":false,"owner":{"login":"CorpGlory","id":20858176,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwODU4MTc2","avatar_url":"https://avatars1.githubusercontent.com/u/20858176?v=4","gravatar_id":"","url":"https://api.github.com/users/CorpGlory","html_url":"https://github.com/CorpGlory","followers_url":"https://api.github.com/users/CorpGlory/followers","following_url":"https://api.github.com/users/CorpGlory/following{/other_user}","gists_url":"https://api.github.com/users/CorpGlory/gists{/gist_id}","starred_url":"https://api.github.com/users/CorpGlory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CorpGlory/subscriptions","organizations_url":"https://api.github.com/users/CorpGlory/orgs","repos_url":"https://api.github.com/users/CorpGlory/repos","events_url":"https://api.github.com/users/CorpGlory/events{/privacy}","received_events_url":"https://api.github.com/users/CorpGlory/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/CorpGlory/grafana-datasource-kit","description":"Node.js library for running Grafan datasources on backend plus utils","fork":false,"url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit","forks_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/forks","keys_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/teams","hooks_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/hooks","issue_events_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/issues/events{/number}","events_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/events","assignees_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/assignees{/user}","branches_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/branches{/branch}","tags_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/tags","blobs_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/git/refs{/sha}","trees_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/statuses/{sha}","languages_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/languages","stargazers_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/stargazers","contributors_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/contributors","subscribers_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/subscribers","subscription_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/subscription","commits_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/commits{/sha}","git_commits_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/git/commits{/sha}","comments_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/comments{/number}","issue_comment_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/issues/comments{/number}","contents_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/contents/{+path}","compare_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/merges","archive_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/downloads","issues_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/issues{/number}","pulls_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/pulls{/number}","milestones_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/milestones{/number}","notifications_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/labels{/name}","releases_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/releases{/id}","deployments_url":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/deployments","created_at":"2018-09-11T12:46:41Z","updated_at":"2018-09-19T16:52:24Z","pushed_at":"2018-09-20T11:44:58Z","git_url":"git://github.com/CorpGlory/grafana-datasource-kit.git","ssh_url":"git@github.com:CorpGlory/grafana-datasource-kit.git","clone_url":"https://github.com/CorpGlory/grafana-datasource-kit.git","svn_url":"https://github.com/CorpGlory/grafana-datasource-kit","homepage":null,"size":44,"stargazers_count":4,"watchers_count":4,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":5,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/pulls/20"},"html":{"href":"https://github.com/CorpGlory/grafana-datasource-kit/pull/20"},"issue":{"href":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/issues/20"},"comments":{"href":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/CorpGlory/grafana-datasource-kit/statuses/7f8be94459e21707bee789cc195d7f38260a5d32"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"jonyrock"}}