{"action":"created","comment":{"url":"https://api.github.com/repos/capitalone/Hygieia/pulls/comments/47275962","id":47275962,"diff_hunk":"@@ -0,0 +1,56 @@\n+package com.capitalone.dashboard.model;\n+\n+import org.joda.time.DateTime;\n+\n+/**\n+ * CollectorItem extension to store the chatops serverUrl, roomName and authToken.\n+ */\n+public class ChatOpsRepo extends CollectorItem {\n+    private static final String CHATOPS_SERVER_URL = \"chatOpsServerUrl\";\n+    private static final String CHATOPS_ROOM_NAME = \"roomName\";\n+    private static final String CHATOPS_AUTH_TOKEN = \"chatOpsAuthToken\";\n+    private static final String LAST_UPDATE_TIME = \"lastUpdate\";\n+\n+    \n+    \n+    public static String getChatopsAuthToken() {\n+\t\treturn CHATOPS_AUTH_TOKEN;\n+\t}\n+\n+\tpublic static String getChatopsServerUrl() {\n+\t\treturn CHATOPS_SERVER_URL;\n+\t}\n+\n+\tpublic static String getChatopsRoomName() {\n+\t\treturn CHATOPS_ROOM_NAME;\n+\t}\n+\n+\tpublic DateTime getLastUpdateTime() {\n+        Object latest = getOptions().get(LAST_UPDATE_TIME);\n+        return (DateTime) latest;\n+    }\n+\n+    public void setLastUpdateTime(DateTime date) {\n+        getOptions().put(LAST_UPDATE_TIME, date);\n+    }\n+\n+    @Override\n+    public boolean equals(Object o) {\n+        if (this == o) {\n+        \treturn true;\n+        }\n+        if (o == null || getClass() != o.getClass()) {\n+        \treturn false;\n+        }\n+\n+        ChatOpsRepo chatOpsRepo = (ChatOpsRepo) o;\n+\n+        return getChatopsServerUrl().equals(chatOpsRepo.getChatopsServerUrl()) & getChatopsServerUrl().equals(chatOpsRepo.getChatopsServerUrl()) & getChatopsAuthToken().equals(chatOpsRepo.getChatopsAuthToken());\n+    }\n+\n+    @Override\n+    public int hashCode() {\n+        return getChatopsServerUrl().hashCode();","path":"Chat-Ops-Collector/src/main/java/com/capitalone/dashboard/model/ChatOpsRepo.java","position":53,"original_position":53,"commit_id":"0721fd7139760d1cadd095a67ed1a24275a4ece7","original_commit_id":"0721fd7139760d1cadd095a67ed1a24275a4ece7","user":{"login":"jdamick","id":12317,"avatar_url":"https://avatars.githubusercontent.com/u/12317?v=3","gravatar_id":"","url":"https://api.github.com/users/jdamick","html_url":"https://github.com/jdamick","followers_url":"https://api.github.com/users/jdamick/followers","following_url":"https://api.github.com/users/jdamick/following{/other_user}","gists_url":"https://api.github.com/users/jdamick/gists{/gist_id}","starred_url":"https://api.github.com/users/jdamick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdamick/subscriptions","organizations_url":"https://api.github.com/users/jdamick/orgs","repos_url":"https://api.github.com/users/jdamick/repos","events_url":"https://api.github.com/users/jdamick/events{/privacy}","received_events_url":"https://api.github.com/users/jdamick/received_events","type":"User","site_admin":false},"body":"Objects.hashCode(getChatopsServerUrl(), getChatopsAuthToken(), getChatopsRoomName());","created_at":"2015-12-10T19:54:41Z","updated_at":"2015-12-10T19:54:41Z","html_url":"https://github.com/capitalone/Hygieia/pull/203#discussion_r47275962","pull_request_url":"https://api.github.com/repos/capitalone/Hygieia/pulls/203","_links":{"self":{"href":"https://api.github.com/repos/capitalone/Hygieia/pulls/comments/47275962"},"html":{"href":"https://github.com/capitalone/Hygieia/pull/203#discussion_r47275962"},"pull_request":{"href":"https://api.github.com/repos/capitalone/Hygieia/pulls/203"}}},"pull_request":{"url":"https://api.github.com/repos/capitalone/Hygieia/pulls/203","id":53289644,"html_url":"https://github.com/capitalone/Hygieia/pull/203","diff_url":"https://github.com/capitalone/Hygieia/pull/203.diff","patch_url":"https://github.com/capitalone/Hygieia/pull/203.patch","issue_url":"https://api.github.com/repos/capitalone/Hygieia/issues/203","number":203,"state":"open","locked":false,"title":"ChatOps Collector PR","user":{"login":"amitmawkin","id":6624821,"avatar_url":"https://avatars.githubusercontent.com/u/6624821?v=3","gravatar_id":"","url":"https://api.github.com/users/amitmawkin","html_url":"https://github.com/amitmawkin","followers_url":"https://api.github.com/users/amitmawkin/followers","following_url":"https://api.github.com/users/amitmawkin/following{/other_user}","gists_url":"https://api.github.com/users/amitmawkin/gists{/gist_id}","starred_url":"https://api.github.com/users/amitmawkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitmawkin/subscriptions","organizations_url":"https://api.github.com/users/amitmawkin/orgs","repos_url":"https://api.github.com/users/amitmawkin/repos","events_url":"https://api.github.com/users/amitmawkin/events{/privacy}","received_events_url":"https://api.github.com/users/amitmawkin/received_events","type":"User","site_admin":false},"body":"Supports Enterprise Hipchat implementation","created_at":"2015-12-10T17:24:53Z","updated_at":"2015-12-10T19:54:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"16f0d9fc6850ff15c43bbb95be8077a346569e51","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/capitalone/Hygieia/pulls/203/commits","review_comments_url":"https://api.github.com/repos/capitalone/Hygieia/pulls/203/comments","review_comment_url":"https://api.github.com/repos/capitalone/Hygieia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/capitalone/Hygieia/issues/203/comments","statuses_url":"https://api.github.com/repos/capitalone/Hygieia/statuses/0721fd7139760d1cadd095a67ed1a24275a4ece7","head":{"label":"amitmawkin:master","ref":"master","sha":"0721fd7139760d1cadd095a67ed1a24275a4ece7","user":{"login":"amitmawkin","id":6624821,"avatar_url":"https://avatars.githubusercontent.com/u/6624821?v=3","gravatar_id":"","url":"https://api.github.com/users/amitmawkin","html_url":"https://github.com/amitmawkin","followers_url":"https://api.github.com/users/amitmawkin/followers","following_url":"https://api.github.com/users/amitmawkin/following{/other_user}","gists_url":"https://api.github.com/users/amitmawkin/gists{/gist_id}","starred_url":"https://api.github.com/users/amitmawkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitmawkin/subscriptions","organizations_url":"https://api.github.com/users/amitmawkin/orgs","repos_url":"https://api.github.com/users/amitmawkin/repos","events_url":"https://api.github.com/users/amitmawkin/events{/privacy}","received_events_url":"https://api.github.com/users/amitmawkin/received_events","type":"User","site_admin":false},"repo":{"id":47469365,"name":"Hygieia","full_name":"amitmawkin/Hygieia","owner":{"login":"amitmawkin","id":6624821,"avatar_url":"https://avatars.githubusercontent.com/u/6624821?v=3","gravatar_id":"","url":"https://api.github.com/users/amitmawkin","html_url":"https://github.com/amitmawkin","followers_url":"https://api.github.com/users/amitmawkin/followers","following_url":"https://api.github.com/users/amitmawkin/following{/other_user}","gists_url":"https://api.github.com/users/amitmawkin/gists{/gist_id}","starred_url":"https://api.github.com/users/amitmawkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitmawkin/subscriptions","organizations_url":"https://api.github.com/users/amitmawkin/orgs","repos_url":"https://api.github.com/users/amitmawkin/repos","events_url":"https://api.github.com/users/amitmawkin/events{/privacy}","received_events_url":"https://api.github.com/users/amitmawkin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amitmawkin/Hygieia","description":"CapitalOne  DevOps Dashboard","fork":true,"url":"https://api.github.com/repos/amitmawkin/Hygieia","forks_url":"https://api.github.com/repos/amitmawkin/Hygieia/forks","keys_url":"https://api.github.com/repos/amitmawkin/Hygieia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amitmawkin/Hygieia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amitmawkin/Hygieia/teams","hooks_url":"https://api.github.com/repos/amitmawkin/Hygieia/hooks","issue_events_url":"https://api.github.com/repos/amitmawkin/Hygieia/issues/events{/number}","events_url":"https://api.github.com/repos/amitmawkin/Hygieia/events","assignees_url":"https://api.github.com/repos/amitmawkin/Hygieia/assignees{/user}","branches_url":"https://api.github.com/repos/amitmawkin/Hygieia/branches{/branch}","tags_url":"https://api.github.com/repos/amitmawkin/Hygieia/tags","blobs_url":"https://api.github.com/repos/amitmawkin/Hygieia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amitmawkin/Hygieia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amitmawkin/Hygieia/git/refs{/sha}","trees_url":"https://api.github.com/repos/amitmawkin/Hygieia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amitmawkin/Hygieia/statuses/{sha}","languages_url":"https://api.github.com/repos/amitmawkin/Hygieia/languages","stargazers_url":"https://api.github.com/repos/amitmawkin/Hygieia/stargazers","contributors_url":"https://api.github.com/repos/amitmawkin/Hygieia/contributors","subscribers_url":"https://api.github.com/repos/amitmawkin/Hygieia/subscribers","subscription_url":"https://api.github.com/repos/amitmawkin/Hygieia/subscription","commits_url":"https://api.github.com/repos/amitmawkin/Hygieia/commits{/sha}","git_commits_url":"https://api.github.com/repos/amitmawkin/Hygieia/git/commits{/sha}","comments_url":"https://api.github.com/repos/amitmawkin/Hygieia/comments{/number}","issue_comment_url":"https://api.github.com/repos/amitmawkin/Hygieia/issues/comments{/number}","contents_url":"https://api.github.com/repos/amitmawkin/Hygieia/contents/{+path}","compare_url":"https://api.github.com/repos/amitmawkin/Hygieia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amitmawkin/Hygieia/merges","archive_url":"https://api.github.com/repos/amitmawkin/Hygieia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amitmawkin/Hygieia/downloads","issues_url":"https://api.github.com/repos/amitmawkin/Hygieia/issues{/number}","pulls_url":"https://api.github.com/repos/amitmawkin/Hygieia/pulls{/number}","milestones_url":"https://api.github.com/repos/amitmawkin/Hygieia/milestones{/number}","notifications_url":"https://api.github.com/repos/amitmawkin/Hygieia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amitmawkin/Hygieia/labels{/name}","releases_url":"https://api.github.com/repos/amitmawkin/Hygieia/releases{/id}","created_at":"2015-12-05T19:23:58Z","updated_at":"2015-12-05T19:23:59Z","pushed_at":"2015-12-10T17:24:27Z","git_url":"git://github.com/amitmawkin/Hygieia.git","ssh_url":"git@github.com:amitmawkin/Hygieia.git","clone_url":"https://github.com/amitmawkin/Hygieia.git","svn_url":"https://github.com/amitmawkin/Hygieia","homepage":"http://www.capitalone.io","size":6172,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"capitalone:master","ref":"master","sha":"c8a6d331c557636378e7ef79a23a1d6cc9c8afaa","user":{"login":"capitalone","id":8644615,"avatar_url":"https://avatars.githubusercontent.com/u/8644615?v=3","gravatar_id":"","url":"https://api.github.com/users/capitalone","html_url":"https://github.com/capitalone","followers_url":"https://api.github.com/users/capitalone/followers","following_url":"https://api.github.com/users/capitalone/following{/other_user}","gists_url":"https://api.github.com/users/capitalone/gists{/gist_id}","starred_url":"https://api.github.com/users/capitalone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capitalone/subscriptions","organizations_url":"https://api.github.com/users/capitalone/orgs","repos_url":"https://api.github.com/users/capitalone/repos","events_url":"https://api.github.com/users/capitalone/events{/privacy}","received_events_url":"https://api.github.com/users/capitalone/received_events","type":"Organization","site_admin":false},"repo":{"id":39237460,"name":"Hygieia","full_name":"capitalone/Hygieia","owner":{"login":"capitalone","id":8644615,"avatar_url":"https://avatars.githubusercontent.com/u/8644615?v=3","gravatar_id":"","url":"https://api.github.com/users/capitalone","html_url":"https://github.com/capitalone","followers_url":"https://api.github.com/users/capitalone/followers","following_url":"https://api.github.com/users/capitalone/following{/other_user}","gists_url":"https://api.github.com/users/capitalone/gists{/gist_id}","starred_url":"https://api.github.com/users/capitalone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capitalone/subscriptions","organizations_url":"https://api.github.com/users/capitalone/orgs","repos_url":"https://api.github.com/users/capitalone/repos","events_url":"https://api.github.com/users/capitalone/events{/privacy}","received_events_url":"https://api.github.com/users/capitalone/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/capitalone/Hygieia","description":"CapitalOne  DevOps Dashboard","fork":false,"url":"https://api.github.com/repos/capitalone/Hygieia","forks_url":"https://api.github.com/repos/capitalone/Hygieia/forks","keys_url":"https://api.github.com/repos/capitalone/Hygieia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/capitalone/Hygieia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/capitalone/Hygieia/teams","hooks_url":"https://api.github.com/repos/capitalone/Hygieia/hooks","issue_events_url":"https://api.github.com/repos/capitalone/Hygieia/issues/events{/number}","events_url":"https://api.github.com/repos/capitalone/Hygieia/events","assignees_url":"https://api.github.com/repos/capitalone/Hygieia/assignees{/user}","branches_url":"https://api.github.com/repos/capitalone/Hygieia/branches{/branch}","tags_url":"https://api.github.com/repos/capitalone/Hygieia/tags","blobs_url":"https://api.github.com/repos/capitalone/Hygieia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/capitalone/Hygieia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/capitalone/Hygieia/git/refs{/sha}","trees_url":"https://api.github.com/repos/capitalone/Hygieia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/capitalone/Hygieia/statuses/{sha}","languages_url":"https://api.github.com/repos/capitalone/Hygieia/languages","stargazers_url":"https://api.github.com/repos/capitalone/Hygieia/stargazers","contributors_url":"https://api.github.com/repos/capitalone/Hygieia/contributors","subscribers_url":"https://api.github.com/repos/capitalone/Hygieia/subscribers","subscription_url":"https://api.github.com/repos/capitalone/Hygieia/subscription","commits_url":"https://api.github.com/repos/capitalone/Hygieia/commits{/sha}","git_commits_url":"https://api.github.com/repos/capitalone/Hygieia/git/commits{/sha}","comments_url":"https://api.github.com/repos/capitalone/Hygieia/comments{/number}","issue_comment_url":"https://api.github.com/repos/capitalone/Hygieia/issues/comments{/number}","contents_url":"https://api.github.com/repos/capitalone/Hygieia/contents/{+path}","compare_url":"https://api.github.com/repos/capitalone/Hygieia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/capitalone/Hygieia/merges","archive_url":"https://api.github.com/repos/capitalone/Hygieia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/capitalone/Hygieia/downloads","issues_url":"https://api.github.com/repos/capitalone/Hygieia/issues{/number}","pulls_url":"https://api.github.com/repos/capitalone/Hygieia/pulls{/number}","milestones_url":"https://api.github.com/repos/capitalone/Hygieia/milestones{/number}","notifications_url":"https://api.github.com/repos/capitalone/Hygieia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/capitalone/Hygieia/labels{/name}","releases_url":"https://api.github.com/repos/capitalone/Hygieia/releases{/id}","created_at":"2015-07-17T05:55:06Z","updated_at":"2015-12-10T14:45:22Z","pushed_at":"2015-12-10T19:24:20Z","git_url":"git://github.com/capitalone/Hygieia.git","ssh_url":"git@github.com:capitalone/Hygieia.git","clone_url":"https://github.com/capitalone/Hygieia.git","svn_url":"https://github.com/capitalone/Hygieia","homepage":"http://www.capitalone.io","size":6545,"stargazers_count":439,"watchers_count":439,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":146,"mirror_url":null,"open_issues_count":43,"forks":146,"open_issues":43,"watchers":439,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/capitalone/Hygieia/pulls/203"},"html":{"href":"https://github.com/capitalone/Hygieia/pull/203"},"issue":{"href":"https://api.github.com/repos/capitalone/Hygieia/issues/203"},"comments":{"href":"https://api.github.com/repos/capitalone/Hygieia/issues/203/comments"},"review_comments":{"href":"https://api.github.com/repos/capitalone/Hygieia/pulls/203/comments"},"review_comment":{"href":"https://api.github.com/repos/capitalone/Hygieia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/capitalone/Hygieia/pulls/203/commits"},"statuses":{"href":"https://api.github.com/repos/capitalone/Hygieia/statuses/0721fd7139760d1cadd095a67ed1a24275a4ece7"}}}}