GitHub PullRequestReviewCommentEvent at 2014-09-02 21:59:29
Repository: python-traceview
Actor: danriti
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/danriti/python-traceview/pulls/comments/17019124","id":17019124,"diff_hunk":"@@ -116,6 +145,45 @@ def apps(self):\n         \"\"\"\n         return self._apps.get()\n \n+    def app_annotations(self, app, *args, **kwargs):\n+        \"\"\" Get annotations for an app.\n+\n+        The default time window is one week.\n+\n+        :param int time_start: (optional) the start of the time window in UTC milliseconds\n+        :param int time_end: (optional) the end of the time_window in UTC milliseconds\n+        :return: all annotations on the specified app within the time window\n+        :rtype: list\n+\n+        Usage::\n+\n+          >>> import traceview\n+          >>> tv = traceview.TraceView('API KEY HERE')\n+          >>> tv.app_annotations('Default')\n+          [{u'id': 10, u'username': 'appneta', u'app': 15, u'host': '123-45-678-abc',\n+              'time': 1408115329, u'message': 'restart server'}, {...}]\n+\n+        \"\"\"\n+        return self._app_annotations.get(app, *args, **kwargs)\n+\n+    def app_hosts(self, app, *args, **kwargs):","path":"traceview/__init__.py","position":113,"original_position":113,"commit_id":"1e9f461c9d87015a804c8baf8079d3220c3318c6","original_commit_id":"1e9f461c9d87015a804c8baf8079d3220c3318c6","user":{"login":"danriti","id":606001,"avatar_url":"https://avatars.githubusercontent.com/u/606001?v=2","gravatar_id":"1f0e10cc9e14ada9536aa47b4b565f71","url":"https://api.github.com/users/danriti","html_url":"https://github.com/danriti","followers_url":"https://api.github.com/users/danriti/followers","following_url":"https://api.github.com/users/danriti/following{/other_user}","gists_url":"https://api.github.com/users/danriti/gists{/gist_id}","starred_url":"https://api.github.com/users/danriti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danriti/subscriptions","organizations_url":"https://api.github.com/users/danriti/orgs","repos_url":"https://api.github.com/users/danriti/repos","events_url":"https://api.github.com/users/danriti/events{/privacy}","received_events_url":"https://api.github.com/users/danriti/received_events","type":"User","site_admin":false},"body":"poorly named function, goes against convention.","created_at":"2014-09-02T21:59:29Z","updated_at":"2014-09-02T21:59:29Z","html_url":"https://github.com/danriti/python-traceview/pull/12#discussion_r17019124","pull_request_url":"https://api.github.com/repos/danriti/python-traceview/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/danriti/python-traceview/pulls/comments/17019124"},"html":{"href":"https://github.com/danriti/python-traceview/pull/12#discussion_r17019124"},"pull_request":{"href":"https://api.github.com/repos/danriti/python-traceview/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/danriti/python-traceview/pulls/12","id":20642953,"html_url":"https://github.com/danriti/python-traceview/pull/12","diff_url":"https://github.com/danriti/python-traceview/pull/12.diff","patch_url":"https://github.com/danriti/python-traceview/pull/12.patch","issue_url":"https://api.github.com/repos/danriti/python-traceview/issues/12","number":12,"state":"open","locked":false,"title":"API v2.1 Changes","user":{"login":"danriti","id":606001,"avatar_url":"https://avatars.githubusercontent.com/u/606001?v=2","gravatar_id":"1f0e10cc9e14ada9536aa47b4b565f71","url":"https://api.github.com/users/danriti","html_url":"https://github.com/danriti","followers_url":"https://api.github.com/users/danriti/followers","following_url":"https://api.github.com/users/danriti/following{/other_user}","gists_url":"https://api.github.com/users/danriti/gists{/gist_id}","starred_url":"https://api.github.com/users/danriti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danriti/subscriptions","organizations_url":"https://api.github.com/users/danriti/orgs","repos_url":"https://api.github.com/users/danriti/repos","events_url":"https://api.github.com/users/danriti/events{/privacy}","received_events_url":"https://api.github.com/users/danriti/received_events","type":"User","site_admin":false},"body":"Consolidating both PRs (https://github.com/danriti/python-traceview/pull/11 & https://github.com/danriti/python-traceview/pull/10) into a single PR.","created_at":"2014-09-02T21:49:49Z","updated_at":"2014-09-02T21:59:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5910c91112efbbeda162b1c219c3f2b2de1e7a22","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/danriti/python-traceview/pulls/12/commits","review_comments_url":"https://api.github.com/repos/danriti/python-traceview/pulls/12/comments","review_comment_url":"https://api.github.com/repos/danriti/python-traceview/pulls/comments/{number}","comments_url":"https://api.github.com/repos/danriti/python-traceview/issues/12/comments","statuses_url":"https://api.github.com/repos/danriti/python-traceview/statuses/1e9f461c9d87015a804c8baf8079d3220c3318c6","head":{"label":"danriti:api-v2.1","ref":"api-v2.1","sha":"1e9f461c9d87015a804c8baf8079d3220c3318c6","user":{"login":"danriti","id":606001,"avatar_url":"https://avatars.githubusercontent.com/u/606001?v=2","gravatar_id":"1f0e10cc9e14ada9536aa47b4b565f71","url":"https://api.github.com/users/danriti","html_url":"https://github.com/danriti","followers_url":"https://api.github.com/users/danriti/followers","following_url":"https://api.github.com/users/danriti/following{/other_user}","gists_url":"https://api.github.com/users/danriti/gists{/gist_id}","starred_url":"https://api.github.com/users/danriti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danriti/subscriptions","organizations_url":"https://api.github.com/users/danriti/orgs","repos_url":"https://api.github.com/users/danriti/repos","events_url":"https://api.github.com/users/danriti/events{/privacy}","received_events_url":"https://api.github.com/users/danriti/received_events","type":"User","site_admin":false},"repo":{"id":17554105,"name":"python-traceview","full_name":"danriti/python-traceview","owner":{"login":"danriti","id":606001,"avatar_url":"https://avatars.githubusercontent.com/u/606001?v=2","gravatar_id":"1f0e10cc9e14ada9536aa47b4b565f71","url":"https://api.github.com/users/danriti","html_url":"https://github.com/danriti","followers_url":"https://api.github.com/users/danriti/followers","following_url":"https://api.github.com/users/danriti/following{/other_user}","gists_url":"https://api.github.com/users/danriti/gists{/gist_id}","starred_url":"https://api.github.com/users/danriti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danriti/subscriptions","organizations_url":"https://api.github.com/users/danriti/orgs","repos_url":"https://api.github.com/users/danriti/repos","events_url":"https://api.github.com/users/danriti/events{/privacy}","received_events_url":"https://api.github.com/users/danriti/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danriti/python-traceview","description":"Library for providing access to the TraceView API v2","fork":false,"url":"https://api.github.com/repos/danriti/python-traceview","forks_url":"https://api.github.com/repos/danriti/python-traceview/forks","keys_url":"https://api.github.com/repos/danriti/python-traceview/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danriti/python-traceview/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danriti/python-traceview/teams","hooks_url":"https://api.github.com/repos/danriti/python-traceview/hooks","issue_events_url":"https://api.github.com/repos/danriti/python-traceview/issues/events{/number}","events_url":"https://api.github.com/repos/danriti/python-traceview/events","assignees_url":"https://api.github.com/repos/danriti/python-traceview/assignees{/user}","branches_url":"https://api.github.com/repos/danriti/python-traceview/branches{/branch}","tags_url":"https://api.github.com/repos/danriti/python-traceview/tags","blobs_url":"https://api.github.com/repos/danriti/python-traceview/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danriti/python-traceview/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danriti/python-traceview/git/refs{/sha}","trees_url":"https://api.github.com/repos/danriti/python-traceview/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danriti/python-traceview/statuses/{sha}","languages_url":"https://api.github.com/repos/danriti/python-traceview/languages","stargazers_url":"https://api.github.com/repos/danriti/python-traceview/stargazers","contributors_url":"https://api.github.com/repos/danriti/python-traceview/contributors","subscribers_url":"https://api.github.com/repos/danriti/python-traceview/subscribers","subscription_url":"https://api.github.com/repos/danriti/python-traceview/subscription","commits_url":"https://api.github.com/repos/danriti/python-traceview/commits{/sha}","git_commits_url":"https://api.github.com/repos/danriti/python-traceview/git/commits{/sha}","comments_url":"https://api.github.com/repos/danriti/python-traceview/comments{/number}","issue_comment_url":"https://api.github.com/repos/danriti/python-traceview/issues/comments/{number}","contents_url":"https://api.github.com/repos/danriti/python-traceview/contents/{+path}","compare_url":"https://api.github.com/repos/danriti/python-traceview/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danriti/python-traceview/merges","archive_url":"https://api.github.com/repos/danriti/python-traceview/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danriti/python-traceview/downloads","issues_url":"https://api.github.com/repos/danriti/python-traceview/issues{/number}","pulls_url":"https://api.github.com/repos/danriti/python-traceview/pulls{/number}","milestones_url":"https://api.github.com/repos/danriti/python-traceview/milestones{/number}","notifications_url":"https://api.github.com/repos/danriti/python-traceview/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danriti/python-traceview/labels{/name}","releases_url":"https://api.github.com/repos/danriti/python-traceview/releases{/id}","created_at":"2014-03-09T00:08:58Z","updated_at":"2014-08-11T14:08:25Z","pushed_at":"2014-09-02T21:48:47Z","git_url":"git://github.com/danriti/python-traceview.git","ssh_url":"git@github.com:danriti/python-traceview.git","clone_url":"https://github.com/danriti/python-traceview.git","svn_url":"https://github.com/danriti/python-traceview","homepage":"http://python-traceview.readthedocs.org","size":621,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":3,"default_branch":"master"}},"base":{"label":"danriti:master","ref":"master","sha":"6403436ffa50c5aa1ee71d35d59095d49aa79260","user":{"login":"danriti","id":606001,"avatar_url":"https://avatars.githubusercontent.com/u/606001?v=2","gravatar_id":"1f0e10cc9e14ada9536aa47b4b565f71","url":"https://api.github.com/users/danriti","html_url":"https://github.com/danriti","followers_url":"https://api.github.com/users/danriti/followers","following_url":"https://api.github.com/users/danriti/following{/other_user}","gists_url":"https://api.github.com/users/danriti/gists{/gist_id}","starred_url":"https://api.github.com/users/danriti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danriti/subscriptions","organizations_url":"https://api.github.com/users/danriti/orgs","repos_url":"https://api.github.com/users/danriti/repos","events_url":"https://api.github.com/users/danriti/events{/privacy}","received_events_url":"https://api.github.com/users/danriti/received_events","type":"User","site_admin":false},"repo":{"id":17554105,"name":"python-traceview","full_name":"danriti/python-traceview","owner":{"login":"danriti","id":606001,"avatar_url":"https://avatars.githubusercontent.com/u/606001?v=2","gravatar_id":"1f0e10cc9e14ada9536aa47b4b565f71","url":"https://api.github.com/users/danriti","html_url":"https://github.com/danriti","followers_url":"https://api.github.com/users/danriti/followers","following_url":"https://api.github.com/users/danriti/following{/other_user}","gists_url":"https://api.github.com/users/danriti/gists{/gist_id}","starred_url":"https://api.github.com/users/danriti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danriti/subscriptions","organizations_url":"https://api.github.com/users/danriti/orgs","repos_url":"https://api.github.com/users/danriti/repos","events_url":"https://api.github.com/users/danriti/events{/privacy}","received_events_url":"https://api.github.com/users/danriti/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danriti/python-traceview","description":"Library for providing access to the TraceView API v2","fork":false,"url":"https://api.github.com/repos/danriti/python-traceview","forks_url":"https://api.github.com/repos/danriti/python-traceview/forks","keys_url":"https://api.github.com/repos/danriti/python-traceview/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danriti/python-traceview/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danriti/python-traceview/teams","hooks_url":"https://api.github.com/repos/danriti/python-traceview/hooks","issue_events_url":"https://api.github.com/repos/danriti/python-traceview/issues/events{/number}","events_url":"https://api.github.com/repos/danriti/python-traceview/events","assignees_url":"https://api.github.com/repos/danriti/python-traceview/assignees{/user}","branches_url":"https://api.github.com/repos/danriti/python-traceview/branches{/branch}","tags_url":"https://api.github.com/repos/danriti/python-traceview/tags","blobs_url":"https://api.github.com/repos/danriti/python-traceview/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danriti/python-traceview/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danriti/python-traceview/git/refs{/sha}","trees_url":"https://api.github.com/repos/danriti/python-traceview/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danriti/python-traceview/statuses/{sha}","languages_url":"https://api.github.com/repos/danriti/python-traceview/languages","stargazers_url":"https://api.github.com/repos/danriti/python-traceview/stargazers","contributors_url":"https://api.github.com/repos/danriti/python-traceview/contributors","subscribers_url":"https://api.github.com/repos/danriti/python-traceview/subscribers","subscription_url":"https://api.github.com/repos/danriti/python-traceview/subscription","commits_url":"https://api.github.com/repos/danriti/python-traceview/commits{/sha}","git_commits_url":"https://api.github.com/repos/danriti/python-traceview/git/commits{/sha}","comments_url":"https://api.github.com/repos/danriti/python-traceview/comments{/number}","issue_comment_url":"https://api.github.com/repos/danriti/python-traceview/issues/comments/{number}","contents_url":"https://api.github.com/repos/danriti/python-traceview/contents/{+path}","compare_url":"https://api.github.com/repos/danriti/python-traceview/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danriti/python-traceview/merges","archive_url":"https://api.github.com/repos/danriti/python-traceview/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danriti/python-traceview/downloads","issues_url":"https://api.github.com/repos/danriti/python-traceview/issues{/number}","pulls_url":"https://api.github.com/repos/danriti/python-traceview/pulls{/number}","milestones_url":"https://api.github.com/repos/danriti/python-traceview/milestones{/number}","notifications_url":"https://api.github.com/repos/danriti/python-traceview/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danriti/python-traceview/labels{/name}","releases_url":"https://api.github.com/repos/danriti/python-traceview/releases{/id}","created_at":"2014-03-09T00:08:58Z","updated_at":"2014-08-11T14:08:25Z","pushed_at":"2014-09-02T21:48:47Z","git_url":"git://github.com/danriti/python-traceview.git","ssh_url":"git@github.com:danriti/python-traceview.git","clone_url":"https://github.com/danriti/python-traceview.git","svn_url":"https://github.com/danriti/python-traceview","homepage":"http://python-traceview.readthedocs.org","size":621,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/danriti/python-traceview/pulls/12"},"html":{"href":"https://github.com/danriti/python-traceview/pull/12"},"issue":{"href":"https://api.github.com/repos/danriti/python-traceview/issues/12"},"comments":{"href":"https://api.github.com/repos/danriti/python-traceview/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/danriti/python-traceview/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/danriti/python-traceview/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/danriti/python-traceview/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/danriti/python-traceview/statuses/1e9f461c9d87015a804c8baf8079d3220c3318c6"}}}}