{"action":"created","comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments/59566094","id":59566094,"diff_hunk":"@@ -0,0 +1,41 @@\n+class ManageIQ::Providers::Hawkular::MiddlewareManager::EventCatcher::Monitor\n+  def initialize(ems)\n+    @ems               = ems\n+    @alerts_client     = ems.alerts_connect\n+    @collecting_events = false\n+  end\n+\n+  # Start capturing events\n+  def start\n+    @collecting_events = true\n+  end\n+\n+  # Stop capturing events","path":"app/models/manageiq/providers/hawkular/middleware_manager/event_catcher/monitor.rb","position":13,"original_position":13,"commit_id":"76423eee545aa0f4f077710981afdd8c20aa4b8a","original_commit_id":"76423eee545aa0f4f077710981afdd8c20aa4b8a","user":{"login":"durandom","id":161888,"avatar_url":"https://avatars.githubusercontent.com/u/161888?v=3","gravatar_id":"","url":"https://api.github.com/users/durandom","html_url":"https://github.com/durandom","followers_url":"https://api.github.com/users/durandom/followers","following_url":"https://api.github.com/users/durandom/following{/other_user}","gists_url":"https://api.github.com/users/durandom/gists{/gist_id}","starred_url":"https://api.github.com/users/durandom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/durandom/subscriptions","organizations_url":"https://api.github.com/users/durandom/orgs","repos_url":"https://api.github.com/users/durandom/repos","events_url":"https://api.github.com/users/durandom/events{/privacy}","received_events_url":"https://api.github.com/users/durandom/received_events","type":"User","site_admin":false},"body":"I think this comment and the one ^^ are redudant","created_at":"2016-04-13T15:10:33Z","updated_at":"2016-04-13T15:10:33Z","html_url":"https://github.com/ManageIQ/manageiq/pull/7395#discussion_r59566094","pull_request_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/7395","_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments/59566094"},"html":{"href":"https://github.com/ManageIQ/manageiq/pull/7395#discussion_r59566094"},"pull_request":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/7395"}}},"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/7395","id":63391312,"html_url":"https://github.com/ManageIQ/manageiq/pull/7395","diff_url":"https://github.com/ManageIQ/manageiq/pull/7395.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/7395.patch","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/7395","number":7395,"state":"open","locked":false,"title":"MW Hawkular provider initial event catcher","user":{"login":"jshaughn","id":2104052,"avatar_url":"https://avatars.githubusercontent.com/u/2104052?v=3","gravatar_id":"","url":"https://api.github.com/users/jshaughn","html_url":"https://github.com/jshaughn","followers_url":"https://api.github.com/users/jshaughn/followers","following_url":"https://api.github.com/users/jshaughn/following{/other_user}","gists_url":"https://api.github.com/users/jshaughn/gists{/gist_id}","starred_url":"https://api.github.com/users/jshaughn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jshaughn/subscriptions","organizations_url":"https://api.github.com/users/jshaughn/orgs","repos_url":"https://api.github.com/users/jshaughn/repos","events_url":"https://api.github.com/users/jshaughn/events{/privacy}","received_events_url":"https://api.github.com/users/jshaughn/received_events","type":"User","site_admin":false},"body":"- Add event catcher/parser : 15s polling via REST as initial impl\r\n- Add Deployment event definitions\r\n- Add \"Application\" event group\r\n  - add the deployment events (critical:failure, detail:success)\r\n- set event[:ems_ref] as the hawkular inventory resource path. Not\r\n  sure about this, but may be useful for linking events to the relevant\r\n  resource.  Currently, no link like that exists and it seems like\r\n  events are designed to be provider-level.\r\n\r\n*** Changes to MIQ base code ***\r\n- Alter the timeline logic slightly because it assumed only\r\n  cloud or container providers. Now default to ems.name for\r\n  event title for all events.\r\n  - note: this eliminates the 'MS no longer exists' title, which\r\n          seemed unlikely to get used anyway.\r\n  - note: it would be nice if a provider could configure it's\r\n       default event group filter. 'Power Activity' does not\r\n       apply well to MW.  We'd like 'Application' or something\r\n       more relevant. Perhaps we could tweak the base code for\r\n       the MW case.\r\n- Added $mw_log for middleware logfile\r\n- A couple of minor format changes to make rubocop happier with\r\n  some touched files.","created_at":"2016-03-18T15:28:03Z","updated_at":"2016-04-13T15:10:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ae58904d01832763b5e8747a9ff185c26cb1e426","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/7395/commits","review_comments_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/7395/comments","review_comment_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/7395/comments","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq/statuses/76423eee545aa0f4f077710981afdd8c20aa4b8a","head":{"label":"jshaughn:hawkular-event-catcher","ref":"hawkular-event-catcher","sha":"76423eee545aa0f4f077710981afdd8c20aa4b8a","user":{"login":"jshaughn","id":2104052,"avatar_url":"https://avatars.githubusercontent.com/u/2104052?v=3","gravatar_id":"","url":"https://api.github.com/users/jshaughn","html_url":"https://github.com/jshaughn","followers_url":"https://api.github.com/users/jshaughn/followers","following_url":"https://api.github.com/users/jshaughn/following{/other_user}","gists_url":"https://api.github.com/users/jshaughn/gists{/gist_id}","starred_url":"https://api.github.com/users/jshaughn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jshaughn/subscriptions","organizations_url":"https://api.github.com/users/jshaughn/orgs","repos_url":"https://api.github.com/users/jshaughn/repos","events_url":"https://api.github.com/users/jshaughn/events{/privacy}","received_events_url":"https://api.github.com/users/jshaughn/received_events","type":"User","site_admin":false},"repo":{"id":52798471,"name":"manageiq","full_name":"jshaughn/manageiq","owner":{"login":"jshaughn","id":2104052,"avatar_url":"https://avatars.githubusercontent.com/u/2104052?v=3","gravatar_id":"","url":"https://api.github.com/users/jshaughn","html_url":"https://github.com/jshaughn","followers_url":"https://api.github.com/users/jshaughn/followers","following_url":"https://api.github.com/users/jshaughn/following{/other_user}","gists_url":"https://api.github.com/users/jshaughn/gists{/gist_id}","starred_url":"https://api.github.com/users/jshaughn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jshaughn/subscriptions","organizations_url":"https://api.github.com/users/jshaughn/orgs","repos_url":"https://api.github.com/users/jshaughn/repos","events_url":"https://api.github.com/users/jshaughn/events{/privacy}","received_events_url":"https://api.github.com/users/jshaughn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jshaughn/manageiq","description":"ManageIQ Cloud Management Platform","fork":true,"url":"https://api.github.com/repos/jshaughn/manageiq","forks_url":"https://api.github.com/repos/jshaughn/manageiq/forks","keys_url":"https://api.github.com/repos/jshaughn/manageiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jshaughn/manageiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jshaughn/manageiq/teams","hooks_url":"https://api.github.com/repos/jshaughn/manageiq/hooks","issue_events_url":"https://api.github.com/repos/jshaughn/manageiq/issues/events{/number}","events_url":"https://api.github.com/repos/jshaughn/manageiq/events","assignees_url":"https://api.github.com/repos/jshaughn/manageiq/assignees{/user}","branches_url":"https://api.github.com/repos/jshaughn/manageiq/branches{/branch}","tags_url":"https://api.github.com/repos/jshaughn/manageiq/tags","blobs_url":"https://api.github.com/repos/jshaughn/manageiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jshaughn/manageiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jshaughn/manageiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/jshaughn/manageiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jshaughn/manageiq/statuses/{sha}","languages_url":"https://api.github.com/repos/jshaughn/manageiq/languages","stargazers_url":"https://api.github.com/repos/jshaughn/manageiq/stargazers","contributors_url":"https://api.github.com/repos/jshaughn/manageiq/contributors","subscribers_url":"https://api.github.com/repos/jshaughn/manageiq/subscribers","subscription_url":"https://api.github.com/repos/jshaughn/manageiq/subscription","commits_url":"https://api.github.com/repos/jshaughn/manageiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/jshaughn/manageiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/jshaughn/manageiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/jshaughn/manageiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/jshaughn/manageiq/contents/{+path}","compare_url":"https://api.github.com/repos/jshaughn/manageiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jshaughn/manageiq/merges","archive_url":"https://api.github.com/repos/jshaughn/manageiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jshaughn/manageiq/downloads","issues_url":"https://api.github.com/repos/jshaughn/manageiq/issues{/number}","pulls_url":"https://api.github.com/repos/jshaughn/manageiq/pulls{/number}","milestones_url":"https://api.github.com/repos/jshaughn/manageiq/milestones{/number}","notifications_url":"https://api.github.com/repos/jshaughn/manageiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jshaughn/manageiq/labels{/name}","releases_url":"https://api.github.com/repos/jshaughn/manageiq/releases{/id}","deployments_url":"https://api.github.com/repos/jshaughn/manageiq/deployments","created_at":"2016-02-29T14:42:22Z","updated_at":"2016-02-29T14:42:40Z","pushed_at":"2016-04-13T12:50:52Z","git_url":"git://github.com/jshaughn/manageiq.git","ssh_url":"git@github.com:jshaughn/manageiq.git","clone_url":"https://github.com/jshaughn/manageiq.git","svn_url":"https://github.com/jshaughn/manageiq","homepage":"manageiq.org","size":118002,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"ManageIQ:master","ref":"master","sha":"0d63f799c4268abff0cf19f7591658a35faaf429","user":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"repo":{"id":20789757,"name":"manageiq","full_name":"ManageIQ/manageiq","owner":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ManageIQ/manageiq","description":"ManageIQ Cloud Management Platform","fork":false,"url":"https://api.github.com/repos/ManageIQ/manageiq","forks_url":"https://api.github.com/repos/ManageIQ/manageiq/forks","keys_url":"https://api.github.com/repos/ManageIQ/manageiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ManageIQ/manageiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ManageIQ/manageiq/teams","hooks_url":"https://api.github.com/repos/ManageIQ/manageiq/hooks","issue_events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/events{/number}","events_url":"https://api.github.com/repos/ManageIQ/manageiq/events","assignees_url":"https://api.github.com/repos/ManageIQ/manageiq/assignees{/user}","branches_url":"https://api.github.com/repos/ManageIQ/manageiq/branches{/branch}","tags_url":"https://api.github.com/repos/ManageIQ/manageiq/tags","blobs_url":"https://api.github.com/repos/ManageIQ/manageiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ManageIQ/manageiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ManageIQ/manageiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/ManageIQ/manageiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq/statuses/{sha}","languages_url":"https://api.github.com/repos/ManageIQ/manageiq/languages","stargazers_url":"https://api.github.com/repos/ManageIQ/manageiq/stargazers","contributors_url":"https://api.github.com/repos/ManageIQ/manageiq/contributors","subscribers_url":"https://api.github.com/repos/ManageIQ/manageiq/subscribers","subscription_url":"https://api.github.com/repos/ManageIQ/manageiq/subscription","commits_url":"https://api.github.com/repos/ManageIQ/manageiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/ManageIQ/manageiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/ManageIQ/manageiq/contents/{+path}","compare_url":"https://api.github.com/repos/ManageIQ/manageiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ManageIQ/manageiq/merges","archive_url":"https://api.github.com/repos/ManageIQ/manageiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ManageIQ/manageiq/downloads","issues_url":"https://api.github.com/repos/ManageIQ/manageiq/issues{/number}","pulls_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls{/number}","milestones_url":"https://api.github.com/repos/ManageIQ/manageiq/milestones{/number}","notifications_url":"https://api.github.com/repos/ManageIQ/manageiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/labels{/name}","releases_url":"https://api.github.com/repos/ManageIQ/manageiq/releases{/id}","deployments_url":"https://api.github.com/repos/ManageIQ/manageiq/deployments","created_at":"2014-06-13T02:31:26Z","updated_at":"2016-04-13T14:44:53Z","pushed_at":"2016-04-13T15:10:10Z","git_url":"git://github.com/ManageIQ/manageiq.git","ssh_url":"git@github.com:ManageIQ/manageiq.git","clone_url":"https://github.com/ManageIQ/manageiq.git","svn_url":"https://github.com/ManageIQ/manageiq","homepage":"manageiq.org","size":155370,"stargazers_count":253,"watchers_count":253,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":268,"mirror_url":null,"open_issues_count":650,"forks":268,"open_issues":650,"watchers":253,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/7395"},"html":{"href":"https://github.com/ManageIQ/manageiq/pull/7395"},"issue":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/7395"},"comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/7395/comments"},"review_comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/7395/comments"},"review_comment":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/7395/commits"},"statuses":{"href":"https://api.github.com/repos/ManageIQ/manageiq/statuses/76423eee545aa0f4f077710981afdd8c20aa4b8a"}}}}