{"action":"created","comment":{"url":"https://api.github.com/repos/taskcluster/ec2-manager/pulls/comments/149401229","pull_request_review_id":74787505,"id":149401229,"diff_hunk":"@@ -577,6 +577,22 @@ api.declare({\n });\n \n /**\n+ * List AMIs and their usage\n+ */\n+api.declare({\n+  method: 'get',\n+  route: '/internal/ami-usage',\n+  name: 'amiUsage',\n+  title: 'See the list of AMIs and their usage',\n+  stability: API.stability.experimental,\n+  scopes: [['ec2-manager:internals']],\n+  description: 'Lists out all of the AMIs and their usage',\n+}, async function(req, res) {\n+  let amiUsage = await this.state.listAmiUsage();","path":"lib/api.js","position":15,"original_position":15,"commit_id":"37d82506bbd5e73ab656a21e24f3ebd43002a209","original_commit_id":"37d82506bbd5e73ab656a21e24f3ebd43002a209","user":{"login":"walac","id":611309,"avatar_url":"https://avatars1.githubusercontent.com/u/611309?v=4","gravatar_id":"","url":"https://api.github.com/users/walac","html_url":"https://github.com/walac","followers_url":"https://api.github.com/users/walac/followers","following_url":"https://api.github.com/users/walac/following{/other_user}","gists_url":"https://api.github.com/users/walac/gists{/gist_id}","starred_url":"https://api.github.com/users/walac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walac/subscriptions","organizations_url":"https://api.github.com/users/walac/orgs","repos_url":"https://api.github.com/users/walac/repos","events_url":"https://api.github.com/users/walac/events{/privacy}","received_events_url":"https://api.github.com/users/walac/received_events","type":"User","site_admin":false},"body":"Good point.","created_at":"2017-11-07T15:21:41Z","updated_at":"2017-11-07T15:21:41Z","html_url":"https://github.com/taskcluster/ec2-manager/pull/39#discussion_r149401229","pull_request_url":"https://api.github.com/repos/taskcluster/ec2-manager/pulls/39","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/taskcluster/ec2-manager/pulls/comments/149401229"},"html":{"href":"https://github.com/taskcluster/ec2-manager/pull/39#discussion_r149401229"},"pull_request":{"href":"https://api.github.com/repos/taskcluster/ec2-manager/pulls/39"}},"in_reply_to_id":149272303},"pull_request":{"url":"https://api.github.com/repos/taskcluster/ec2-manager/pulls/39","id":150926013,"html_url":"https://github.com/taskcluster/ec2-manager/pull/39","diff_url":"https://github.com/taskcluster/ec2-manager/pull/39.diff","patch_url":"https://github.com/taskcluster/ec2-manager/pull/39.patch","issue_url":"https://api.github.com/repos/taskcluster/ec2-manager/issues/39","number":39,"state":"open","locked":false,"title":"Add endpoint for /internal/amiusage","user":{"login":"rafvasq","id":11052762,"avatar_url":"https://avatars2.githubusercontent.com/u/11052762?v=4","gravatar_id":"","url":"https://api.github.com/users/rafvasq","html_url":"https://github.com/rafvasq","followers_url":"https://api.github.com/users/rafvasq/followers","following_url":"https://api.github.com/users/rafvasq/following{/other_user}","gists_url":"https://api.github.com/users/rafvasq/gists{/gist_id}","starred_url":"https://api.github.com/users/rafvasq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafvasq/subscriptions","organizations_url":"https://api.github.com/users/rafvasq/orgs","repos_url":"https://api.github.com/users/rafvasq/repos","events_url":"https://api.github.com/users/rafvasq/events{/privacy}","received_events_url":"https://api.github.com/users/rafvasq/received_events","type":"User","site_admin":false},"body":"Implemented an endpoint “GET /internal/ami-usage” which lists out all of the AMIs and their usage and included unit test","created_at":"2017-11-06T18:31:09Z","updated_at":"2017-11-07T15:21:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c0eef697915e5ddda4313135a7a97673e1be11ea","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/taskcluster/ec2-manager/pulls/39/commits","review_comments_url":"https://api.github.com/repos/taskcluster/ec2-manager/pulls/39/comments","review_comment_url":"https://api.github.com/repos/taskcluster/ec2-manager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/taskcluster/ec2-manager/issues/39/comments","statuses_url":"https://api.github.com/repos/taskcluster/ec2-manager/statuses/37d82506bbd5e73ab656a21e24f3ebd43002a209","head":{"label":"rafvasq:endpoint","ref":"endpoint","sha":"37d82506bbd5e73ab656a21e24f3ebd43002a209","user":{"login":"rafvasq","id":11052762,"avatar_url":"https://avatars2.githubusercontent.com/u/11052762?v=4","gravatar_id":"","url":"https://api.github.com/users/rafvasq","html_url":"https://github.com/rafvasq","followers_url":"https://api.github.com/users/rafvasq/followers","following_url":"https://api.github.com/users/rafvasq/following{/other_user}","gists_url":"https://api.github.com/users/rafvasq/gists{/gist_id}","starred_url":"https://api.github.com/users/rafvasq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafvasq/subscriptions","organizations_url":"https://api.github.com/users/rafvasq/orgs","repos_url":"https://api.github.com/users/rafvasq/repos","events_url":"https://api.github.com/users/rafvasq/events{/privacy}","received_events_url":"https://api.github.com/users/rafvasq/received_events","type":"User","site_admin":false},"repo":{"id":104401589,"name":"ec2-manager","full_name":"rafvasq/ec2-manager","owner":{"login":"rafvasq","id":11052762,"avatar_url":"https://avatars2.githubusercontent.com/u/11052762?v=4","gravatar_id":"","url":"https://api.github.com/users/rafvasq","html_url":"https://github.com/rafvasq","followers_url":"https://api.github.com/users/rafvasq/followers","following_url":"https://api.github.com/users/rafvasq/following{/other_user}","gists_url":"https://api.github.com/users/rafvasq/gists{/gist_id}","starred_url":"https://api.github.com/users/rafvasq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafvasq/subscriptions","organizations_url":"https://api.github.com/users/rafvasq/orgs","repos_url":"https://api.github.com/users/rafvasq/repos","events_url":"https://api.github.com/users/rafvasq/events{/privacy}","received_events_url":"https://api.github.com/users/rafvasq/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rafvasq/ec2-manager","description":null,"fork":true,"url":"https://api.github.com/repos/rafvasq/ec2-manager","forks_url":"https://api.github.com/repos/rafvasq/ec2-manager/forks","keys_url":"https://api.github.com/repos/rafvasq/ec2-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rafvasq/ec2-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rafvasq/ec2-manager/teams","hooks_url":"https://api.github.com/repos/rafvasq/ec2-manager/hooks","issue_events_url":"https://api.github.com/repos/rafvasq/ec2-manager/issues/events{/number}","events_url":"https://api.github.com/repos/rafvasq/ec2-manager/events","assignees_url":"https://api.github.com/repos/rafvasq/ec2-manager/assignees{/user}","branches_url":"https://api.github.com/repos/rafvasq/ec2-manager/branches{/branch}","tags_url":"https://api.github.com/repos/rafvasq/ec2-manager/tags","blobs_url":"https://api.github.com/repos/rafvasq/ec2-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rafvasq/ec2-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rafvasq/ec2-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/rafvasq/ec2-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rafvasq/ec2-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/rafvasq/ec2-manager/languages","stargazers_url":"https://api.github.com/repos/rafvasq/ec2-manager/stargazers","contributors_url":"https://api.github.com/repos/rafvasq/ec2-manager/contributors","subscribers_url":"https://api.github.com/repos/rafvasq/ec2-manager/subscribers","subscription_url":"https://api.github.com/repos/rafvasq/ec2-manager/subscription","commits_url":"https://api.github.com/repos/rafvasq/ec2-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/rafvasq/ec2-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/rafvasq/ec2-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/rafvasq/ec2-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/rafvasq/ec2-manager/contents/{+path}","compare_url":"https://api.github.com/repos/rafvasq/ec2-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rafvasq/ec2-manager/merges","archive_url":"https://api.github.com/repos/rafvasq/ec2-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rafvasq/ec2-manager/downloads","issues_url":"https://api.github.com/repos/rafvasq/ec2-manager/issues{/number}","pulls_url":"https://api.github.com/repos/rafvasq/ec2-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/rafvasq/ec2-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/rafvasq/ec2-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rafvasq/ec2-manager/labels{/name}","releases_url":"https://api.github.com/repos/rafvasq/ec2-manager/releases{/id}","deployments_url":"https://api.github.com/repos/rafvasq/ec2-manager/deployments","created_at":"2017-09-21T21:39:53Z","updated_at":"2017-09-27T01:34:17Z","pushed_at":"2017-11-06T18:51:08Z","git_url":"git://github.com/rafvasq/ec2-manager.git","ssh_url":"git@github.com:rafvasq/ec2-manager.git","clone_url":"https://github.com/rafvasq/ec2-manager.git","svn_url":"https://github.com/rafvasq/ec2-manager","homepage":null,"size":246,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":3,"default_branch":"master"}},"base":{"label":"taskcluster:master","ref":"master","sha":"12a8aac60ad3953022dd884e35c29cc3cb950034","user":{"login":"taskcluster","id":6257436,"avatar_url":"https://avatars2.githubusercontent.com/u/6257436?v=4","gravatar_id":"","url":"https://api.github.com/users/taskcluster","html_url":"https://github.com/taskcluster","followers_url":"https://api.github.com/users/taskcluster/followers","following_url":"https://api.github.com/users/taskcluster/following{/other_user}","gists_url":"https://api.github.com/users/taskcluster/gists{/gist_id}","starred_url":"https://api.github.com/users/taskcluster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taskcluster/subscriptions","organizations_url":"https://api.github.com/users/taskcluster/orgs","repos_url":"https://api.github.com/users/taskcluster/repos","events_url":"https://api.github.com/users/taskcluster/events{/privacy}","received_events_url":"https://api.github.com/users/taskcluster/received_events","type":"Organization","site_admin":false},"repo":{"id":89593937,"name":"ec2-manager","full_name":"taskcluster/ec2-manager","owner":{"login":"taskcluster","id":6257436,"avatar_url":"https://avatars2.githubusercontent.com/u/6257436?v=4","gravatar_id":"","url":"https://api.github.com/users/taskcluster","html_url":"https://github.com/taskcluster","followers_url":"https://api.github.com/users/taskcluster/followers","following_url":"https://api.github.com/users/taskcluster/following{/other_user}","gists_url":"https://api.github.com/users/taskcluster/gists{/gist_id}","starred_url":"https://api.github.com/users/taskcluster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taskcluster/subscriptions","organizations_url":"https://api.github.com/users/taskcluster/orgs","repos_url":"https://api.github.com/users/taskcluster/repos","events_url":"https://api.github.com/users/taskcluster/events{/privacy}","received_events_url":"https://api.github.com/users/taskcluster/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/taskcluster/ec2-manager","description":null,"fork":false,"url":"https://api.github.com/repos/taskcluster/ec2-manager","forks_url":"https://api.github.com/repos/taskcluster/ec2-manager/forks","keys_url":"https://api.github.com/repos/taskcluster/ec2-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/taskcluster/ec2-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/taskcluster/ec2-manager/teams","hooks_url":"https://api.github.com/repos/taskcluster/ec2-manager/hooks","issue_events_url":"https://api.github.com/repos/taskcluster/ec2-manager/issues/events{/number}","events_url":"https://api.github.com/repos/taskcluster/ec2-manager/events","assignees_url":"https://api.github.com/repos/taskcluster/ec2-manager/assignees{/user}","branches_url":"https://api.github.com/repos/taskcluster/ec2-manager/branches{/branch}","tags_url":"https://api.github.com/repos/taskcluster/ec2-manager/tags","blobs_url":"https://api.github.com/repos/taskcluster/ec2-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/taskcluster/ec2-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/taskcluster/ec2-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/taskcluster/ec2-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/taskcluster/ec2-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/taskcluster/ec2-manager/languages","stargazers_url":"https://api.github.com/repos/taskcluster/ec2-manager/stargazers","contributors_url":"https://api.github.com/repos/taskcluster/ec2-manager/contributors","subscribers_url":"https://api.github.com/repos/taskcluster/ec2-manager/subscribers","subscription_url":"https://api.github.com/repos/taskcluster/ec2-manager/subscription","commits_url":"https://api.github.com/repos/taskcluster/ec2-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/taskcluster/ec2-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/taskcluster/ec2-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/taskcluster/ec2-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/taskcluster/ec2-manager/contents/{+path}","compare_url":"https://api.github.com/repos/taskcluster/ec2-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/taskcluster/ec2-manager/merges","archive_url":"https://api.github.com/repos/taskcluster/ec2-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/taskcluster/ec2-manager/downloads","issues_url":"https://api.github.com/repos/taskcluster/ec2-manager/issues{/number}","pulls_url":"https://api.github.com/repos/taskcluster/ec2-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/taskcluster/ec2-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/taskcluster/ec2-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/taskcluster/ec2-manager/labels{/name}","releases_url":"https://api.github.com/repos/taskcluster/ec2-manager/releases{/id}","deployments_url":"https://api.github.com/repos/taskcluster/ec2-manager/deployments","created_at":"2017-04-27T12:16:36Z","updated_at":"2017-10-04T19:05:53Z","pushed_at":"2017-11-06T18:51:09Z","git_url":"git://github.com/taskcluster/ec2-manager.git","ssh_url":"git@github.com:taskcluster/ec2-manager.git","clone_url":"https://github.com/taskcluster/ec2-manager.git","svn_url":"https://github.com/taskcluster/ec2-manager","homepage":null,"size":262,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":19,"forks":5,"open_issues":19,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/taskcluster/ec2-manager/pulls/39"},"html":{"href":"https://github.com/taskcluster/ec2-manager/pull/39"},"issue":{"href":"https://api.github.com/repos/taskcluster/ec2-manager/issues/39"},"comments":{"href":"https://api.github.com/repos/taskcluster/ec2-manager/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/taskcluster/ec2-manager/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/taskcluster/ec2-manager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/taskcluster/ec2-manager/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/taskcluster/ec2-manager/statuses/37d82506bbd5e73ab656a21e24f3ebd43002a209"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"walac"}}