{"action":"created","comment":{"url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/pulls/comments/33458312","id":33458312,"diff_hunk":"@@ -4,16 +4,44 @@ import (\n \t\"fmt\"\n \t\"gopkg.in/mgo.v2\"\n \t\"os\"\n+\t. \"mongodb.com/size-estimator/components\"\n+\t\"flag\"\n+\t\"time\"\n+\t\"reflect\"\n+\t\"strconv\"\n+\t\"gopkg.in/mgo.v2/bson\"\n )\n \n+const (\n+\tDefaultPort = 27017\n+\tDefaultHostName = \"localhost\"\n+\tDefaultSleepTime = time.Duration(6*time.Hour)\n+\tDefaultIter = 12\n+)\n+\n+var (\n+\thost = flag.String(\"host\", DefaultHostName, \"Hostname to ping\")","path":"backup-sizer/src/mongodb.com/size-estimator/size-estimator.go","position":20,"original_position":20,"commit_id":"1db0b3433a4494f10bf52add7b122f321e22220e","original_commit_id":"1db0b3433a4494f10bf52add7b122f321e22220e","user":{"login":"corymintz","id":615874,"avatar_url":"https://avatars.githubusercontent.com/u/615874?v=3","gravatar_id":"","url":"https://api.github.com/users/corymintz","html_url":"https://github.com/corymintz","followers_url":"https://api.github.com/users/corymintz/followers","following_url":"https://api.github.com/users/corymintz/following{/other_user}","gists_url":"https://api.github.com/users/corymintz/gists{/gist_id}","starred_url":"https://api.github.com/users/corymintz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corymintz/subscriptions","organizations_url":"https://api.github.com/users/corymintz/orgs","repos_url":"https://api.github.com/users/corymintz/repos","events_url":"https://api.github.com/users/corymintz/events{/privacy}","received_events_url":"https://api.github.com/users/corymintz/received_events","type":"User","site_admin":false},"body":"Was there a reason why the host/port are up here but interval/iter is down in the initializer? I believe they can all be in `init()`","created_at":"2015-06-29T12:29:36Z","updated_at":"2015-06-29T12:29:36Z","html_url":"https://github.com/mongodbinc-interns/ops-manager-backup-sizing/pull/2#discussion_r33458312","pull_request_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/pulls/comments/33458312"},"html":{"href":"https://github.com/mongodbinc-interns/ops-manager-backup-sizing/pull/2#discussion_r33458312"},"pull_request":{"href":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/pulls/2","id":38384295,"html_url":"https://github.com/mongodbinc-interns/ops-manager-backup-sizing/pull/2","diff_url":"https://github.com/mongodbinc-interns/ops-manager-backup-sizing/pull/2.diff","patch_url":"https://github.com/mongodbinc-interns/ops-manager-backup-sizing/pull/2.patch","issue_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/issues/2","number":2,"state":"open","locked":false,"title":"MMSP 12011 - Cory Mintz - Oplog Size GB/day, compression","user":{"login":"glennayu","id":6900690,"avatar_url":"https://avatars.githubusercontent.com/u/6900690?v=3","gravatar_id":"","url":"https://api.github.com/users/glennayu","html_url":"https://github.com/glennayu","followers_url":"https://api.github.com/users/glennayu/followers","following_url":"https://api.github.com/users/glennayu/following{/other_user}","gists_url":"https://api.github.com/users/glennayu/gists{/gist_id}","starred_url":"https://api.github.com/users/glennayu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glennayu/subscriptions","organizations_url":"https://api.github.com/users/glennayu/orgs","repos_url":"https://api.github.com/users/glennayu/repos","events_url":"https://api.github.com/users/glennayu/events{/privacy}","received_events_url":"https://api.github.com/users/glennayu/received_events","type":"User","site_admin":false},"body":"@corymintz \r\nbasic functionality and some tests - still need to write more tests and add command line parameters","created_at":"2015-06-23T21:20:03Z","updated_at":"2015-06-29T12:29:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4bbf1a0000b12fd65bb20127d66d68a9c1021c9f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/pulls/2/commits","review_comments_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/pulls/2/comments","review_comment_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/issues/2/comments","statuses_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/statuses/1db0b3433a4494f10bf52add7b122f321e22220e","head":{"label":"glennayu:MMSP-12011-OplogSize","ref":"MMSP-12011-OplogSize","sha":"1db0b3433a4494f10bf52add7b122f321e22220e","user":{"login":"glennayu","id":6900690,"avatar_url":"https://avatars.githubusercontent.com/u/6900690?v=3","gravatar_id":"","url":"https://api.github.com/users/glennayu","html_url":"https://github.com/glennayu","followers_url":"https://api.github.com/users/glennayu/followers","following_url":"https://api.github.com/users/glennayu/following{/other_user}","gists_url":"https://api.github.com/users/glennayu/gists{/gist_id}","starred_url":"https://api.github.com/users/glennayu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glennayu/subscriptions","organizations_url":"https://api.github.com/users/glennayu/orgs","repos_url":"https://api.github.com/users/glennayu/repos","events_url":"https://api.github.com/users/glennayu/events{/privacy}","received_events_url":"https://api.github.com/users/glennayu/received_events","type":"User","site_admin":false},"repo":{"id":37717855,"name":"ops-manager-backup-sizing","full_name":"glennayu/ops-manager-backup-sizing","owner":{"login":"glennayu","id":6900690,"avatar_url":"https://avatars.githubusercontent.com/u/6900690?v=3","gravatar_id":"","url":"https://api.github.com/users/glennayu","html_url":"https://github.com/glennayu","followers_url":"https://api.github.com/users/glennayu/followers","following_url":"https://api.github.com/users/glennayu/following{/other_user}","gists_url":"https://api.github.com/users/glennayu/gists{/gist_id}","starred_url":"https://api.github.com/users/glennayu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glennayu/subscriptions","organizations_url":"https://api.github.com/users/glennayu/orgs","repos_url":"https://api.github.com/users/glennayu/repos","events_url":"https://api.github.com/users/glennayu/events{/privacy}","received_events_url":"https://api.github.com/users/glennayu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/glennayu/ops-manager-backup-sizing","description":"","fork":true,"url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing","forks_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/forks","keys_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/teams","hooks_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/hooks","issue_events_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/issues/events{/number}","events_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/events","assignees_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/assignees{/user}","branches_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/branches{/branch}","tags_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/tags","blobs_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/git/refs{/sha}","trees_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/statuses/{sha}","languages_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/languages","stargazers_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/stargazers","contributors_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/contributors","subscribers_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/subscribers","subscription_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/subscription","commits_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/commits{/sha}","git_commits_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/git/commits{/sha}","comments_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/comments{/number}","issue_comment_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/issues/comments{/number}","contents_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/contents/{+path}","compare_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/merges","archive_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/downloads","issues_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/issues{/number}","pulls_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/pulls{/number}","milestones_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/milestones{/number}","notifications_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/labels{/name}","releases_url":"https://api.github.com/repos/glennayu/ops-manager-backup-sizing/releases{/id}","created_at":"2015-06-19T11:16:34Z","updated_at":"2015-06-17T16:11:24Z","pushed_at":"2015-06-26T17:40:57Z","git_url":"git://github.com/glennayu/ops-manager-backup-sizing.git","ssh_url":"git@github.com:glennayu/ops-manager-backup-sizing.git","clone_url":"https://github.com/glennayu/ops-manager-backup-sizing.git","svn_url":"https://github.com/glennayu/ops-manager-backup-sizing","homepage":null,"size":98,"stargazers_count":0,"watchers_count":0,"language":null,"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":"mongodbinc-interns:master","ref":"master","sha":"20506b428afbcd7aad7f2d23fec3fec7b39e9609","user":{"login":"mongodbinc-interns","id":4552450,"avatar_url":"https://avatars.githubusercontent.com/u/4552450?v=3","gravatar_id":"","url":"https://api.github.com/users/mongodbinc-interns","html_url":"https://github.com/mongodbinc-interns","followers_url":"https://api.github.com/users/mongodbinc-interns/followers","following_url":"https://api.github.com/users/mongodbinc-interns/following{/other_user}","gists_url":"https://api.github.com/users/mongodbinc-interns/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodbinc-interns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodbinc-interns/subscriptions","organizations_url":"https://api.github.com/users/mongodbinc-interns/orgs","repos_url":"https://api.github.com/users/mongodbinc-interns/repos","events_url":"https://api.github.com/users/mongodbinc-interns/events{/privacy}","received_events_url":"https://api.github.com/users/mongodbinc-interns/received_events","type":"Organization","site_admin":false},"repo":{"id":37605987,"name":"ops-manager-backup-sizing","full_name":"mongodbinc-interns/ops-manager-backup-sizing","owner":{"login":"mongodbinc-interns","id":4552450,"avatar_url":"https://avatars.githubusercontent.com/u/4552450?v=3","gravatar_id":"","url":"https://api.github.com/users/mongodbinc-interns","html_url":"https://github.com/mongodbinc-interns","followers_url":"https://api.github.com/users/mongodbinc-interns/followers","following_url":"https://api.github.com/users/mongodbinc-interns/following{/other_user}","gists_url":"https://api.github.com/users/mongodbinc-interns/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodbinc-interns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodbinc-interns/subscriptions","organizations_url":"https://api.github.com/users/mongodbinc-interns/orgs","repos_url":"https://api.github.com/users/mongodbinc-interns/repos","events_url":"https://api.github.com/users/mongodbinc-interns/events{/privacy}","received_events_url":"https://api.github.com/users/mongodbinc-interns/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mongodbinc-interns/ops-manager-backup-sizing","description":"","fork":false,"url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing","forks_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/forks","keys_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/teams","hooks_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/hooks","issue_events_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/issues/events{/number}","events_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/events","assignees_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/assignees{/user}","branches_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/branches{/branch}","tags_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/tags","blobs_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/git/refs{/sha}","trees_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/statuses/{sha}","languages_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/languages","stargazers_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/stargazers","contributors_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/contributors","subscribers_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/subscribers","subscription_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/subscription","commits_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/commits{/sha}","git_commits_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/git/commits{/sha}","comments_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/comments{/number}","issue_comment_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/issues/comments{/number}","contents_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/contents/{+path}","compare_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/merges","archive_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/downloads","issues_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/issues{/number}","pulls_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/pulls{/number}","milestones_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/milestones{/number}","notifications_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/labels{/name}","releases_url":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/releases{/id}","created_at":"2015-06-17T16:11:24Z","updated_at":"2015-06-23T21:01:44Z","pushed_at":"2015-06-26T17:40:57Z","git_url":"git://github.com/mongodbinc-interns/ops-manager-backup-sizing.git","ssh_url":"git@github.com:mongodbinc-interns/ops-manager-backup-sizing.git","clone_url":"https://github.com/mongodbinc-interns/ops-manager-backup-sizing.git","svn_url":"https://github.com/mongodbinc-interns/ops-manager-backup-sizing","homepage":null,"size":166,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/pulls/2"},"html":{"href":"https://github.com/mongodbinc-interns/ops-manager-backup-sizing/pull/2"},"issue":{"href":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/issues/2"},"comments":{"href":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/mongodbinc-interns/ops-manager-backup-sizing/statuses/1db0b3433a4494f10bf52add7b122f321e22220e"}}}}