{"action":"created","comment":{"url":"https://api.github.com/repos/rbkmoney/yandex-tank/pulls/comments/117744896","pull_request_review_id":39473439,"id":117744896,"diff_hunk":"@@ -0,0 +1,176 @@\n+from Aggregator import AggregatorPlugin, AggregateResultListener\n+from yandextank.core import AbstractPlugin\n+from Phantom import PhantomReader\n+from ConsoleOnline import ConsoleOnlinePlugin, AbstractInfoWidget\n+import subprocess\n+import time\n+import shlex\n+import ConsoleScreen\n+import datetime\n+\n+\n+class MinigunPlugin(AbstractPlugin, AggregateResultListener):\n+    SECTION = 'minigun'\n+\n+    def __init__(self, core):\n+        AbstractPlugin.__init__(self, core)\n+        self.process = None\n+        self.process_stderr = None\n+        self.process_start_time = None\n+        self.enum_ammo = False\n+        self.buffered_seconds = 2\n+\n+    @staticmethod\n+    def get_key():\n+        return __file__\n+\n+    def get_available_options(self):\n+        opts = [\n+            \"minigun_cmd\",\n+            \"worker_mod\",\n+            \"ccw\",\n+            \"aps\",\n+            \"wps\",\n+            \"session_duration\",\n+            \"total_duration\",\n+            \"auth_url\",\n+            \"auth_port\",\n+            \"auth_name\",\n+            \"auth_pass\",\n+            \"api_url\",\n+            \"api_port\"\n+        ]\n+        return opts\n+\n+    def configure(self):\n+        ''' Read options from config '''\n+        self.minigun_cmd = self.get_option(\"minigun_cmd\")\n+        self.worker_mod = self.get_option(\"worker_mod\")\n+        self.ccw = self.get_option(\"ccw\")\n+        self.aps = self.get_option(\"aps\")\n+        self.wps = self.get_option(\"wps\")\n+        self.session_duration = self.get_option(\"session_duration\")\n+        self.total_duration = self.get_option(\"total_duration\")\n+        self.phout = self.get_option(\"phout\", \"\")\n+        self.auth_url = self.get_option(\"auth_url\")\n+        self.auth_port = self.get_option(\"auth_port\")\n+        self.auth_name = self.get_option(\"auth_name\")\n+        self.auth_pass = self.get_option(\"auth_pass\")\n+        self.api_url = self.get_option(\"api_url\")\n+        self.api_port = self.get_option(\"api_port\")\n+\n+        if not self.phout:\n+            return\n+","path":"yandextank/plugins/Minigun.py","position":64,"original_position":64,"commit_id":"b9feaa967ff65c46148a0c1955dbac97ff1b272e","original_commit_id":"b9feaa967ff65c46148a0c1955dbac97ff1b272e","user":{"login":"niku64","id":17176125,"avatar_url":"https://avatars0.githubusercontent.com/u/17176125?v=3","gravatar_id":"","url":"https://api.github.com/users/niku64","html_url":"https://github.com/niku64","followers_url":"https://api.github.com/users/niku64/followers","following_url":"https://api.github.com/users/niku64/following{/other_user}","gists_url":"https://api.github.com/users/niku64/gists{/gist_id}","starred_url":"https://api.github.com/users/niku64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niku64/subscriptions","organizations_url":"https://api.github.com/users/niku64/orgs","repos_url":"https://api.github.com/users/niku64/repos","events_url":"https://api.github.com/users/niku64/events{/privacy}","received_events_url":"https://api.github.com/users/niku64/received_events","type":"User","site_admin":false},"body":"Тут лучше бы if self.pout: self.core.add_artifact_file(self.phout) использовать.","created_at":"2017-05-22T13:29:41Z","updated_at":"2017-05-22T13:42:41Z","html_url":"https://github.com/rbkmoney/yandex-tank/pull/1#discussion_r117744896","pull_request_url":"https://api.github.com/repos/rbkmoney/yandex-tank/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/rbkmoney/yandex-tank/pulls/comments/117744896"},"html":{"href":"https://github.com/rbkmoney/yandex-tank/pull/1#discussion_r117744896"},"pull_request":{"href":"https://api.github.com/repos/rbkmoney/yandex-tank/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/rbkmoney/yandex-tank/pulls/1","id":121497101,"html_url":"https://github.com/rbkmoney/yandex-tank/pull/1","diff_url":"https://github.com/rbkmoney/yandex-tank/pull/1.diff","patch_url":"https://github.com/rbkmoney/yandex-tank/pull/1.patch","issue_url":"https://api.github.com/repos/rbkmoney/yandex-tank/issues/1","number":1,"state":"open","locked":false,"title":"Minigun load generator implementation","user":{"login":"manikdv","id":10358470,"avatar_url":"https://avatars2.githubusercontent.com/u/10358470?v=3","gravatar_id":"","url":"https://api.github.com/users/manikdv","html_url":"https://github.com/manikdv","followers_url":"https://api.github.com/users/manikdv/followers","following_url":"https://api.github.com/users/manikdv/following{/other_user}","gists_url":"https://api.github.com/users/manikdv/gists{/gist_id}","starred_url":"https://api.github.com/users/manikdv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manikdv/subscriptions","organizations_url":"https://api.github.com/users/manikdv/orgs","repos_url":"https://api.github.com/users/manikdv/repos","events_url":"https://api.github.com/users/manikdv/events{/privacy}","received_events_url":"https://api.github.com/users/manikdv/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-05-19T13:10:54Z","updated_at":"2017-05-22T13:42:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ad916a944c09b532852098d20e68b1ad53e5a35c","assignee":{"login":"manikdv","id":10358470,"avatar_url":"https://avatars2.githubusercontent.com/u/10358470?v=3","gravatar_id":"","url":"https://api.github.com/users/manikdv","html_url":"https://github.com/manikdv","followers_url":"https://api.github.com/users/manikdv/followers","following_url":"https://api.github.com/users/manikdv/following{/other_user}","gists_url":"https://api.github.com/users/manikdv/gists{/gist_id}","starred_url":"https://api.github.com/users/manikdv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manikdv/subscriptions","organizations_url":"https://api.github.com/users/manikdv/orgs","repos_url":"https://api.github.com/users/manikdv/repos","events_url":"https://api.github.com/users/manikdv/events{/privacy}","received_events_url":"https://api.github.com/users/manikdv/received_events","type":"User","site_admin":false},"assignees":[{"login":"manikdv","id":10358470,"avatar_url":"https://avatars2.githubusercontent.com/u/10358470?v=3","gravatar_id":"","url":"https://api.github.com/users/manikdv","html_url":"https://github.com/manikdv","followers_url":"https://api.github.com/users/manikdv/followers","following_url":"https://api.github.com/users/manikdv/following{/other_user}","gists_url":"https://api.github.com/users/manikdv/gists{/gist_id}","starred_url":"https://api.github.com/users/manikdv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manikdv/subscriptions","organizations_url":"https://api.github.com/users/manikdv/orgs","repos_url":"https://api.github.com/users/manikdv/repos","events_url":"https://api.github.com/users/manikdv/events{/privacy}","received_events_url":"https://api.github.com/users/manikdv/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/rbkmoney/yandex-tank/pulls/1/commits","review_comments_url":"https://api.github.com/repos/rbkmoney/yandex-tank/pulls/1/comments","review_comment_url":"https://api.github.com/repos/rbkmoney/yandex-tank/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rbkmoney/yandex-tank/issues/1/comments","statuses_url":"https://api.github.com/repos/rbkmoney/yandex-tank/statuses/b9feaa967ff65c46148a0c1955dbac97ff1b272e","head":{"label":"rbkmoney:test","ref":"test","sha":"b9feaa967ff65c46148a0c1955dbac97ff1b272e","user":{"login":"rbkmoney","id":17027024,"avatar_url":"https://avatars3.githubusercontent.com/u/17027024?v=3","gravatar_id":"","url":"https://api.github.com/users/rbkmoney","html_url":"https://github.com/rbkmoney","followers_url":"https://api.github.com/users/rbkmoney/followers","following_url":"https://api.github.com/users/rbkmoney/following{/other_user}","gists_url":"https://api.github.com/users/rbkmoney/gists{/gist_id}","starred_url":"https://api.github.com/users/rbkmoney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbkmoney/subscriptions","organizations_url":"https://api.github.com/users/rbkmoney/orgs","repos_url":"https://api.github.com/users/rbkmoney/repos","events_url":"https://api.github.com/users/rbkmoney/events{/privacy}","received_events_url":"https://api.github.com/users/rbkmoney/received_events","type":"Organization","site_admin":false},"repo":{"id":89727682,"name":"yandex-tank","full_name":"rbkmoney/yandex-tank","owner":{"login":"rbkmoney","id":17027024,"avatar_url":"https://avatars3.githubusercontent.com/u/17027024?v=3","gravatar_id":"","url":"https://api.github.com/users/rbkmoney","html_url":"https://github.com/rbkmoney","followers_url":"https://api.github.com/users/rbkmoney/followers","following_url":"https://api.github.com/users/rbkmoney/following{/other_user}","gists_url":"https://api.github.com/users/rbkmoney/gists{/gist_id}","starred_url":"https://api.github.com/users/rbkmoney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbkmoney/subscriptions","organizations_url":"https://api.github.com/users/rbkmoney/orgs","repos_url":"https://api.github.com/users/rbkmoney/repos","events_url":"https://api.github.com/users/rbkmoney/events{/privacy}","received_events_url":"https://api.github.com/users/rbkmoney/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rbkmoney/yandex-tank","description":"Load and performance benchmark tool","fork":true,"url":"https://api.github.com/repos/rbkmoney/yandex-tank","forks_url":"https://api.github.com/repos/rbkmoney/yandex-tank/forks","keys_url":"https://api.github.com/repos/rbkmoney/yandex-tank/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rbkmoney/yandex-tank/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rbkmoney/yandex-tank/teams","hooks_url":"https://api.github.com/repos/rbkmoney/yandex-tank/hooks","issue_events_url":"https://api.github.com/repos/rbkmoney/yandex-tank/issues/events{/number}","events_url":"https://api.github.com/repos/rbkmoney/yandex-tank/events","assignees_url":"https://api.github.com/repos/rbkmoney/yandex-tank/assignees{/user}","branches_url":"https://api.github.com/repos/rbkmoney/yandex-tank/branches{/branch}","tags_url":"https://api.github.com/repos/rbkmoney/yandex-tank/tags","blobs_url":"https://api.github.com/repos/rbkmoney/yandex-tank/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rbkmoney/yandex-tank/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rbkmoney/yandex-tank/git/refs{/sha}","trees_url":"https://api.github.com/repos/rbkmoney/yandex-tank/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rbkmoney/yandex-tank/statuses/{sha}","languages_url":"https://api.github.com/repos/rbkmoney/yandex-tank/languages","stargazers_url":"https://api.github.com/repos/rbkmoney/yandex-tank/stargazers","contributors_url":"https://api.github.com/repos/rbkmoney/yandex-tank/contributors","subscribers_url":"https://api.github.com/repos/rbkmoney/yandex-tank/subscribers","subscription_url":"https://api.github.com/repos/rbkmoney/yandex-tank/subscription","commits_url":"https://api.github.com/repos/rbkmoney/yandex-tank/commits{/sha}","git_commits_url":"https://api.github.com/repos/rbkmoney/yandex-tank/git/commits{/sha}","comments_url":"https://api.github.com/repos/rbkmoney/yandex-tank/comments{/number}","issue_comment_url":"https://api.github.com/repos/rbkmoney/yandex-tank/issues/comments{/number}","contents_url":"https://api.github.com/repos/rbkmoney/yandex-tank/contents/{+path}","compare_url":"https://api.github.com/repos/rbkmoney/yandex-tank/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rbkmoney/yandex-tank/merges","archive_url":"https://api.github.com/repos/rbkmoney/yandex-tank/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rbkmoney/yandex-tank/downloads","issues_url":"https://api.github.com/repos/rbkmoney/yandex-tank/issues{/number}","pulls_url":"https://api.github.com/repos/rbkmoney/yandex-tank/pulls{/number}","milestones_url":"https://api.github.com/repos/rbkmoney/yandex-tank/milestones{/number}","notifications_url":"https://api.github.com/repos/rbkmoney/yandex-tank/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rbkmoney/yandex-tank/labels{/name}","releases_url":"https://api.github.com/repos/rbkmoney/yandex-tank/releases{/id}","deployments_url":"https://api.github.com/repos/rbkmoney/yandex-tank/deployments","created_at":"2017-04-28T17:08:47Z","updated_at":"2017-04-28T17:08:49Z","pushed_at":"2017-05-19T13:10:55Z","git_url":"git://github.com/rbkmoney/yandex-tank.git","ssh_url":"git@github.com:rbkmoney/yandex-tank.git","clone_url":"https://github.com/rbkmoney/yandex-tank.git","svn_url":"https://github.com/rbkmoney/yandex-tank","homepage":null,"size":5492,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"rbkmoney:minigun","ref":"minigun","sha":"4ea5f7a73cc2a0d74f0db723d029bf6e6c3ab664","user":{"login":"rbkmoney","id":17027024,"avatar_url":"https://avatars3.githubusercontent.com/u/17027024?v=3","gravatar_id":"","url":"https://api.github.com/users/rbkmoney","html_url":"https://github.com/rbkmoney","followers_url":"https://api.github.com/users/rbkmoney/followers","following_url":"https://api.github.com/users/rbkmoney/following{/other_user}","gists_url":"https://api.github.com/users/rbkmoney/gists{/gist_id}","starred_url":"https://api.github.com/users/rbkmoney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbkmoney/subscriptions","organizations_url":"https://api.github.com/users/rbkmoney/orgs","repos_url":"https://api.github.com/users/rbkmoney/repos","events_url":"https://api.github.com/users/rbkmoney/events{/privacy}","received_events_url":"https://api.github.com/users/rbkmoney/received_events","type":"Organization","site_admin":false},"repo":{"id":89727682,"name":"yandex-tank","full_name":"rbkmoney/yandex-tank","owner":{"login":"rbkmoney","id":17027024,"avatar_url":"https://avatars3.githubusercontent.com/u/17027024?v=3","gravatar_id":"","url":"https://api.github.com/users/rbkmoney","html_url":"https://github.com/rbkmoney","followers_url":"https://api.github.com/users/rbkmoney/followers","following_url":"https://api.github.com/users/rbkmoney/following{/other_user}","gists_url":"https://api.github.com/users/rbkmoney/gists{/gist_id}","starred_url":"https://api.github.com/users/rbkmoney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbkmoney/subscriptions","organizations_url":"https://api.github.com/users/rbkmoney/orgs","repos_url":"https://api.github.com/users/rbkmoney/repos","events_url":"https://api.github.com/users/rbkmoney/events{/privacy}","received_events_url":"https://api.github.com/users/rbkmoney/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rbkmoney/yandex-tank","description":"Load and performance benchmark tool","fork":true,"url":"https://api.github.com/repos/rbkmoney/yandex-tank","forks_url":"https://api.github.com/repos/rbkmoney/yandex-tank/forks","keys_url":"https://api.github.com/repos/rbkmoney/yandex-tank/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rbkmoney/yandex-tank/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rbkmoney/yandex-tank/teams","hooks_url":"https://api.github.com/repos/rbkmoney/yandex-tank/hooks","issue_events_url":"https://api.github.com/repos/rbkmoney/yandex-tank/issues/events{/number}","events_url":"https://api.github.com/repos/rbkmoney/yandex-tank/events","assignees_url":"https://api.github.com/repos/rbkmoney/yandex-tank/assignees{/user}","branches_url":"https://api.github.com/repos/rbkmoney/yandex-tank/branches{/branch}","tags_url":"https://api.github.com/repos/rbkmoney/yandex-tank/tags","blobs_url":"https://api.github.com/repos/rbkmoney/yandex-tank/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rbkmoney/yandex-tank/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rbkmoney/yandex-tank/git/refs{/sha}","trees_url":"https://api.github.com/repos/rbkmoney/yandex-tank/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rbkmoney/yandex-tank/statuses/{sha}","languages_url":"https://api.github.com/repos/rbkmoney/yandex-tank/languages","stargazers_url":"https://api.github.com/repos/rbkmoney/yandex-tank/stargazers","contributors_url":"https://api.github.com/repos/rbkmoney/yandex-tank/contributors","subscribers_url":"https://api.github.com/repos/rbkmoney/yandex-tank/subscribers","subscription_url":"https://api.github.com/repos/rbkmoney/yandex-tank/subscription","commits_url":"https://api.github.com/repos/rbkmoney/yandex-tank/commits{/sha}","git_commits_url":"https://api.github.com/repos/rbkmoney/yandex-tank/git/commits{/sha}","comments_url":"https://api.github.com/repos/rbkmoney/yandex-tank/comments{/number}","issue_comment_url":"https://api.github.com/repos/rbkmoney/yandex-tank/issues/comments{/number}","contents_url":"https://api.github.com/repos/rbkmoney/yandex-tank/contents/{+path}","compare_url":"https://api.github.com/repos/rbkmoney/yandex-tank/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rbkmoney/yandex-tank/merges","archive_url":"https://api.github.com/repos/rbkmoney/yandex-tank/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rbkmoney/yandex-tank/downloads","issues_url":"https://api.github.com/repos/rbkmoney/yandex-tank/issues{/number}","pulls_url":"https://api.github.com/repos/rbkmoney/yandex-tank/pulls{/number}","milestones_url":"https://api.github.com/repos/rbkmoney/yandex-tank/milestones{/number}","notifications_url":"https://api.github.com/repos/rbkmoney/yandex-tank/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rbkmoney/yandex-tank/labels{/name}","releases_url":"https://api.github.com/repos/rbkmoney/yandex-tank/releases{/id}","deployments_url":"https://api.github.com/repos/rbkmoney/yandex-tank/deployments","created_at":"2017-04-28T17:08:47Z","updated_at":"2017-04-28T17:08:49Z","pushed_at":"2017-05-19T13:10:55Z","git_url":"git://github.com/rbkmoney/yandex-tank.git","ssh_url":"git@github.com:rbkmoney/yandex-tank.git","clone_url":"https://github.com/rbkmoney/yandex-tank.git","svn_url":"https://github.com/rbkmoney/yandex-tank","homepage":null,"size":5492,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/rbkmoney/yandex-tank/pulls/1"},"html":{"href":"https://github.com/rbkmoney/yandex-tank/pull/1"},"issue":{"href":"https://api.github.com/repos/rbkmoney/yandex-tank/issues/1"},"comments":{"href":"https://api.github.com/repos/rbkmoney/yandex-tank/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/rbkmoney/yandex-tank/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/rbkmoney/yandex-tank/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rbkmoney/yandex-tank/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/rbkmoney/yandex-tank/statuses/b9feaa967ff65c46148a0c1955dbac97ff1b272e"}}}}
{"actor":{"display_login":"niku64"}}