{"action":"opened","number":74,"pull_request":{"url":"https://api.github.com/repos/ARGOeu/argo-streaming/pulls/74","id":196460526,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2NDYwNTI2","html_url":"https://github.com/ARGOeu/argo-streaming/pull/74","diff_url":"https://github.com/ARGOeu/argo-streaming/pull/74.diff","patch_url":"https://github.com/ARGOeu/argo-streaming/pull/74.patch","issue_url":"https://api.github.com/repos/ARGOeu/argo-streaming/issues/74","number":74,"state":"open","locked":false,"title":"ARGO-1256 Implement Threshold component in batch jobs","user":{"login":"kaggis","id":6143589,"node_id":"MDQ6VXNlcjYxNDM1ODk=","avatar_url":"https://avatars2.githubusercontent.com/u/6143589?v=4","gravatar_id":"","url":"https://api.github.com/users/kaggis","html_url":"https://github.com/kaggis","followers_url":"https://api.github.com/users/kaggis/followers","following_url":"https://api.github.com/users/kaggis/following{/other_user}","gists_url":"https://api.github.com/users/kaggis/gists{/gist_id}","starred_url":"https://api.github.com/users/kaggis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaggis/subscriptions","organizations_url":"https://api.github.com/users/kaggis/orgs","repos_url":"https://api.github.com/users/kaggis/repos","events_url":"https://api.github.com/users/kaggis/events{/privacy}","received_events_url":"https://api.github.com/users/kaggis/received_events","type":"User","site_admin":false},"body":"# Issue\r\nAdd Threshold support to batch a/r and status projects\r\nUpdate Threshold Manager with more flexible parsing rule\r\n\r\nIn Batch_ar & Batch_status projects:\r\n - [x] Incorporate ThresholdManager in PickEndpoints operator (first stage of parsing low level metric data) to update metric data status if a rule applies\r\n - [x] Optional input of threshold feed (rule json file) in flink job (using cli param `--thr <fs:destination>`)\r\n - [x] Update docs, readme\r\n\r\nIn ThresholdManager\r\n - [x] Refactor parsing rule to be more flexible (use lookahead regexp)\r\n - [x] Add getThresholdValues method to directly get a map of threshold values parsed from `actual_data` fields\r\n - [x] Add calcStateWithValue method to calculate a threshold rule status given an outside value\r\n - [x] Add getStatusWithValues method to automatically calculate status from a list of threshold rules given a list of external values. Thresholds rules are checked only for the corresponding external values given.\r\n","created_at":"2018-06-21T13:54:32Z","updated_at":"2018-06-21T13:54:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ARGOeu/argo-streaming/pulls/74/commits","review_comments_url":"https://api.github.com/repos/ARGOeu/argo-streaming/pulls/74/comments","review_comment_url":"https://api.github.com/repos/ARGOeu/argo-streaming/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ARGOeu/argo-streaming/issues/74/comments","statuses_url":"https://api.github.com/repos/ARGOeu/argo-streaming/statuses/860e21eac80efb1e6416581cb4d3660503e41d4f","head":{"label":"kaggis:thresholds-metrics-level","ref":"thresholds-metrics-level","sha":"860e21eac80efb1e6416581cb4d3660503e41d4f","user":{"login":"kaggis","id":6143589,"node_id":"MDQ6VXNlcjYxNDM1ODk=","avatar_url":"https://avatars2.githubusercontent.com/u/6143589?v=4","gravatar_id":"","url":"https://api.github.com/users/kaggis","html_url":"https://github.com/kaggis","followers_url":"https://api.github.com/users/kaggis/followers","following_url":"https://api.github.com/users/kaggis/following{/other_user}","gists_url":"https://api.github.com/users/kaggis/gists{/gist_id}","starred_url":"https://api.github.com/users/kaggis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaggis/subscriptions","organizations_url":"https://api.github.com/users/kaggis/orgs","repos_url":"https://api.github.com/users/kaggis/repos","events_url":"https://api.github.com/users/kaggis/events{/privacy}","received_events_url":"https://api.github.com/users/kaggis/received_events","type":"User","site_admin":false},"repo":{"id":76551180,"node_id":"MDEwOlJlcG9zaXRvcnk3NjU1MTE4MA==","name":"argo-streaming","full_name":"kaggis/argo-streaming","owner":{"login":"kaggis","id":6143589,"node_id":"MDQ6VXNlcjYxNDM1ODk=","avatar_url":"https://avatars2.githubusercontent.com/u/6143589?v=4","gravatar_id":"","url":"https://api.github.com/users/kaggis","html_url":"https://github.com/kaggis","followers_url":"https://api.github.com/users/kaggis/followers","following_url":"https://api.github.com/users/kaggis/following{/other_user}","gists_url":"https://api.github.com/users/kaggis/gists{/gist_id}","starred_url":"https://api.github.com/users/kaggis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaggis/subscriptions","organizations_url":"https://api.github.com/users/kaggis/orgs","repos_url":"https://api.github.com/users/kaggis/repos","events_url":"https://api.github.com/users/kaggis/events{/privacy}","received_events_url":"https://api.github.com/users/kaggis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kaggis/argo-streaming","description":null,"fork":true,"url":"https://api.github.com/repos/kaggis/argo-streaming","forks_url":"https://api.github.com/repos/kaggis/argo-streaming/forks","keys_url":"https://api.github.com/repos/kaggis/argo-streaming/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaggis/argo-streaming/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaggis/argo-streaming/teams","hooks_url":"https://api.github.com/repos/kaggis/argo-streaming/hooks","issue_events_url":"https://api.github.com/repos/kaggis/argo-streaming/issues/events{/number}","events_url":"https://api.github.com/repos/kaggis/argo-streaming/events","assignees_url":"https://api.github.com/repos/kaggis/argo-streaming/assignees{/user}","branches_url":"https://api.github.com/repos/kaggis/argo-streaming/branches{/branch}","tags_url":"https://api.github.com/repos/kaggis/argo-streaming/tags","blobs_url":"https://api.github.com/repos/kaggis/argo-streaming/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaggis/argo-streaming/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaggis/argo-streaming/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaggis/argo-streaming/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaggis/argo-streaming/statuses/{sha}","languages_url":"https://api.github.com/repos/kaggis/argo-streaming/languages","stargazers_url":"https://api.github.com/repos/kaggis/argo-streaming/stargazers","contributors_url":"https://api.github.com/repos/kaggis/argo-streaming/contributors","subscribers_url":"https://api.github.com/repos/kaggis/argo-streaming/subscribers","subscription_url":"https://api.github.com/repos/kaggis/argo-streaming/subscription","commits_url":"https://api.github.com/repos/kaggis/argo-streaming/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaggis/argo-streaming/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaggis/argo-streaming/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaggis/argo-streaming/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaggis/argo-streaming/contents/{+path}","compare_url":"https://api.github.com/repos/kaggis/argo-streaming/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaggis/argo-streaming/merges","archive_url":"https://api.github.com/repos/kaggis/argo-streaming/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaggis/argo-streaming/downloads","issues_url":"https://api.github.com/repos/kaggis/argo-streaming/issues{/number}","pulls_url":"https://api.github.com/repos/kaggis/argo-streaming/pulls{/number}","milestones_url":"https://api.github.com/repos/kaggis/argo-streaming/milestones{/number}","notifications_url":"https://api.github.com/repos/kaggis/argo-streaming/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaggis/argo-streaming/labels{/name}","releases_url":"https://api.github.com/repos/kaggis/argo-streaming/releases{/id}","deployments_url":"https://api.github.com/repos/kaggis/argo-streaming/deployments","created_at":"2016-12-15T10:46:33Z","updated_at":"2016-12-15T08:38:07Z","pushed_at":"2018-06-21T13:44:24Z","git_url":"git://github.com/kaggis/argo-streaming.git","ssh_url":"git@github.com:kaggis/argo-streaming.git","clone_url":"https://github.com/kaggis/argo-streaming.git","svn_url":"https://github.com/kaggis/argo-streaming","homepage":null,"size":419,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ARGOeu:devel","ref":"devel","sha":"b6e671172da204ab2dc7f4eceb7dc960b52c25b1","user":{"login":"ARGOeu","id":6882712,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4ODI3MTI=","avatar_url":"https://avatars2.githubusercontent.com/u/6882712?v=4","gravatar_id":"","url":"https://api.github.com/users/ARGOeu","html_url":"https://github.com/ARGOeu","followers_url":"https://api.github.com/users/ARGOeu/followers","following_url":"https://api.github.com/users/ARGOeu/following{/other_user}","gists_url":"https://api.github.com/users/ARGOeu/gists{/gist_id}","starred_url":"https://api.github.com/users/ARGOeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ARGOeu/subscriptions","organizations_url":"https://api.github.com/users/ARGOeu/orgs","repos_url":"https://api.github.com/users/ARGOeu/repos","events_url":"https://api.github.com/users/ARGOeu/events{/privacy}","received_events_url":"https://api.github.com/users/ARGOeu/received_events","type":"Organization","site_admin":false},"repo":{"id":76540501,"node_id":"MDEwOlJlcG9zaXRvcnk3NjU0MDUwMQ==","name":"argo-streaming","full_name":"ARGOeu/argo-streaming","owner":{"login":"ARGOeu","id":6882712,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4ODI3MTI=","avatar_url":"https://avatars2.githubusercontent.com/u/6882712?v=4","gravatar_id":"","url":"https://api.github.com/users/ARGOeu","html_url":"https://github.com/ARGOeu","followers_url":"https://api.github.com/users/ARGOeu/followers","following_url":"https://api.github.com/users/ARGOeu/following{/other_user}","gists_url":"https://api.github.com/users/ARGOeu/gists{/gist_id}","starred_url":"https://api.github.com/users/ARGOeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ARGOeu/subscriptions","organizations_url":"https://api.github.com/users/ARGOeu/orgs","repos_url":"https://api.github.com/users/ARGOeu/repos","events_url":"https://api.github.com/users/ARGOeu/events{/privacy}","received_events_url":"https://api.github.com/users/ARGOeu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ARGOeu/argo-streaming","description":null,"fork":false,"url":"https://api.github.com/repos/ARGOeu/argo-streaming","forks_url":"https://api.github.com/repos/ARGOeu/argo-streaming/forks","keys_url":"https://api.github.com/repos/ARGOeu/argo-streaming/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ARGOeu/argo-streaming/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ARGOeu/argo-streaming/teams","hooks_url":"https://api.github.com/repos/ARGOeu/argo-streaming/hooks","issue_events_url":"https://api.github.com/repos/ARGOeu/argo-streaming/issues/events{/number}","events_url":"https://api.github.com/repos/ARGOeu/argo-streaming/events","assignees_url":"https://api.github.com/repos/ARGOeu/argo-streaming/assignees{/user}","branches_url":"https://api.github.com/repos/ARGOeu/argo-streaming/branches{/branch}","tags_url":"https://api.github.com/repos/ARGOeu/argo-streaming/tags","blobs_url":"https://api.github.com/repos/ARGOeu/argo-streaming/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ARGOeu/argo-streaming/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ARGOeu/argo-streaming/git/refs{/sha}","trees_url":"https://api.github.com/repos/ARGOeu/argo-streaming/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ARGOeu/argo-streaming/statuses/{sha}","languages_url":"https://api.github.com/repos/ARGOeu/argo-streaming/languages","stargazers_url":"https://api.github.com/repos/ARGOeu/argo-streaming/stargazers","contributors_url":"https://api.github.com/repos/ARGOeu/argo-streaming/contributors","subscribers_url":"https://api.github.com/repos/ARGOeu/argo-streaming/subscribers","subscription_url":"https://api.github.com/repos/ARGOeu/argo-streaming/subscription","commits_url":"https://api.github.com/repos/ARGOeu/argo-streaming/commits{/sha}","git_commits_url":"https://api.github.com/repos/ARGOeu/argo-streaming/git/commits{/sha}","comments_url":"https://api.github.com/repos/ARGOeu/argo-streaming/comments{/number}","issue_comment_url":"https://api.github.com/repos/ARGOeu/argo-streaming/issues/comments{/number}","contents_url":"https://api.github.com/repos/ARGOeu/argo-streaming/contents/{+path}","compare_url":"https://api.github.com/repos/ARGOeu/argo-streaming/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ARGOeu/argo-streaming/merges","archive_url":"https://api.github.com/repos/ARGOeu/argo-streaming/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ARGOeu/argo-streaming/downloads","issues_url":"https://api.github.com/repos/ARGOeu/argo-streaming/issues{/number}","pulls_url":"https://api.github.com/repos/ARGOeu/argo-streaming/pulls{/number}","milestones_url":"https://api.github.com/repos/ARGOeu/argo-streaming/milestones{/number}","notifications_url":"https://api.github.com/repos/ARGOeu/argo-streaming/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ARGOeu/argo-streaming/labels{/name}","releases_url":"https://api.github.com/repos/ARGOeu/argo-streaming/releases{/id}","deployments_url":"https://api.github.com/repos/ARGOeu/argo-streaming/deployments","created_at":"2016-12-15T08:38:07Z","updated_at":"2018-06-13T10:03:09Z","pushed_at":"2018-06-20T10:27:16Z","git_url":"git://github.com/ARGOeu/argo-streaming.git","ssh_url":"git@github.com:ARGOeu/argo-streaming.git","clone_url":"https://github.com/ARGOeu/argo-streaming.git","svn_url":"https://github.com/ARGOeu/argo-streaming","homepage":null,"size":417,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ARGOeu/argo-streaming/pulls/74"},"html":{"href":"https://github.com/ARGOeu/argo-streaming/pull/74"},"issue":{"href":"https://api.github.com/repos/ARGOeu/argo-streaming/issues/74"},"comments":{"href":"https://api.github.com/repos/ARGOeu/argo-streaming/issues/74/comments"},"review_comments":{"href":"https://api.github.com/repos/ARGOeu/argo-streaming/pulls/74/comments"},"review_comment":{"href":"https://api.github.com/repos/ARGOeu/argo-streaming/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ARGOeu/argo-streaming/pulls/74/commits"},"statuses":{"href":"https://api.github.com/repos/ARGOeu/argo-streaming/statuses/860e21eac80efb1e6416581cb4d3660503e41d4f"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":1516,"deletions":99,"changed_files":13}}
{"actor":{"display_login":"kaggis"}}