{"action":"created","comment":{"url":"https://api.github.com/repos/arbor/kafka-to-sqs/pulls/comments/168071973","pull_request_review_id":96379481,"id":168071973,"diff_hunk":"@@ -0,0 +1,27 @@\n+{-# LANGUAGE DeriveAnyClass   #-}\n+{-# LANGUAGE FlexibleContexts #-}\n+{-# LANGUAGE TemplateHaskell  #-}\n+\n+module App.Options.Cmd where\n+\n+import App.Options.Cmd.Help       as C\n+import App.Options.Cmd.KafkaToSqs as C\n+import App.Options.Cmd.SqsToKafka as C\n+import Control.Lens\n+import Data.Monoid\n+import Options.Applicative\n+\n+data Cmd\n+  = CmdOfCmdHelp        { _cmdHelp        :: CmdHelp        }\n+  | CmdOfCmdKafkaToSqs  { _cmdKafkaToSqs  :: CmdKafkaToSqs  }","path":"src/App/Options/Cmd.hs","position":16,"original_position":16,"commit_id":"127a9fa0d74fa5be44f279593f3d6472922e24bb","original_commit_id":"127a9fa0d74fa5be44f279593f3d6472922e24bb","user":{"login":"newhoggy","id":63014,"avatar_url":"https://avatars2.githubusercontent.com/u/63014?v=4","gravatar_id":"","url":"https://api.github.com/users/newhoggy","html_url":"https://github.com/newhoggy","followers_url":"https://api.github.com/users/newhoggy/followers","following_url":"https://api.github.com/users/newhoggy/following{/other_user}","gists_url":"https://api.github.com/users/newhoggy/gists{/gist_id}","starred_url":"https://api.github.com/users/newhoggy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newhoggy/subscriptions","organizations_url":"https://api.github.com/users/newhoggy/orgs","repos_url":"https://api.github.com/users/newhoggy/repos","events_url":"https://api.github.com/users/newhoggy/events{/privacy}","received_events_url":"https://api.github.com/users/newhoggy/received_events","type":"User","site_admin":false},"body":"Doesn't `Control.Lens` generate prisms for these?","created_at":"2018-02-14T03:55:10Z","updated_at":"2018-02-14T03:55:10Z","html_url":"https://github.com/arbor/kafka-to-sqs/pull/2#discussion_r168071973","pull_request_url":"https://api.github.com/repos/arbor/kafka-to-sqs/pulls/2","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/arbor/kafka-to-sqs/pulls/comments/168071973"},"html":{"href":"https://github.com/arbor/kafka-to-sqs/pull/2#discussion_r168071973"},"pull_request":{"href":"https://api.github.com/repos/arbor/kafka-to-sqs/pulls/2"}},"in_reply_to_id":168070952},"pull_request":{"url":"https://api.github.com/repos/arbor/kafka-to-sqs/pulls/2","id":169010384,"html_url":"https://github.com/arbor/kafka-to-sqs/pull/2","diff_url":"https://github.com/arbor/kafka-to-sqs/pull/2.diff","patch_url":"https://github.com/arbor/kafka-to-sqs/pull/2.patch","issue_url":"https://api.github.com/repos/arbor/kafka-to-sqs/issues/2","number":2,"state":"open","locked":false,"title":"Add support for multiple commands","user":{"login":"newhoggy","id":63014,"avatar_url":"https://avatars2.githubusercontent.com/u/63014?v=4","gravatar_id":"","url":"https://api.github.com/users/newhoggy","html_url":"https://github.com/newhoggy","followers_url":"https://api.github.com/users/newhoggy/followers","following_url":"https://api.github.com/users/newhoggy/following{/other_user}","gists_url":"https://api.github.com/users/newhoggy/gists{/gist_id}","starred_url":"https://api.github.com/users/newhoggy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newhoggy/subscriptions","organizations_url":"https://api.github.com/users/newhoggy/orgs","repos_url":"https://api.github.com/users/newhoggy/repos","events_url":"https://api.github.com/users/newhoggy/events{/privacy}","received_events_url":"https://api.github.com/users/newhoggy/received_events","type":"User","site_admin":false},"body":"```\r\n$ stack exec kafka-to-sqs\r\nSpurious Attacks Detector\r\n\r\nUsage: kafka-to-sqs [--log-level LOG_LEVEL] [--region AWS_REGION] COMMAND\r\n                    [--statsd-host HOST_NAME] [--statsd-tags TAGS]\r\n                    [--statsd-sample-rate SAMPLE_RATE]\r\n  For each attack caclulates its spuriousity index [0..1]\r\n\r\nAvailable options:\r\n  -h,--help                Show this help text\r\n  --log-level LOG_LEVEL    Log level. (default: LevelInfo)\r\n  --region AWS_REGION      The AWS region in which to operate (default: Oregon)\r\n  --statsd-host HOST_NAME  StatsD host name or IP address (default: \"127.0.0.1\")\r\n  --statsd-port PORT       StatsD port (default: 8125)\r\n  --statsd-tags TAGS       StatsD tags (default: \"\")\r\n  --statsd-sample-rate SAMPLE_RATE\r\n                           StatsD sample rate (default: 1.0e-2)\r\n\r\nAvailable commands:\r\n  help                     Help\r\n  kafka-to-sqs             Kafka to SQS\r\n  sqs-to-kafka             SQS to Kafka\r\n```","created_at":"2018-02-14T02:50:25Z","updated_at":"2018-02-14T03:55:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"afe2feb0b888649fd3a3ebeb0eb4bcbc8b727b36","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/arbor/kafka-to-sqs/pulls/2/commits","review_comments_url":"https://api.github.com/repos/arbor/kafka-to-sqs/pulls/2/comments","review_comment_url":"https://api.github.com/repos/arbor/kafka-to-sqs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/arbor/kafka-to-sqs/issues/2/comments","statuses_url":"https://api.github.com/repos/arbor/kafka-to-sqs/statuses/127a9fa0d74fa5be44f279593f3d6472922e24bb","head":{"label":"arbor:MAYH-7912-add-support-for-multiple-commands","ref":"MAYH-7912-add-support-for-multiple-commands","sha":"127a9fa0d74fa5be44f279593f3d6472922e24bb","user":{"login":"arbor","id":2744495,"avatar_url":"https://avatars2.githubusercontent.com/u/2744495?v=4","gravatar_id":"","url":"https://api.github.com/users/arbor","html_url":"https://github.com/arbor","followers_url":"https://api.github.com/users/arbor/followers","following_url":"https://api.github.com/users/arbor/following{/other_user}","gists_url":"https://api.github.com/users/arbor/gists{/gist_id}","starred_url":"https://api.github.com/users/arbor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbor/subscriptions","organizations_url":"https://api.github.com/users/arbor/orgs","repos_url":"https://api.github.com/users/arbor/repos","events_url":"https://api.github.com/users/arbor/events{/privacy}","received_events_url":"https://api.github.com/users/arbor/received_events","type":"Organization","site_admin":false},"repo":{"id":121311328,"name":"kafka-to-sqs","full_name":"arbor/kafka-to-sqs","owner":{"login":"arbor","id":2744495,"avatar_url":"https://avatars2.githubusercontent.com/u/2744495?v=4","gravatar_id":"","url":"https://api.github.com/users/arbor","html_url":"https://github.com/arbor","followers_url":"https://api.github.com/users/arbor/followers","following_url":"https://api.github.com/users/arbor/following{/other_user}","gists_url":"https://api.github.com/users/arbor/gists{/gist_id}","starred_url":"https://api.github.com/users/arbor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbor/subscriptions","organizations_url":"https://api.github.com/users/arbor/orgs","repos_url":"https://api.github.com/users/arbor/repos","events_url":"https://api.github.com/users/arbor/events{/privacy}","received_events_url":"https://api.github.com/users/arbor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/arbor/kafka-to-sqs","description":"Job that copies messages from Kafka to SQS","fork":false,"url":"https://api.github.com/repos/arbor/kafka-to-sqs","forks_url":"https://api.github.com/repos/arbor/kafka-to-sqs/forks","keys_url":"https://api.github.com/repos/arbor/kafka-to-sqs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arbor/kafka-to-sqs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arbor/kafka-to-sqs/teams","hooks_url":"https://api.github.com/repos/arbor/kafka-to-sqs/hooks","issue_events_url":"https://api.github.com/repos/arbor/kafka-to-sqs/issues/events{/number}","events_url":"https://api.github.com/repos/arbor/kafka-to-sqs/events","assignees_url":"https://api.github.com/repos/arbor/kafka-to-sqs/assignees{/user}","branches_url":"https://api.github.com/repos/arbor/kafka-to-sqs/branches{/branch}","tags_url":"https://api.github.com/repos/arbor/kafka-to-sqs/tags","blobs_url":"https://api.github.com/repos/arbor/kafka-to-sqs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arbor/kafka-to-sqs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arbor/kafka-to-sqs/git/refs{/sha}","trees_url":"https://api.github.com/repos/arbor/kafka-to-sqs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arbor/kafka-to-sqs/statuses/{sha}","languages_url":"https://api.github.com/repos/arbor/kafka-to-sqs/languages","stargazers_url":"https://api.github.com/repos/arbor/kafka-to-sqs/stargazers","contributors_url":"https://api.github.com/repos/arbor/kafka-to-sqs/contributors","subscribers_url":"https://api.github.com/repos/arbor/kafka-to-sqs/subscribers","subscription_url":"https://api.github.com/repos/arbor/kafka-to-sqs/subscription","commits_url":"https://api.github.com/repos/arbor/kafka-to-sqs/commits{/sha}","git_commits_url":"https://api.github.com/repos/arbor/kafka-to-sqs/git/commits{/sha}","comments_url":"https://api.github.com/repos/arbor/kafka-to-sqs/comments{/number}","issue_comment_url":"https://api.github.com/repos/arbor/kafka-to-sqs/issues/comments{/number}","contents_url":"https://api.github.com/repos/arbor/kafka-to-sqs/contents/{+path}","compare_url":"https://api.github.com/repos/arbor/kafka-to-sqs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arbor/kafka-to-sqs/merges","archive_url":"https://api.github.com/repos/arbor/kafka-to-sqs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arbor/kafka-to-sqs/downloads","issues_url":"https://api.github.com/repos/arbor/kafka-to-sqs/issues{/number}","pulls_url":"https://api.github.com/repos/arbor/kafka-to-sqs/pulls{/number}","milestones_url":"https://api.github.com/repos/arbor/kafka-to-sqs/milestones{/number}","notifications_url":"https://api.github.com/repos/arbor/kafka-to-sqs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arbor/kafka-to-sqs/labels{/name}","releases_url":"https://api.github.com/repos/arbor/kafka-to-sqs/releases{/id}","deployments_url":"https://api.github.com/repos/arbor/kafka-to-sqs/deployments","created_at":"2018-02-12T22:37:25Z","updated_at":"2018-02-12T22:45:08Z","pushed_at":"2018-02-14T03:04:06Z","git_url":"git://github.com/arbor/kafka-to-sqs.git","ssh_url":"git@github.com:arbor/kafka-to-sqs.git","clone_url":"https://github.com/arbor/kafka-to-sqs.git","svn_url":"https://github.com/arbor/kafka-to-sqs","homepage":null,"size":34,"stargazers_count":0,"watchers_count":0,"language":"Haskell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"arbor:master","ref":"master","sha":"1a49cef7d8c43a5857ca280f8f507a55378d2d73","user":{"login":"arbor","id":2744495,"avatar_url":"https://avatars2.githubusercontent.com/u/2744495?v=4","gravatar_id":"","url":"https://api.github.com/users/arbor","html_url":"https://github.com/arbor","followers_url":"https://api.github.com/users/arbor/followers","following_url":"https://api.github.com/users/arbor/following{/other_user}","gists_url":"https://api.github.com/users/arbor/gists{/gist_id}","starred_url":"https://api.github.com/users/arbor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbor/subscriptions","organizations_url":"https://api.github.com/users/arbor/orgs","repos_url":"https://api.github.com/users/arbor/repos","events_url":"https://api.github.com/users/arbor/events{/privacy}","received_events_url":"https://api.github.com/users/arbor/received_events","type":"Organization","site_admin":false},"repo":{"id":121311328,"name":"kafka-to-sqs","full_name":"arbor/kafka-to-sqs","owner":{"login":"arbor","id":2744495,"avatar_url":"https://avatars2.githubusercontent.com/u/2744495?v=4","gravatar_id":"","url":"https://api.github.com/users/arbor","html_url":"https://github.com/arbor","followers_url":"https://api.github.com/users/arbor/followers","following_url":"https://api.github.com/users/arbor/following{/other_user}","gists_url":"https://api.github.com/users/arbor/gists{/gist_id}","starred_url":"https://api.github.com/users/arbor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbor/subscriptions","organizations_url":"https://api.github.com/users/arbor/orgs","repos_url":"https://api.github.com/users/arbor/repos","events_url":"https://api.github.com/users/arbor/events{/privacy}","received_events_url":"https://api.github.com/users/arbor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/arbor/kafka-to-sqs","description":"Job that copies messages from Kafka to SQS","fork":false,"url":"https://api.github.com/repos/arbor/kafka-to-sqs","forks_url":"https://api.github.com/repos/arbor/kafka-to-sqs/forks","keys_url":"https://api.github.com/repos/arbor/kafka-to-sqs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arbor/kafka-to-sqs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arbor/kafka-to-sqs/teams","hooks_url":"https://api.github.com/repos/arbor/kafka-to-sqs/hooks","issue_events_url":"https://api.github.com/repos/arbor/kafka-to-sqs/issues/events{/number}","events_url":"https://api.github.com/repos/arbor/kafka-to-sqs/events","assignees_url":"https://api.github.com/repos/arbor/kafka-to-sqs/assignees{/user}","branches_url":"https://api.github.com/repos/arbor/kafka-to-sqs/branches{/branch}","tags_url":"https://api.github.com/repos/arbor/kafka-to-sqs/tags","blobs_url":"https://api.github.com/repos/arbor/kafka-to-sqs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arbor/kafka-to-sqs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arbor/kafka-to-sqs/git/refs{/sha}","trees_url":"https://api.github.com/repos/arbor/kafka-to-sqs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arbor/kafka-to-sqs/statuses/{sha}","languages_url":"https://api.github.com/repos/arbor/kafka-to-sqs/languages","stargazers_url":"https://api.github.com/repos/arbor/kafka-to-sqs/stargazers","contributors_url":"https://api.github.com/repos/arbor/kafka-to-sqs/contributors","subscribers_url":"https://api.github.com/repos/arbor/kafka-to-sqs/subscribers","subscription_url":"https://api.github.com/repos/arbor/kafka-to-sqs/subscription","commits_url":"https://api.github.com/repos/arbor/kafka-to-sqs/commits{/sha}","git_commits_url":"https://api.github.com/repos/arbor/kafka-to-sqs/git/commits{/sha}","comments_url":"https://api.github.com/repos/arbor/kafka-to-sqs/comments{/number}","issue_comment_url":"https://api.github.com/repos/arbor/kafka-to-sqs/issues/comments{/number}","contents_url":"https://api.github.com/repos/arbor/kafka-to-sqs/contents/{+path}","compare_url":"https://api.github.com/repos/arbor/kafka-to-sqs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arbor/kafka-to-sqs/merges","archive_url":"https://api.github.com/repos/arbor/kafka-to-sqs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arbor/kafka-to-sqs/downloads","issues_url":"https://api.github.com/repos/arbor/kafka-to-sqs/issues{/number}","pulls_url":"https://api.github.com/repos/arbor/kafka-to-sqs/pulls{/number}","milestones_url":"https://api.github.com/repos/arbor/kafka-to-sqs/milestones{/number}","notifications_url":"https://api.github.com/repos/arbor/kafka-to-sqs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arbor/kafka-to-sqs/labels{/name}","releases_url":"https://api.github.com/repos/arbor/kafka-to-sqs/releases{/id}","deployments_url":"https://api.github.com/repos/arbor/kafka-to-sqs/deployments","created_at":"2018-02-12T22:37:25Z","updated_at":"2018-02-12T22:45:08Z","pushed_at":"2018-02-14T03:04:06Z","git_url":"git://github.com/arbor/kafka-to-sqs.git","ssh_url":"git@github.com:arbor/kafka-to-sqs.git","clone_url":"https://github.com/arbor/kafka-to-sqs.git","svn_url":"https://github.com/arbor/kafka-to-sqs","homepage":null,"size":34,"stargazers_count":0,"watchers_count":0,"language":"Haskell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/arbor/kafka-to-sqs/pulls/2"},"html":{"href":"https://github.com/arbor/kafka-to-sqs/pull/2"},"issue":{"href":"https://api.github.com/repos/arbor/kafka-to-sqs/issues/2"},"comments":{"href":"https://api.github.com/repos/arbor/kafka-to-sqs/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/arbor/kafka-to-sqs/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/arbor/kafka-to-sqs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/arbor/kafka-to-sqs/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/arbor/kafka-to-sqs/statuses/127a9fa0d74fa5be44f279593f3d6472922e24bb"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"newhoggy"}}