{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/1111","repository_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/1111/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/1111/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/1111/events","html_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/1111","id":131425386,"number":1111,"title":"compute: create progress event","user":{"login":"callmehiphop","id":1707267,"avatar_url":"https://avatars.githubusercontent.com/u/1707267?v=3","gravatar_id":"","url":"https://api.github.com/users/callmehiphop","html_url":"https://github.com/callmehiphop","followers_url":"https://api.github.com/users/callmehiphop/followers","following_url":"https://api.github.com/users/callmehiphop/following{/other_user}","gists_url":"https://api.github.com/users/callmehiphop/gists{/gist_id}","starred_url":"https://api.github.com/users/callmehiphop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/callmehiphop/subscriptions","organizations_url":"https://api.github.com/users/callmehiphop/orgs","repos_url":"https://api.github.com/users/callmehiphop/repos","events_url":"https://api.github.com/users/callmehiphop/events{/privacy}","received_events_url":"https://api.github.com/users/callmehiphop/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/labels/cla:%20yes","name":"cla: yes","color":"009800"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/labels/compute","name":"compute","color":"4386FA"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-04T17:59:10Z","updated_at":"2016-02-04T18:42:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/1111","html_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/1111","diff_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/1111.diff","patch_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/1111.patch"},"body":"Closes #1109 \r\n\r\nThis adds support for a `progress` event on compute operations.\r\n\r\n```javascript\r\noperation.on('progress', function(metadata) {\r\n  console.log(metadata.progress);\r\n});\r\n```\r\n\r\nShould be noted that it does not fire the event if progress is equal to 0 or 100. 0 implies it hasn't started (and no progress has been made) and 100 implies that it is complete."},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/comments/179994168","html_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/1111#issuecomment-179994168","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/1111","id":179994168,"user":{"login":"stephenplusplus","id":723048,"avatar_url":"https://avatars.githubusercontent.com/u/723048?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenplusplus","html_url":"https://github.com/stephenplusplus","followers_url":"https://api.github.com/users/stephenplusplus/followers","following_url":"https://api.github.com/users/stephenplusplus/following{/other_user}","gists_url":"https://api.github.com/users/stephenplusplus/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenplusplus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenplusplus/subscriptions","organizations_url":"https://api.github.com/users/stephenplusplus/orgs","repos_url":"https://api.github.com/users/stephenplusplus/repos","events_url":"https://api.github.com/users/stephenplusplus/events{/privacy}","received_events_url":"https://api.github.com/users/stephenplusplus/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T18:42:50Z","updated_at":"2016-02-04T18:42:50Z","body":"Wdyt about emitting just the progress?\r\n\r\n```js\r\noperation.on('progress', function(progress) {\r\n  // progress = 80\r\n  // operation.metadata is already updated\r\n})\r\n```"}}