{"action":"created","comment":{"url":"https://api.github.com/repos/seecloud/performance/pulls/comments/89304338","pull_request_review_id":9849384,"id":89304338,"diff_hunk":"@@ -14,32 +14,135 @@\n #    under the License.\n \n import flask\n-from flask_helpers import routing  # noqa\n+import requests\n+import os\n+import json\n \n-from performance import api\n-from performance import config\n \n-app = flask.Flask(__name__, static_folder=None)\n-app.config.update(config.get_config()[\"flask\"])\n \n \n-for module in [api]:\n-    for url_prefix, blueprint in module.get_blueprints():\n-        app.register_blueprint(blueprint, url_prefix=\"/api%s\" % url_prefix)\n-\n-\n-app = routing.add_routing_map(app, html_uri=None, json_uri=\"/\")\n-\n+app = flask.Flask(__name__)\n+es_url = ''\n+es_index_name = 'performance'\n+es_index_type = 'key_metrics'\n \n @app.errorhandler(404)\n def not_found(error):\n     return flask.jsonify({\"error\": \"Not Found\"}), 404\n \n \n def main():\n+\n+    etcd_host = os.environ['ETCD_HOST']","path":"performance/main.py","position":46,"original_position":35,"commit_id":"cf06e871e0edae01111bf8a363d26637dafdd8d8","original_commit_id":"ff0d1874484e14d9f9ab11a455cfb94646d7674f","user":{"login":"boris-42","id":1546725,"avatar_url":"https://avatars.githubusercontent.com/u/1546725?v=3","gravatar_id":"","url":"https://api.github.com/users/boris-42","html_url":"https://github.com/boris-42","followers_url":"https://api.github.com/users/boris-42/followers","following_url":"https://api.github.com/users/boris-42/following{/other_user}","gists_url":"https://api.github.com/users/boris-42/gists{/gist_id}","starred_url":"https://api.github.com/users/boris-42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boris-42/subscriptions","organizations_url":"https://api.github.com/users/boris-42/orgs","repos_url":"https://api.github.com/users/boris-42/repos","events_url":"https://api.github.com/users/boris-42/events{/privacy}","received_events_url":"https://api.github.com/users/boris-42/received_events","type":"User","site_admin":false},"body":"configuration is going to be stored in files. ","created_at":"2016-11-23T12:16:25Z","updated_at":"2016-11-23T12:21:16Z","html_url":"https://github.com/seecloud/performance/pull/8#discussion_r89304338","pull_request_url":"https://api.github.com/repos/seecloud/performance/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/seecloud/performance/pulls/comments/89304338"},"html":{"href":"https://github.com/seecloud/performance/pull/8#discussion_r89304338"},"pull_request":{"href":"https://api.github.com/repos/seecloud/performance/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/seecloud/performance/pulls/8","id":94844400,"html_url":"https://github.com/seecloud/performance/pull/8","diff_url":"https://github.com/seecloud/performance/pull/8.diff","patch_url":"https://github.com/seecloud/performance/pull/8.patch","issue_url":"https://api.github.com/repos/seecloud/performance/issues/8","number":8,"state":"open","locked":false,"title":"initial performance metric api ","user":{"login":"sirmax123","id":5121566,"avatar_url":"https://avatars.githubusercontent.com/u/5121566?v=3","gravatar_id":"","url":"https://api.github.com/users/sirmax123","html_url":"https://github.com/sirmax123","followers_url":"https://api.github.com/users/sirmax123/followers","following_url":"https://api.github.com/users/sirmax123/following{/other_user}","gists_url":"https://api.github.com/users/sirmax123/gists{/gist_id}","starred_url":"https://api.github.com/users/sirmax123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirmax123/subscriptions","organizations_url":"https://api.github.com/users/sirmax123/orgs","repos_url":"https://api.github.com/users/sirmax123/repos","events_url":"https://api.github.com/users/sirmax123/events{/privacy}","received_events_url":"https://api.github.com/users/sirmax123/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-22T16:08:36Z","updated_at":"2016-11-23T12:21:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/seecloud/performance/pulls/8/commits","review_comments_url":"https://api.github.com/repos/seecloud/performance/pulls/8/comments","review_comment_url":"https://api.github.com/repos/seecloud/performance/pulls/comments{/number}","comments_url":"https://api.github.com/repos/seecloud/performance/issues/8/comments","statuses_url":"https://api.github.com/repos/seecloud/performance/statuses/cf06e871e0edae01111bf8a363d26637dafdd8d8","head":{"label":"sirmax123:master","ref":"master","sha":"cf06e871e0edae01111bf8a363d26637dafdd8d8","user":{"login":"sirmax123","id":5121566,"avatar_url":"https://avatars.githubusercontent.com/u/5121566?v=3","gravatar_id":"","url":"https://api.github.com/users/sirmax123","html_url":"https://github.com/sirmax123","followers_url":"https://api.github.com/users/sirmax123/followers","following_url":"https://api.github.com/users/sirmax123/following{/other_user}","gists_url":"https://api.github.com/users/sirmax123/gists{/gist_id}","starred_url":"https://api.github.com/users/sirmax123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirmax123/subscriptions","organizations_url":"https://api.github.com/users/sirmax123/orgs","repos_url":"https://api.github.com/users/sirmax123/repos","events_url":"https://api.github.com/users/sirmax123/events{/privacy}","received_events_url":"https://api.github.com/users/sirmax123/received_events","type":"User","site_admin":false},"repo":{"id":74029568,"name":"performance","full_name":"sirmax123/performance","owner":{"login":"sirmax123","id":5121566,"avatar_url":"https://avatars.githubusercontent.com/u/5121566?v=3","gravatar_id":"","url":"https://api.github.com/users/sirmax123","html_url":"https://github.com/sirmax123","followers_url":"https://api.github.com/users/sirmax123/followers","following_url":"https://api.github.com/users/sirmax123/following{/other_user}","gists_url":"https://api.github.com/users/sirmax123/gists{/gist_id}","starred_url":"https://api.github.com/users/sirmax123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirmax123/subscriptions","organizations_url":"https://api.github.com/users/sirmax123/orgs","repos_url":"https://api.github.com/users/sirmax123/repos","events_url":"https://api.github.com/users/sirmax123/events{/privacy}","received_events_url":"https://api.github.com/users/sirmax123/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sirmax123/performance","description":"Run Periodically Rally to collect key performance metrics, and return results with Rest API ","fork":true,"url":"https://api.github.com/repos/sirmax123/performance","forks_url":"https://api.github.com/repos/sirmax123/performance/forks","keys_url":"https://api.github.com/repos/sirmax123/performance/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sirmax123/performance/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sirmax123/performance/teams","hooks_url":"https://api.github.com/repos/sirmax123/performance/hooks","issue_events_url":"https://api.github.com/repos/sirmax123/performance/issues/events{/number}","events_url":"https://api.github.com/repos/sirmax123/performance/events","assignees_url":"https://api.github.com/repos/sirmax123/performance/assignees{/user}","branches_url":"https://api.github.com/repos/sirmax123/performance/branches{/branch}","tags_url":"https://api.github.com/repos/sirmax123/performance/tags","blobs_url":"https://api.github.com/repos/sirmax123/performance/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sirmax123/performance/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sirmax123/performance/git/refs{/sha}","trees_url":"https://api.github.com/repos/sirmax123/performance/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sirmax123/performance/statuses/{sha}","languages_url":"https://api.github.com/repos/sirmax123/performance/languages","stargazers_url":"https://api.github.com/repos/sirmax123/performance/stargazers","contributors_url":"https://api.github.com/repos/sirmax123/performance/contributors","subscribers_url":"https://api.github.com/repos/sirmax123/performance/subscribers","subscription_url":"https://api.github.com/repos/sirmax123/performance/subscription","commits_url":"https://api.github.com/repos/sirmax123/performance/commits{/sha}","git_commits_url":"https://api.github.com/repos/sirmax123/performance/git/commits{/sha}","comments_url":"https://api.github.com/repos/sirmax123/performance/comments{/number}","issue_comment_url":"https://api.github.com/repos/sirmax123/performance/issues/comments{/number}","contents_url":"https://api.github.com/repos/sirmax123/performance/contents/{+path}","compare_url":"https://api.github.com/repos/sirmax123/performance/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sirmax123/performance/merges","archive_url":"https://api.github.com/repos/sirmax123/performance/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sirmax123/performance/downloads","issues_url":"https://api.github.com/repos/sirmax123/performance/issues{/number}","pulls_url":"https://api.github.com/repos/sirmax123/performance/pulls{/number}","milestones_url":"https://api.github.com/repos/sirmax123/performance/milestones{/number}","notifications_url":"https://api.github.com/repos/sirmax123/performance/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sirmax123/performance/labels{/name}","releases_url":"https://api.github.com/repos/sirmax123/performance/releases{/id}","deployments_url":"https://api.github.com/repos/sirmax123/performance/deployments","created_at":"2016-11-17T13:29:48Z","updated_at":"2016-11-17T13:29:49Z","pushed_at":"2016-11-22T16:01:16Z","git_url":"git://github.com/sirmax123/performance.git","ssh_url":"git@github.com:sirmax123/performance.git","clone_url":"https://github.com/sirmax123/performance.git","svn_url":"https://github.com/sirmax123/performance","homepage":null,"size":30,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"seecloud:master","ref":"master","sha":"7338ffb3bc3ecc0d986c4fc21e8a95ab618e0484","user":{"login":"seecloud","id":21331534,"avatar_url":"https://avatars.githubusercontent.com/u/21331534?v=3","gravatar_id":"","url":"https://api.github.com/users/seecloud","html_url":"https://github.com/seecloud","followers_url":"https://api.github.com/users/seecloud/followers","following_url":"https://api.github.com/users/seecloud/following{/other_user}","gists_url":"https://api.github.com/users/seecloud/gists{/gist_id}","starred_url":"https://api.github.com/users/seecloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seecloud/subscriptions","organizations_url":"https://api.github.com/users/seecloud/orgs","repos_url":"https://api.github.com/users/seecloud/repos","events_url":"https://api.github.com/users/seecloud/events{/privacy}","received_events_url":"https://api.github.com/users/seecloud/received_events","type":"Organization","site_admin":false},"repo":{"id":73300962,"name":"performance","full_name":"seecloud/performance","owner":{"login":"seecloud","id":21331534,"avatar_url":"https://avatars.githubusercontent.com/u/21331534?v=3","gravatar_id":"","url":"https://api.github.com/users/seecloud","html_url":"https://github.com/seecloud","followers_url":"https://api.github.com/users/seecloud/followers","following_url":"https://api.github.com/users/seecloud/following{/other_user}","gists_url":"https://api.github.com/users/seecloud/gists{/gist_id}","starred_url":"https://api.github.com/users/seecloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seecloud/subscriptions","organizations_url":"https://api.github.com/users/seecloud/orgs","repos_url":"https://api.github.com/users/seecloud/repos","events_url":"https://api.github.com/users/seecloud/events{/privacy}","received_events_url":"https://api.github.com/users/seecloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/seecloud/performance","description":"Run Periodically Rally to collect key performance metrics, and return results with Rest API ","fork":false,"url":"https://api.github.com/repos/seecloud/performance","forks_url":"https://api.github.com/repos/seecloud/performance/forks","keys_url":"https://api.github.com/repos/seecloud/performance/keys{/key_id}","collaborators_url":"https://api.github.com/repos/seecloud/performance/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/seecloud/performance/teams","hooks_url":"https://api.github.com/repos/seecloud/performance/hooks","issue_events_url":"https://api.github.com/repos/seecloud/performance/issues/events{/number}","events_url":"https://api.github.com/repos/seecloud/performance/events","assignees_url":"https://api.github.com/repos/seecloud/performance/assignees{/user}","branches_url":"https://api.github.com/repos/seecloud/performance/branches{/branch}","tags_url":"https://api.github.com/repos/seecloud/performance/tags","blobs_url":"https://api.github.com/repos/seecloud/performance/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/seecloud/performance/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/seecloud/performance/git/refs{/sha}","trees_url":"https://api.github.com/repos/seecloud/performance/git/trees{/sha}","statuses_url":"https://api.github.com/repos/seecloud/performance/statuses/{sha}","languages_url":"https://api.github.com/repos/seecloud/performance/languages","stargazers_url":"https://api.github.com/repos/seecloud/performance/stargazers","contributors_url":"https://api.github.com/repos/seecloud/performance/contributors","subscribers_url":"https://api.github.com/repos/seecloud/performance/subscribers","subscription_url":"https://api.github.com/repos/seecloud/performance/subscription","commits_url":"https://api.github.com/repos/seecloud/performance/commits{/sha}","git_commits_url":"https://api.github.com/repos/seecloud/performance/git/commits{/sha}","comments_url":"https://api.github.com/repos/seecloud/performance/comments{/number}","issue_comment_url":"https://api.github.com/repos/seecloud/performance/issues/comments{/number}","contents_url":"https://api.github.com/repos/seecloud/performance/contents/{+path}","compare_url":"https://api.github.com/repos/seecloud/performance/compare/{base}...{head}","merges_url":"https://api.github.com/repos/seecloud/performance/merges","archive_url":"https://api.github.com/repos/seecloud/performance/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/seecloud/performance/downloads","issues_url":"https://api.github.com/repos/seecloud/performance/issues{/number}","pulls_url":"https://api.github.com/repos/seecloud/performance/pulls{/number}","milestones_url":"https://api.github.com/repos/seecloud/performance/milestones{/number}","notifications_url":"https://api.github.com/repos/seecloud/performance/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/seecloud/performance/labels{/name}","releases_url":"https://api.github.com/repos/seecloud/performance/releases{/id}","deployments_url":"https://api.github.com/repos/seecloud/performance/deployments","created_at":"2016-11-09T16:24:37Z","updated_at":"2016-11-10T16:17:29Z","pushed_at":"2016-11-23T11:59:53Z","git_url":"git://github.com/seecloud/performance.git","ssh_url":"git@github.com:seecloud/performance.git","clone_url":"https://github.com/seecloud/performance.git","svn_url":"https://github.com/seecloud/performance","homepage":null,"size":21,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/seecloud/performance/pulls/8"},"html":{"href":"https://github.com/seecloud/performance/pull/8"},"issue":{"href":"https://api.github.com/repos/seecloud/performance/issues/8"},"comments":{"href":"https://api.github.com/repos/seecloud/performance/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/seecloud/performance/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/seecloud/performance/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/seecloud/performance/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/seecloud/performance/statuses/cf06e871e0edae01111bf8a363d26637dafdd8d8"}}}}
{"actor":{"display_login":"boris-42"}}