{"action":"created","comment":{"url":"https://api.github.com/repos/apcera/continuum-sample-apps/pulls/comments/33285094","id":33285094,"diff_hunk":"@@ -0,0 +1,211 @@\n+// Copyright 2012-2015 Apcera Inc. All rights reserved.\n+\n+/*\n+This tool fetches the CPU, memory and some other information of the system that\n+it is running on and displays them to the user.\n+*/\n+package main\n+\n+import (\n+\t\"fmt\"\n+\t\"io\"\n+\t\"log\"\n+\t\"net\"\n+\t\"net/http\"\n+\t\"os\"\n+\t\"os/exec\"\n+\t\"runtime\"\n+\t\"strconv\"\n+)\n+\n+func main() {\n+\thttp.HandleFunc(\"/\", SystemInfo)\n+\terr := http.ListenAndServe(\":\"+os.Getenv(\"PORT\"), nil)\n+\tif err != nil {\n+\t\tlog.Fatal(\"ListenAndServe: \", err)\n+\t}\n+}\n+\n+func SystemInfo(w http.ResponseWriter, req *http.Request) {","path":"example-go-system-info/system_info.go","position":29,"original_position":29,"commit_id":"299c85d43d56c97da98d14111d4067c532e88916","original_commit_id":"299c85d43d56c97da98d14111d4067c532e88916","user":{"login":"sray7965","id":11761868,"avatar_url":"https://avatars.githubusercontent.com/u/11761868?v=3","gravatar_id":"","url":"https://api.github.com/users/sray7965","html_url":"https://github.com/sray7965","followers_url":"https://api.github.com/users/sray7965/followers","following_url":"https://api.github.com/users/sray7965/following{/other_user}","gists_url":"https://api.github.com/users/sray7965/gists{/gist_id}","starred_url":"https://api.github.com/users/sray7965/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sray7965/subscriptions","organizations_url":"https://api.github.com/users/sray7965/orgs","repos_url":"https://api.github.com/users/sray7965/repos","events_url":"https://api.github.com/users/sray7965/events{/privacy}","received_events_url":"https://api.github.com/users/sray7965/received_events","type":"User","site_admin":false},"body":"Fixed.","created_at":"2015-06-25T18:01:41Z","updated_at":"2015-06-25T18:01:41Z","html_url":"https://github.com/apcera/continuum-sample-apps/pull/24#discussion_r33285094","pull_request_url":"https://api.github.com/repos/apcera/continuum-sample-apps/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/apcera/continuum-sample-apps/pulls/comments/33285094"},"html":{"href":"https://github.com/apcera/continuum-sample-apps/pull/24#discussion_r33285094"},"pull_request":{"href":"https://api.github.com/repos/apcera/continuum-sample-apps/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/apcera/continuum-sample-apps/pulls/24","id":38402675,"html_url":"https://github.com/apcera/continuum-sample-apps/pull/24","diff_url":"https://github.com/apcera/continuum-sample-apps/pull/24.diff","patch_url":"https://github.com/apcera/continuum-sample-apps/pull/24.patch","issue_url":"https://api.github.com/repos/apcera/continuum-sample-apps/issues/24","number":24,"state":"open","locked":false,"title":"A tool that returns system information.","user":{"login":"sray7965","id":11761868,"avatar_url":"https://avatars.githubusercontent.com/u/11761868?v=3","gravatar_id":"","url":"https://api.github.com/users/sray7965","html_url":"https://github.com/sray7965","followers_url":"https://api.github.com/users/sray7965/followers","following_url":"https://api.github.com/users/sray7965/following{/other_user}","gists_url":"https://api.github.com/users/sray7965/gists{/gist_id}","starred_url":"https://api.github.com/users/sray7965/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sray7965/subscriptions","organizations_url":"https://api.github.com/users/sray7965/orgs","repos_url":"https://api.github.com/users/sray7965/repos","events_url":"https://api.github.com/users/sray7965/events{/privacy}","received_events_url":"https://api.github.com/users/sray7965/received_events","type":"User","site_admin":false},"body":"This tool returns information related to CPU, memory, cache, hypervisor, virtualization,\r\nhostname, IP addresses, etc of the system it is running on.\r\n\r\n@krobertson @alextoombs - Please review. Just to give you guys a little bit of background I have changed the app so that it can be deployed as an app on containers and can be invoked via http. And even if some information like cache etc cannot be retrieved from the system still the app progresses to get whatever information it can and just displays an error string for the data it could not get or may be a blank line next to the field. These new changes have been made as per the business requirement after my discussion with @juanman2.","created_at":"2015-06-24T02:39:47Z","updated_at":"2015-06-25T18:01:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"946449e5bcf9665eeb537e9b2536592a50df3592","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apcera/continuum-sample-apps/pulls/24/commits","review_comments_url":"https://api.github.com/repos/apcera/continuum-sample-apps/pulls/24/comments","review_comment_url":"https://api.github.com/repos/apcera/continuum-sample-apps/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apcera/continuum-sample-apps/issues/24/comments","statuses_url":"https://api.github.com/repos/apcera/continuum-sample-apps/statuses/299c85d43d56c97da98d14111d4067c532e88916","head":{"label":"apcera:system-info","ref":"system-info","sha":"299c85d43d56c97da98d14111d4067c532e88916","user":{"login":"apcera","id":1637964,"avatar_url":"https://avatars.githubusercontent.com/u/1637964?v=3","gravatar_id":"","url":"https://api.github.com/users/apcera","html_url":"https://github.com/apcera","followers_url":"https://api.github.com/users/apcera/followers","following_url":"https://api.github.com/users/apcera/following{/other_user}","gists_url":"https://api.github.com/users/apcera/gists{/gist_id}","starred_url":"https://api.github.com/users/apcera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apcera/subscriptions","organizations_url":"https://api.github.com/users/apcera/orgs","repos_url":"https://api.github.com/users/apcera/repos","events_url":"https://api.github.com/users/apcera/events{/privacy}","received_events_url":"https://api.github.com/users/apcera/received_events","type":"Organization","site_admin":false},"repo":{"id":24278863,"name":"continuum-sample-apps","full_name":"apcera/continuum-sample-apps","owner":{"login":"apcera","id":1637964,"avatar_url":"https://avatars.githubusercontent.com/u/1637964?v=3","gravatar_id":"","url":"https://api.github.com/users/apcera","html_url":"https://github.com/apcera","followers_url":"https://api.github.com/users/apcera/followers","following_url":"https://api.github.com/users/apcera/following{/other_user}","gists_url":"https://api.github.com/users/apcera/gists{/gist_id}","starred_url":"https://api.github.com/users/apcera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apcera/subscriptions","organizations_url":"https://api.github.com/users/apcera/orgs","repos_url":"https://api.github.com/users/apcera/repos","events_url":"https://api.github.com/users/apcera/events{/privacy}","received_events_url":"https://api.github.com/users/apcera/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apcera/continuum-sample-apps","description":"Sample apps for Continuum stagers","fork":false,"url":"https://api.github.com/repos/apcera/continuum-sample-apps","forks_url":"https://api.github.com/repos/apcera/continuum-sample-apps/forks","keys_url":"https://api.github.com/repos/apcera/continuum-sample-apps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apcera/continuum-sample-apps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apcera/continuum-sample-apps/teams","hooks_url":"https://api.github.com/repos/apcera/continuum-sample-apps/hooks","issue_events_url":"https://api.github.com/repos/apcera/continuum-sample-apps/issues/events{/number}","events_url":"https://api.github.com/repos/apcera/continuum-sample-apps/events","assignees_url":"https://api.github.com/repos/apcera/continuum-sample-apps/assignees{/user}","branches_url":"https://api.github.com/repos/apcera/continuum-sample-apps/branches{/branch}","tags_url":"https://api.github.com/repos/apcera/continuum-sample-apps/tags","blobs_url":"https://api.github.com/repos/apcera/continuum-sample-apps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apcera/continuum-sample-apps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apcera/continuum-sample-apps/git/refs{/sha}","trees_url":"https://api.github.com/repos/apcera/continuum-sample-apps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apcera/continuum-sample-apps/statuses/{sha}","languages_url":"https://api.github.com/repos/apcera/continuum-sample-apps/languages","stargazers_url":"https://api.github.com/repos/apcera/continuum-sample-apps/stargazers","contributors_url":"https://api.github.com/repos/apcera/continuum-sample-apps/contributors","subscribers_url":"https://api.github.com/repos/apcera/continuum-sample-apps/subscribers","subscription_url":"https://api.github.com/repos/apcera/continuum-sample-apps/subscription","commits_url":"https://api.github.com/repos/apcera/continuum-sample-apps/commits{/sha}","git_commits_url":"https://api.github.com/repos/apcera/continuum-sample-apps/git/commits{/sha}","comments_url":"https://api.github.com/repos/apcera/continuum-sample-apps/comments{/number}","issue_comment_url":"https://api.github.com/repos/apcera/continuum-sample-apps/issues/comments{/number}","contents_url":"https://api.github.com/repos/apcera/continuum-sample-apps/contents/{+path}","compare_url":"https://api.github.com/repos/apcera/continuum-sample-apps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apcera/continuum-sample-apps/merges","archive_url":"https://api.github.com/repos/apcera/continuum-sample-apps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apcera/continuum-sample-apps/downloads","issues_url":"https://api.github.com/repos/apcera/continuum-sample-apps/issues{/number}","pulls_url":"https://api.github.com/repos/apcera/continuum-sample-apps/pulls{/number}","milestones_url":"https://api.github.com/repos/apcera/continuum-sample-apps/milestones{/number}","notifications_url":"https://api.github.com/repos/apcera/continuum-sample-apps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apcera/continuum-sample-apps/labels{/name}","releases_url":"https://api.github.com/repos/apcera/continuum-sample-apps/releases{/id}","created_at":"2014-09-21T01:23:01Z","updated_at":"2015-04-22T03:57:27Z","pushed_at":"2015-06-25T13:36:06Z","git_url":"git://github.com/apcera/continuum-sample-apps.git","ssh_url":"git@github.com:apcera/continuum-sample-apps.git","clone_url":"https://github.com/apcera/continuum-sample-apps.git","svn_url":"https://github.com/apcera/continuum-sample-apps","homepage":null,"size":21294,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":6,"forks":7,"open_issues":6,"watchers":4,"default_branch":"master"}},"base":{"label":"apcera:master","ref":"master","sha":"34cf0f8a9e7717d2eb9edc949001fdbb1a713f01","user":{"login":"apcera","id":1637964,"avatar_url":"https://avatars.githubusercontent.com/u/1637964?v=3","gravatar_id":"","url":"https://api.github.com/users/apcera","html_url":"https://github.com/apcera","followers_url":"https://api.github.com/users/apcera/followers","following_url":"https://api.github.com/users/apcera/following{/other_user}","gists_url":"https://api.github.com/users/apcera/gists{/gist_id}","starred_url":"https://api.github.com/users/apcera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apcera/subscriptions","organizations_url":"https://api.github.com/users/apcera/orgs","repos_url":"https://api.github.com/users/apcera/repos","events_url":"https://api.github.com/users/apcera/events{/privacy}","received_events_url":"https://api.github.com/users/apcera/received_events","type":"Organization","site_admin":false},"repo":{"id":24278863,"name":"continuum-sample-apps","full_name":"apcera/continuum-sample-apps","owner":{"login":"apcera","id":1637964,"avatar_url":"https://avatars.githubusercontent.com/u/1637964?v=3","gravatar_id":"","url":"https://api.github.com/users/apcera","html_url":"https://github.com/apcera","followers_url":"https://api.github.com/users/apcera/followers","following_url":"https://api.github.com/users/apcera/following{/other_user}","gists_url":"https://api.github.com/users/apcera/gists{/gist_id}","starred_url":"https://api.github.com/users/apcera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apcera/subscriptions","organizations_url":"https://api.github.com/users/apcera/orgs","repos_url":"https://api.github.com/users/apcera/repos","events_url":"https://api.github.com/users/apcera/events{/privacy}","received_events_url":"https://api.github.com/users/apcera/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apcera/continuum-sample-apps","description":"Sample apps for Continuum stagers","fork":false,"url":"https://api.github.com/repos/apcera/continuum-sample-apps","forks_url":"https://api.github.com/repos/apcera/continuum-sample-apps/forks","keys_url":"https://api.github.com/repos/apcera/continuum-sample-apps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apcera/continuum-sample-apps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apcera/continuum-sample-apps/teams","hooks_url":"https://api.github.com/repos/apcera/continuum-sample-apps/hooks","issue_events_url":"https://api.github.com/repos/apcera/continuum-sample-apps/issues/events{/number}","events_url":"https://api.github.com/repos/apcera/continuum-sample-apps/events","assignees_url":"https://api.github.com/repos/apcera/continuum-sample-apps/assignees{/user}","branches_url":"https://api.github.com/repos/apcera/continuum-sample-apps/branches{/branch}","tags_url":"https://api.github.com/repos/apcera/continuum-sample-apps/tags","blobs_url":"https://api.github.com/repos/apcera/continuum-sample-apps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apcera/continuum-sample-apps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apcera/continuum-sample-apps/git/refs{/sha}","trees_url":"https://api.github.com/repos/apcera/continuum-sample-apps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apcera/continuum-sample-apps/statuses/{sha}","languages_url":"https://api.github.com/repos/apcera/continuum-sample-apps/languages","stargazers_url":"https://api.github.com/repos/apcera/continuum-sample-apps/stargazers","contributors_url":"https://api.github.com/repos/apcera/continuum-sample-apps/contributors","subscribers_url":"https://api.github.com/repos/apcera/continuum-sample-apps/subscribers","subscription_url":"https://api.github.com/repos/apcera/continuum-sample-apps/subscription","commits_url":"https://api.github.com/repos/apcera/continuum-sample-apps/commits{/sha}","git_commits_url":"https://api.github.com/repos/apcera/continuum-sample-apps/git/commits{/sha}","comments_url":"https://api.github.com/repos/apcera/continuum-sample-apps/comments{/number}","issue_comment_url":"https://api.github.com/repos/apcera/continuum-sample-apps/issues/comments{/number}","contents_url":"https://api.github.com/repos/apcera/continuum-sample-apps/contents/{+path}","compare_url":"https://api.github.com/repos/apcera/continuum-sample-apps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apcera/continuum-sample-apps/merges","archive_url":"https://api.github.com/repos/apcera/continuum-sample-apps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apcera/continuum-sample-apps/downloads","issues_url":"https://api.github.com/repos/apcera/continuum-sample-apps/issues{/number}","pulls_url":"https://api.github.com/repos/apcera/continuum-sample-apps/pulls{/number}","milestones_url":"https://api.github.com/repos/apcera/continuum-sample-apps/milestones{/number}","notifications_url":"https://api.github.com/repos/apcera/continuum-sample-apps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apcera/continuum-sample-apps/labels{/name}","releases_url":"https://api.github.com/repos/apcera/continuum-sample-apps/releases{/id}","created_at":"2014-09-21T01:23:01Z","updated_at":"2015-04-22T03:57:27Z","pushed_at":"2015-06-25T13:36:06Z","git_url":"git://github.com/apcera/continuum-sample-apps.git","ssh_url":"git@github.com:apcera/continuum-sample-apps.git","clone_url":"https://github.com/apcera/continuum-sample-apps.git","svn_url":"https://github.com/apcera/continuum-sample-apps","homepage":null,"size":21294,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":6,"forks":7,"open_issues":6,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apcera/continuum-sample-apps/pulls/24"},"html":{"href":"https://github.com/apcera/continuum-sample-apps/pull/24"},"issue":{"href":"https://api.github.com/repos/apcera/continuum-sample-apps/issues/24"},"comments":{"href":"https://api.github.com/repos/apcera/continuum-sample-apps/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/apcera/continuum-sample-apps/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/apcera/continuum-sample-apps/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apcera/continuum-sample-apps/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/apcera/continuum-sample-apps/statuses/299c85d43d56c97da98d14111d4067c532e88916"}}}}