{"action":"created","comment":{"url":"https://api.github.com/repos/openebs/maya/pulls/comments/231113633","pull_request_review_id":172006206,"id":231113633,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMTExMzYzMw==","diff_hunk":"@@ -0,0 +1,79 @@\n+package usagemetrics\n+\n+import (\n+\t\"github.com/golang/glog\"\n+\tanalytics \"github.com/jpillora/go-ogle-analytics\"\n+\tk8sapi \"github.com/openebs/maya/pkg/client/k8s/v1alpha1\"\n+\topenebsversion \"github.com/openebs/maya/pkg/version\"\n+\tmetav1 \"k8s.io/apimachinery/pkg/apis/meta/v1\"\n+\tk8sversion \"k8s.io/client-go/pkg/version\"\n+)\n+\n+const (\n+\t// GAclientID is the unique code of the project in Google Analytics\n+\tGAclientID = \"UA-127388617-1\"\n+)\n+\n+// Event is a custom metric collected by OpenEBS developers\n+type Event struct {\n+\tcategory string","path":"pkg/usagemetrics/googleanalytics.go","position":19,"original_position":19,"commit_id":"a0727890dcfc551a6e3a15f8ba957211b6d03a1c","original_commit_id":"a0727890dcfc551a6e3a15f8ba957211b6d03a1c","user":{"login":"kmova","id":12488783,"node_id":"MDQ6VXNlcjEyNDg4Nzgz","avatar_url":"https://avatars2.githubusercontent.com/u/12488783?v=4","gravatar_id":"","url":"https://api.github.com/users/kmova","html_url":"https://github.com/kmova","followers_url":"https://api.github.com/users/kmova/followers","following_url":"https://api.github.com/users/kmova/following{/other_user}","gists_url":"https://api.github.com/users/kmova/gists{/gist_id}","starred_url":"https://api.github.com/users/kmova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmova/subscriptions","organizations_url":"https://api.github.com/users/kmova/orgs","repos_url":"https://api.github.com/users/kmova/repos","events_url":"https://api.github.com/users/kmova/events{/privacy}","received_events_url":"https://api.github.com/users/kmova/received_events","type":"User","site_admin":false},"body":" add 2 more parameters here called - type and id. e.type will be set as ApplicationName and e.id will be set up as PageTitle.","created_at":"2018-11-06T13:05:07Z","updated_at":"2018-11-06T13:05:07Z","html_url":"https://github.com/openebs/maya/pull/771#discussion_r231113633","pull_request_url":"https://api.github.com/repos/openebs/maya/pulls/771","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/openebs/maya/pulls/comments/231113633"},"html":{"href":"https://github.com/openebs/maya/pull/771#discussion_r231113633"},"pull_request":{"href":"https://api.github.com/repos/openebs/maya/pulls/771"}}},"pull_request":{"url":"https://api.github.com/repos/openebs/maya/pulls/771","id":226606191,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2NjA2MTkx","html_url":"https://github.com/openebs/maya/pull/771","diff_url":"https://github.com/openebs/maya/pull/771.diff","patch_url":"https://github.com/openebs/maya/pull/771.patch","issue_url":"https://api.github.com/repos/openebs/maya/issues/771","number":771,"state":"open","locked":false,"title":"[WIP] Add helper functions to implement openebs usage metrics","user":{"login":"vharsh","id":9304050,"node_id":"MDQ6VXNlcjkzMDQwNTA=","avatar_url":"https://avatars0.githubusercontent.com/u/9304050?v=4","gravatar_id":"","url":"https://api.github.com/users/vharsh","html_url":"https://github.com/vharsh","followers_url":"https://api.github.com/users/vharsh/followers","following_url":"https://api.github.com/users/vharsh/following{/other_user}","gists_url":"https://api.github.com/users/vharsh/gists{/gist_id}","starred_url":"https://api.github.com/users/vharsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vharsh/subscriptions","organizations_url":"https://api.github.com/users/vharsh/orgs","repos_url":"https://api.github.com/users/vharsh/repos","events_url":"https://api.github.com/users/vharsh/events{/privacy}","received_events_url":"https://api.github.com/users/vharsh/received_events","type":"User","site_admin":false},"body":"Signed-off-by: Harsh Vardhan <harsh.vardhan@openebs.io>\r\n\r\nimprovement: https://github.com/openebs/openebs/issues/2257","created_at":"2018-10-29T15:31:41Z","updated_at":"2018-11-06T13:05:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"145d9968462b3d9c181a21166f3210ea6a47bb55","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/openebs/maya/pulls/771/commits","review_comments_url":"https://api.github.com/repos/openebs/maya/pulls/771/comments","review_comment_url":"https://api.github.com/repos/openebs/maya/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openebs/maya/issues/771/comments","statuses_url":"https://api.github.com/repos/openebs/maya/statuses/a0727890dcfc551a6e3a15f8ba957211b6d03a1c","head":{"label":"vharsh:f149_us3000","ref":"f149_us3000","sha":"a0727890dcfc551a6e3a15f8ba957211b6d03a1c","user":{"login":"vharsh","id":9304050,"node_id":"MDQ6VXNlcjkzMDQwNTA=","avatar_url":"https://avatars0.githubusercontent.com/u/9304050?v=4","gravatar_id":"","url":"https://api.github.com/users/vharsh","html_url":"https://github.com/vharsh","followers_url":"https://api.github.com/users/vharsh/followers","following_url":"https://api.github.com/users/vharsh/following{/other_user}","gists_url":"https://api.github.com/users/vharsh/gists{/gist_id}","starred_url":"https://api.github.com/users/vharsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vharsh/subscriptions","organizations_url":"https://api.github.com/users/vharsh/orgs","repos_url":"https://api.github.com/users/vharsh/repos","events_url":"https://api.github.com/users/vharsh/events{/privacy}","received_events_url":"https://api.github.com/users/vharsh/received_events","type":"User","site_admin":false},"repo":{"id":153230201,"node_id":"MDEwOlJlcG9zaXRvcnkxNTMyMzAyMDE=","name":"maya","full_name":"vharsh/maya","private":false,"owner":{"login":"vharsh","id":9304050,"node_id":"MDQ6VXNlcjkzMDQwNTA=","avatar_url":"https://avatars0.githubusercontent.com/u/9304050?v=4","gravatar_id":"","url":"https://api.github.com/users/vharsh","html_url":"https://github.com/vharsh","followers_url":"https://api.github.com/users/vharsh/followers","following_url":"https://api.github.com/users/vharsh/following{/other_user}","gists_url":"https://api.github.com/users/vharsh/gists{/gist_id}","starred_url":"https://api.github.com/users/vharsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vharsh/subscriptions","organizations_url":"https://api.github.com/users/vharsh/orgs","repos_url":"https://api.github.com/users/vharsh/repos","events_url":"https://api.github.com/users/vharsh/events{/privacy}","received_events_url":"https://api.github.com/users/vharsh/received_events","type":"User","site_admin":false},"html_url":"https://github.com/vharsh/maya","description":"OpenEBS Maya extends Kubernetes capabilities to orchestrate CAS containers.","fork":true,"url":"https://api.github.com/repos/vharsh/maya","forks_url":"https://api.github.com/repos/vharsh/maya/forks","keys_url":"https://api.github.com/repos/vharsh/maya/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vharsh/maya/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vharsh/maya/teams","hooks_url":"https://api.github.com/repos/vharsh/maya/hooks","issue_events_url":"https://api.github.com/repos/vharsh/maya/issues/events{/number}","events_url":"https://api.github.com/repos/vharsh/maya/events","assignees_url":"https://api.github.com/repos/vharsh/maya/assignees{/user}","branches_url":"https://api.github.com/repos/vharsh/maya/branches{/branch}","tags_url":"https://api.github.com/repos/vharsh/maya/tags","blobs_url":"https://api.github.com/repos/vharsh/maya/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vharsh/maya/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vharsh/maya/git/refs{/sha}","trees_url":"https://api.github.com/repos/vharsh/maya/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vharsh/maya/statuses/{sha}","languages_url":"https://api.github.com/repos/vharsh/maya/languages","stargazers_url":"https://api.github.com/repos/vharsh/maya/stargazers","contributors_url":"https://api.github.com/repos/vharsh/maya/contributors","subscribers_url":"https://api.github.com/repos/vharsh/maya/subscribers","subscription_url":"https://api.github.com/repos/vharsh/maya/subscription","commits_url":"https://api.github.com/repos/vharsh/maya/commits{/sha}","git_commits_url":"https://api.github.com/repos/vharsh/maya/git/commits{/sha}","comments_url":"https://api.github.com/repos/vharsh/maya/comments{/number}","issue_comment_url":"https://api.github.com/repos/vharsh/maya/issues/comments{/number}","contents_url":"https://api.github.com/repos/vharsh/maya/contents/{+path}","compare_url":"https://api.github.com/repos/vharsh/maya/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vharsh/maya/merges","archive_url":"https://api.github.com/repos/vharsh/maya/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vharsh/maya/downloads","issues_url":"https://api.github.com/repos/vharsh/maya/issues{/number}","pulls_url":"https://api.github.com/repos/vharsh/maya/pulls{/number}","milestones_url":"https://api.github.com/repos/vharsh/maya/milestones{/number}","notifications_url":"https://api.github.com/repos/vharsh/maya/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vharsh/maya/labels{/name}","releases_url":"https://api.github.com/repos/vharsh/maya/releases{/id}","deployments_url":"https://api.github.com/repos/vharsh/maya/deployments","created_at":"2018-10-16T05:56:57Z","updated_at":"2018-10-26T11:04:59Z","pushed_at":"2018-11-06T12:17:54Z","git_url":"git://github.com/vharsh/maya.git","ssh_url":"git@github.com:vharsh/maya.git","clone_url":"https://github.com/vharsh/maya.git","svn_url":"https://github.com/vharsh/maya","homepage":"https://docs.openebs.io","size":98650,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openebs:master","ref":"master","sha":"88dfe0bcafc8ca8191d4630cce00978743be8722","user":{"login":"openebs","id":20769039,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwNzY5MDM5","avatar_url":"https://avatars0.githubusercontent.com/u/20769039?v=4","gravatar_id":"","url":"https://api.github.com/users/openebs","html_url":"https://github.com/openebs","followers_url":"https://api.github.com/users/openebs/followers","following_url":"https://api.github.com/users/openebs/following{/other_user}","gists_url":"https://api.github.com/users/openebs/gists{/gist_id}","starred_url":"https://api.github.com/users/openebs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openebs/subscriptions","organizations_url":"https://api.github.com/users/openebs/orgs","repos_url":"https://api.github.com/users/openebs/repos","events_url":"https://api.github.com/users/openebs/events{/privacy}","received_events_url":"https://api.github.com/users/openebs/received_events","type":"Organization","site_admin":false},"repo":{"id":70136587,"node_id":"MDEwOlJlcG9zaXRvcnk3MDEzNjU4Nw==","name":"maya","full_name":"openebs/maya","private":false,"owner":{"login":"openebs","id":20769039,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwNzY5MDM5","avatar_url":"https://avatars0.githubusercontent.com/u/20769039?v=4","gravatar_id":"","url":"https://api.github.com/users/openebs","html_url":"https://github.com/openebs","followers_url":"https://api.github.com/users/openebs/followers","following_url":"https://api.github.com/users/openebs/following{/other_user}","gists_url":"https://api.github.com/users/openebs/gists{/gist_id}","starred_url":"https://api.github.com/users/openebs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openebs/subscriptions","organizations_url":"https://api.github.com/users/openebs/orgs","repos_url":"https://api.github.com/users/openebs/repos","events_url":"https://api.github.com/users/openebs/events{/privacy}","received_events_url":"https://api.github.com/users/openebs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/openebs/maya","description":"OpenEBS Maya extends Kubernetes capabilities to orchestrate CAS containers.","fork":false,"url":"https://api.github.com/repos/openebs/maya","forks_url":"https://api.github.com/repos/openebs/maya/forks","keys_url":"https://api.github.com/repos/openebs/maya/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openebs/maya/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openebs/maya/teams","hooks_url":"https://api.github.com/repos/openebs/maya/hooks","issue_events_url":"https://api.github.com/repos/openebs/maya/issues/events{/number}","events_url":"https://api.github.com/repos/openebs/maya/events","assignees_url":"https://api.github.com/repos/openebs/maya/assignees{/user}","branches_url":"https://api.github.com/repos/openebs/maya/branches{/branch}","tags_url":"https://api.github.com/repos/openebs/maya/tags","blobs_url":"https://api.github.com/repos/openebs/maya/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openebs/maya/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openebs/maya/git/refs{/sha}","trees_url":"https://api.github.com/repos/openebs/maya/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openebs/maya/statuses/{sha}","languages_url":"https://api.github.com/repos/openebs/maya/languages","stargazers_url":"https://api.github.com/repos/openebs/maya/stargazers","contributors_url":"https://api.github.com/repos/openebs/maya/contributors","subscribers_url":"https://api.github.com/repos/openebs/maya/subscribers","subscription_url":"https://api.github.com/repos/openebs/maya/subscription","commits_url":"https://api.github.com/repos/openebs/maya/commits{/sha}","git_commits_url":"https://api.github.com/repos/openebs/maya/git/commits{/sha}","comments_url":"https://api.github.com/repos/openebs/maya/comments{/number}","issue_comment_url":"https://api.github.com/repos/openebs/maya/issues/comments{/number}","contents_url":"https://api.github.com/repos/openebs/maya/contents/{+path}","compare_url":"https://api.github.com/repos/openebs/maya/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openebs/maya/merges","archive_url":"https://api.github.com/repos/openebs/maya/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openebs/maya/downloads","issues_url":"https://api.github.com/repos/openebs/maya/issues{/number}","pulls_url":"https://api.github.com/repos/openebs/maya/pulls{/number}","milestones_url":"https://api.github.com/repos/openebs/maya/milestones{/number}","notifications_url":"https://api.github.com/repos/openebs/maya/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openebs/maya/labels{/name}","releases_url":"https://api.github.com/repos/openebs/maya/releases{/id}","deployments_url":"https://api.github.com/repos/openebs/maya/deployments","created_at":"2016-10-06T08:34:13Z","updated_at":"2018-11-05T12:46:36Z","pushed_at":"2018-11-06T12:17:56Z","git_url":"git://github.com/openebs/maya.git","ssh_url":"git@github.com:openebs/maya.git","clone_url":"https://github.com/openebs/maya.git","svn_url":"https://github.com/openebs/maya","homepage":"https://docs.openebs.io","size":98670,"stargazers_count":120,"watchers_count":120,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":215,"mirror_url":null,"archived":false,"open_issues_count":44,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":215,"open_issues":44,"watchers":120,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openebs/maya/pulls/771"},"html":{"href":"https://github.com/openebs/maya/pull/771"},"issue":{"href":"https://api.github.com/repos/openebs/maya/issues/771"},"comments":{"href":"https://api.github.com/repos/openebs/maya/issues/771/comments"},"review_comments":{"href":"https://api.github.com/repos/openebs/maya/pulls/771/comments"},"review_comment":{"href":"https://api.github.com/repos/openebs/maya/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openebs/maya/pulls/771/commits"},"statuses":{"href":"https://api.github.com/repos/openebs/maya/statuses/a0727890dcfc551a6e3a15f8ba957211b6d03a1c"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"kmova"}}