{"action":"created","comment":{"url":"https://api.github.com/repos/OpenNMS/opennms/pulls/comments/77084931","id":77084931,"diff_hunk":"@@ -0,0 +1,183 @@\n+/*******************************************************************************\n+ * This file is part of OpenNMS(R).\n+ *\n+ * Copyright (C) 2016 The OpenNMS Group, Inc.\n+ * OpenNMS(R) is Copyright (C) 1999-2016 The OpenNMS Group, Inc.\n+ *\n+ * OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc.\n+ *\n+ * OpenNMS(R) is free software: you can redistribute it and/or modify\n+ * it under the terms of the GNU General Public License as published\n+ * by the Free Software Foundation, either version 3 of the License,\n+ * or (at your option) any later version.\n+ *\n+ * OpenNMS(R) is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ * GNU General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU General Public License\n+ * along with OpenNMS(R).  If not, see:\n+ *      http://www.gnu.org/licenses/\n+ *\n+ * For more information contact:\n+ *     OpenNMS(R) Licensing <license@opennms.org>\n+ *     http://www.opennms.org/\n+ *     http://www.opennms.com/\n+ *******************************************************************************/\n+\n+package org.opennms.features.eifadapter;\n+\n+import com.google.common.net.InetAddresses;\n+\n+import java.net.InetAddress;\n+import java.net.UnknownHostException;\n+import java.util.*;\n+\n+import org.opennms.netmgt.dao.api.NodeDao;\n+import org.opennms.netmgt.model.OnmsNode;\n+import org.opennms.netmgt.model.events.EventBuilder;\n+import org.opennms.netmgt.xml.event.Event;\n+import org.opennms.netmgt.xml.event.Parm;\n+\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+\n+public class EifParser {\n+\n+    public static final Logger LOG = LoggerFactory.getLogger(EifParser.class);","path":"features/eif-adapter/src/main/java/org/opennms/features/eifadapter/EifParser.java","position":48,"original_position":48,"commit_id":"fb3a0063e69d10c923bad2becc3ea789ef8b79c3","original_commit_id":"fb3a0063e69d10c923bad2becc3ea789ef8b79c3","user":{"login":"j-white","id":1379749,"avatar_url":"https://avatars.githubusercontent.com/u/1379749?v=3","gravatar_id":"","url":"https://api.github.com/users/j-white","html_url":"https://github.com/j-white","followers_url":"https://api.github.com/users/j-white/followers","following_url":"https://api.github.com/users/j-white/following{/other_user}","gists_url":"https://api.github.com/users/j-white/gists{/gist_id}","starred_url":"https://api.github.com/users/j-white/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j-white/subscriptions","organizations_url":"https://api.github.com/users/j-white/orgs","repos_url":"https://api.github.com/users/j-white/repos","events_url":"https://api.github.com/users/j-white/events{/privacy}","received_events_url":"https://api.github.com/users/j-white/received_events","type":"User","site_admin":false},"body":"This should be private.","created_at":"2016-08-31T22:25:32Z","updated_at":"2016-08-31T22:25:32Z","html_url":"https://github.com/OpenNMS/opennms/pull/992#discussion_r77084931","pull_request_url":"https://api.github.com/repos/OpenNMS/opennms/pulls/992","_links":{"self":{"href":"https://api.github.com/repos/OpenNMS/opennms/pulls/comments/77084931"},"html":{"href":"https://github.com/OpenNMS/opennms/pull/992#discussion_r77084931"},"pull_request":{"href":"https://api.github.com/repos/OpenNMS/opennms/pulls/992"}}},"pull_request":{"url":"https://api.github.com/repos/OpenNMS/opennms/pulls/992","id":83521413,"html_url":"https://github.com/OpenNMS/opennms/pull/992","diff_url":"https://github.com/OpenNMS/opennms/pull/992.diff","patch_url":"https://github.com/OpenNMS/opennms/pull/992.patch","issue_url":"https://api.github.com/repos/OpenNMS/opennms/issues/992","number":992,"state":"open","locked":false,"title":"NMS-8704: EIF to OpenNMS Event Adapter","user":{"login":"UberPinguin","id":638306,"avatar_url":"https://avatars.githubusercontent.com/u/638306?v=3","gravatar_id":"","url":"https://api.github.com/users/UberPinguin","html_url":"https://github.com/UberPinguin","followers_url":"https://api.github.com/users/UberPinguin/followers","following_url":"https://api.github.com/users/UberPinguin/following{/other_user}","gists_url":"https://api.github.com/users/UberPinguin/gists{/gist_id}","starred_url":"https://api.github.com/users/UberPinguin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UberPinguin/subscriptions","organizations_url":"https://api.github.com/users/UberPinguin/orgs","repos_url":"https://api.github.com/users/UberPinguin/repos","events_url":"https://api.github.com/users/UberPinguin/events{/privacy}","received_events_url":"https://api.github.com/users/UberPinguin/received_events","type":"User","site_admin":false},"body":":+1::tada: Thanks for taking the time to contribute! :+1::tada:\r\n\r\nWe manage the software development in [JIRA](http://issues.opennms.org) and it would be great to have an issue for your pull request.\r\nThe issue number is used as an identifier for the release management.\r\n\r\nPlease describe shortly what the pull request solves.\r\nIf you do not have a JIRA account or issue number, please add a note in the pull request so we can help you with it.\r\n\r\nYou can provide hints where a reviewer should start.\r\n\r\nPlease format the title of the pull request in the format:\r\n\r\n${JIRA-ISSUE-NUMBER}: a-short-subject-title\r\n\r\nPlease fill in the JIRA issue number and create a link in the JIRA issue back to this pull request so we have a quick reference from the issue to the pull request.\r\n\r\n* JIRA: http://issues.opennms.org/browse/${JIRA-ISSUE-NUMBER}\r\n* Bamboo: Do not worry, we add a link to our continuous integration system here\r\n\r\n","created_at":"2016-08-31T20:17:10Z","updated_at":"2016-08-31T22:25:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e34733f6ac4dd2955604c9df747d4fb6ead47d25","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/OpenNMS/opennms/pulls/992/commits","review_comments_url":"https://api.github.com/repos/OpenNMS/opennms/pulls/992/comments","review_comment_url":"https://api.github.com/repos/OpenNMS/opennms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenNMS/opennms/issues/992/comments","statuses_url":"https://api.github.com/repos/OpenNMS/opennms/statuses/fb3a0063e69d10c923bad2becc3ea789ef8b79c3","head":{"label":"UberPinguin:feature/NMS-8704-eif_adapter","ref":"feature/NMS-8704-eif_adapter","sha":"fb3a0063e69d10c923bad2becc3ea789ef8b79c3","user":{"login":"UberPinguin","id":638306,"avatar_url":"https://avatars.githubusercontent.com/u/638306?v=3","gravatar_id":"","url":"https://api.github.com/users/UberPinguin","html_url":"https://github.com/UberPinguin","followers_url":"https://api.github.com/users/UberPinguin/followers","following_url":"https://api.github.com/users/UberPinguin/following{/other_user}","gists_url":"https://api.github.com/users/UberPinguin/gists{/gist_id}","starred_url":"https://api.github.com/users/UberPinguin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UberPinguin/subscriptions","organizations_url":"https://api.github.com/users/UberPinguin/orgs","repos_url":"https://api.github.com/users/UberPinguin/repos","events_url":"https://api.github.com/users/UberPinguin/events{/privacy}","received_events_url":"https://api.github.com/users/UberPinguin/received_events","type":"User","site_admin":false},"repo":{"id":67070381,"name":"opennms","full_name":"UberPinguin/opennms","owner":{"login":"UberPinguin","id":638306,"avatar_url":"https://avatars.githubusercontent.com/u/638306?v=3","gravatar_id":"","url":"https://api.github.com/users/UberPinguin","html_url":"https://github.com/UberPinguin","followers_url":"https://api.github.com/users/UberPinguin/followers","following_url":"https://api.github.com/users/UberPinguin/following{/other_user}","gists_url":"https://api.github.com/users/UberPinguin/gists{/gist_id}","starred_url":"https://api.github.com/users/UberPinguin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UberPinguin/subscriptions","organizations_url":"https://api.github.com/users/UberPinguin/orgs","repos_url":"https://api.github.com/users/UberPinguin/repos","events_url":"https://api.github.com/users/UberPinguin/events{/privacy}","received_events_url":"https://api.github.com/users/UberPinguin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/UberPinguin/opennms","description":"Enterprise-Grade Open-Source Network Management Platform","fork":true,"url":"https://api.github.com/repos/UberPinguin/opennms","forks_url":"https://api.github.com/repos/UberPinguin/opennms/forks","keys_url":"https://api.github.com/repos/UberPinguin/opennms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UberPinguin/opennms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UberPinguin/opennms/teams","hooks_url":"https://api.github.com/repos/UberPinguin/opennms/hooks","issue_events_url":"https://api.github.com/repos/UberPinguin/opennms/issues/events{/number}","events_url":"https://api.github.com/repos/UberPinguin/opennms/events","assignees_url":"https://api.github.com/repos/UberPinguin/opennms/assignees{/user}","branches_url":"https://api.github.com/repos/UberPinguin/opennms/branches{/branch}","tags_url":"https://api.github.com/repos/UberPinguin/opennms/tags","blobs_url":"https://api.github.com/repos/UberPinguin/opennms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UberPinguin/opennms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UberPinguin/opennms/git/refs{/sha}","trees_url":"https://api.github.com/repos/UberPinguin/opennms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UberPinguin/opennms/statuses/{sha}","languages_url":"https://api.github.com/repos/UberPinguin/opennms/languages","stargazers_url":"https://api.github.com/repos/UberPinguin/opennms/stargazers","contributors_url":"https://api.github.com/repos/UberPinguin/opennms/contributors","subscribers_url":"https://api.github.com/repos/UberPinguin/opennms/subscribers","subscription_url":"https://api.github.com/repos/UberPinguin/opennms/subscription","commits_url":"https://api.github.com/repos/UberPinguin/opennms/commits{/sha}","git_commits_url":"https://api.github.com/repos/UberPinguin/opennms/git/commits{/sha}","comments_url":"https://api.github.com/repos/UberPinguin/opennms/comments{/number}","issue_comment_url":"https://api.github.com/repos/UberPinguin/opennms/issues/comments{/number}","contents_url":"https://api.github.com/repos/UberPinguin/opennms/contents/{+path}","compare_url":"https://api.github.com/repos/UberPinguin/opennms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UberPinguin/opennms/merges","archive_url":"https://api.github.com/repos/UberPinguin/opennms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UberPinguin/opennms/downloads","issues_url":"https://api.github.com/repos/UberPinguin/opennms/issues{/number}","pulls_url":"https://api.github.com/repos/UberPinguin/opennms/pulls{/number}","milestones_url":"https://api.github.com/repos/UberPinguin/opennms/milestones{/number}","notifications_url":"https://api.github.com/repos/UberPinguin/opennms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UberPinguin/opennms/labels{/name}","releases_url":"https://api.github.com/repos/UberPinguin/opennms/releases{/id}","deployments_url":"https://api.github.com/repos/UberPinguin/opennms/deployments","created_at":"2016-08-31T20:15:50Z","updated_at":"2016-08-31T20:16:28Z","pushed_at":"2016-08-31T20:16:08Z","git_url":"git://github.com/UberPinguin/opennms.git","ssh_url":"git@github.com:UberPinguin/opennms.git","clone_url":"https://github.com/UberPinguin/opennms.git","svn_url":"https://github.com/UberPinguin/opennms","homepage":"http://www.opennms.org/","size":445909,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"develop"}},"base":{"label":"OpenNMS:develop","ref":"develop","sha":"57df3d3108eac2afe2ce508d1a2432872d986ba0","user":{"login":"OpenNMS","id":2972482,"avatar_url":"https://avatars.githubusercontent.com/u/2972482?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenNMS","html_url":"https://github.com/OpenNMS","followers_url":"https://api.github.com/users/OpenNMS/followers","following_url":"https://api.github.com/users/OpenNMS/following{/other_user}","gists_url":"https://api.github.com/users/OpenNMS/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenNMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenNMS/subscriptions","organizations_url":"https://api.github.com/users/OpenNMS/orgs","repos_url":"https://api.github.com/users/OpenNMS/repos","events_url":"https://api.github.com/users/OpenNMS/events{/privacy}","received_events_url":"https://api.github.com/users/OpenNMS/received_events","type":"Organization","site_admin":false},"repo":{"id":9377198,"name":"opennms","full_name":"OpenNMS/opennms","owner":{"login":"OpenNMS","id":2972482,"avatar_url":"https://avatars.githubusercontent.com/u/2972482?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenNMS","html_url":"https://github.com/OpenNMS","followers_url":"https://api.github.com/users/OpenNMS/followers","following_url":"https://api.github.com/users/OpenNMS/following{/other_user}","gists_url":"https://api.github.com/users/OpenNMS/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenNMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenNMS/subscriptions","organizations_url":"https://api.github.com/users/OpenNMS/orgs","repos_url":"https://api.github.com/users/OpenNMS/repos","events_url":"https://api.github.com/users/OpenNMS/events{/privacy}","received_events_url":"https://api.github.com/users/OpenNMS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenNMS/opennms","description":"Enterprise-Grade Open-Source Network Management Platform","fork":false,"url":"https://api.github.com/repos/OpenNMS/opennms","forks_url":"https://api.github.com/repos/OpenNMS/opennms/forks","keys_url":"https://api.github.com/repos/OpenNMS/opennms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenNMS/opennms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenNMS/opennms/teams","hooks_url":"https://api.github.com/repos/OpenNMS/opennms/hooks","issue_events_url":"https://api.github.com/repos/OpenNMS/opennms/issues/events{/number}","events_url":"https://api.github.com/repos/OpenNMS/opennms/events","assignees_url":"https://api.github.com/repos/OpenNMS/opennms/assignees{/user}","branches_url":"https://api.github.com/repos/OpenNMS/opennms/branches{/branch}","tags_url":"https://api.github.com/repos/OpenNMS/opennms/tags","blobs_url":"https://api.github.com/repos/OpenNMS/opennms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenNMS/opennms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenNMS/opennms/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenNMS/opennms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenNMS/opennms/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenNMS/opennms/languages","stargazers_url":"https://api.github.com/repos/OpenNMS/opennms/stargazers","contributors_url":"https://api.github.com/repos/OpenNMS/opennms/contributors","subscribers_url":"https://api.github.com/repos/OpenNMS/opennms/subscribers","subscription_url":"https://api.github.com/repos/OpenNMS/opennms/subscription","commits_url":"https://api.github.com/repos/OpenNMS/opennms/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenNMS/opennms/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenNMS/opennms/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenNMS/opennms/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenNMS/opennms/contents/{+path}","compare_url":"https://api.github.com/repos/OpenNMS/opennms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenNMS/opennms/merges","archive_url":"https://api.github.com/repos/OpenNMS/opennms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenNMS/opennms/downloads","issues_url":"https://api.github.com/repos/OpenNMS/opennms/issues{/number}","pulls_url":"https://api.github.com/repos/OpenNMS/opennms/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenNMS/opennms/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenNMS/opennms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenNMS/opennms/labels{/name}","releases_url":"https://api.github.com/repos/OpenNMS/opennms/releases{/id}","deployments_url":"https://api.github.com/repos/OpenNMS/opennms/deployments","created_at":"2013-04-11T18:22:33Z","updated_at":"2016-08-30T06:57:45Z","pushed_at":"2016-08-31T20:49:41Z","git_url":"git://github.com/OpenNMS/opennms.git","ssh_url":"git@github.com:OpenNMS/opennms.git","clone_url":"https://github.com/OpenNMS/opennms.git","svn_url":"https://github.com/OpenNMS/opennms","homepage":"http://www.opennms.org/","size":700763,"stargazers_count":163,"watchers_count":163,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":273,"mirror_url":null,"open_issues_count":21,"forks":273,"open_issues":21,"watchers":163,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenNMS/opennms/pulls/992"},"html":{"href":"https://github.com/OpenNMS/opennms/pull/992"},"issue":{"href":"https://api.github.com/repos/OpenNMS/opennms/issues/992"},"comments":{"href":"https://api.github.com/repos/OpenNMS/opennms/issues/992/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenNMS/opennms/pulls/992/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenNMS/opennms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenNMS/opennms/pulls/992/commits"},"statuses":{"href":"https://api.github.com/repos/OpenNMS/opennms/statuses/fb3a0063e69d10c923bad2becc3ea789ef8b79c3"}}}}
{"actor":{"display_login":"j-white"}}