{"action":"created","comment":{"url":"https://api.github.com/repos/zero-os/0-orchestrator/pulls/comments/129810644","pull_request_review_id":52620913,"id":129810644,"diff_hunk":"@@ -0,0 +1,64 @@\n+import time\n+from ..healthcheck import HealthCheckRun\n+\n+descr = \"\"\"\n+Monitors if a number of interrupts\n+\"\"\"\n+\n+\n+class Interrupts(HealthCheckRun):\n+    ID = 'interrupts'\n+\n+    def __init__(self, warn=8000, error=1000):\n+        super().__init__()\n+        self._warn = warn\n+        self._error = error\n+        self.result['id'] = 'interrupts'\n+        self.result['name'] = 'CPU Interrupts'\n+        self.result['category'] = 'Hardware'","path":"pyclient/zeroos/orchestrator/sal/healthchecks/interrupts.py","position":18,"original_position":18,"commit_id":"cf1b5a31411a0ed57f3f46bffbb57b8074f3437d","original_commit_id":"cf1b5a31411a0ed57f3f46bffbb57b8074f3437d","user":{"login":"grimpy","id":143869,"avatar_url":"https://avatars1.githubusercontent.com/u/143869?v=4","gravatar_id":"","url":"https://api.github.com/users/grimpy","html_url":"https://github.com/grimpy","followers_url":"https://api.github.com/users/grimpy/followers","following_url":"https://api.github.com/users/grimpy/following{/other_user}","gists_url":"https://api.github.com/users/grimpy/gists{/gist_id}","starred_url":"https://api.github.com/users/grimpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grimpy/subscriptions","organizations_url":"https://api.github.com/users/grimpy/orgs","repos_url":"https://api.github.com/users/grimpy/repos","events_url":"https://api.github.com/users/grimpy/events{/privacy}","received_events_url":"https://api.github.com/users/grimpy/received_events","type":"User","site_admin":false},"body":"resource isnt filled other then this it looks good,\r\nAlso if you rebasse you will notice i have changed all healtchecks to pass node inside init and store it under self.node so the resource can be filed in the __init__","created_at":"2017-07-27T10:52:04Z","updated_at":"2017-07-27T10:52:12Z","html_url":"https://github.com/zero-os/0-orchestrator/pull/772#discussion_r129810644","pull_request_url":"https://api.github.com/repos/zero-os/0-orchestrator/pulls/772","_links":{"self":{"href":"https://api.github.com/repos/zero-os/0-orchestrator/pulls/comments/129810644"},"html":{"href":"https://github.com/zero-os/0-orchestrator/pull/772#discussion_r129810644"},"pull_request":{"href":"https://api.github.com/repos/zero-os/0-orchestrator/pulls/772"}}},"pull_request":{"url":"https://api.github.com/repos/zero-os/0-orchestrator/pulls/772","id":132719337,"html_url":"https://github.com/zero-os/0-orchestrator/pull/772","diff_url":"https://github.com/zero-os/0-orchestrator/pull/772.diff","patch_url":"https://github.com/zero-os/0-orchestrator/pull/772.patch","issue_url":"https://api.github.com/repos/zero-os/0-orchestrator/issues/772","number":772,"state":"open","locked":false,"title":"Interrupts health check","user":{"login":"muhamadazmy","id":10920323,"avatar_url":"https://avatars1.githubusercontent.com/u/10920323?v=4","gravatar_id":"","url":"https://api.github.com/users/muhamadazmy","html_url":"https://github.com/muhamadazmy","followers_url":"https://api.github.com/users/muhamadazmy/followers","following_url":"https://api.github.com/users/muhamadazmy/following{/other_user}","gists_url":"https://api.github.com/users/muhamadazmy/gists{/gist_id}","starred_url":"https://api.github.com/users/muhamadazmy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muhamadazmy/subscriptions","organizations_url":"https://api.github.com/users/muhamadazmy/orgs","repos_url":"https://api.github.com/users/muhamadazmy/repos","events_url":"https://api.github.com/users/muhamadazmy/events{/privacy}","received_events_url":"https://api.github.com/users/muhamadazmy/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-07-27T10:46:32Z","updated_at":"2017-07-27T10:52:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"05867474ab0244b704855ec325f59a5921a66e17","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/zero-os/0-orchestrator/pulls/772/commits","review_comments_url":"https://api.github.com/repos/zero-os/0-orchestrator/pulls/772/comments","review_comment_url":"https://api.github.com/repos/zero-os/0-orchestrator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zero-os/0-orchestrator/issues/772/comments","statuses_url":"https://api.github.com/repos/zero-os/0-orchestrator/statuses/cf1b5a31411a0ed57f3f46bffbb57b8074f3437d","head":{"label":"zero-os:master-health-interrupts","ref":"master-health-interrupts","sha":"cf1b5a31411a0ed57f3f46bffbb57b8074f3437d","user":{"login":"zero-os","id":29012647,"avatar_url":"https://avatars0.githubusercontent.com/u/29012647?v=4","gravatar_id":"","url":"https://api.github.com/users/zero-os","html_url":"https://github.com/zero-os","followers_url":"https://api.github.com/users/zero-os/followers","following_url":"https://api.github.com/users/zero-os/following{/other_user}","gists_url":"https://api.github.com/users/zero-os/gists{/gist_id}","starred_url":"https://api.github.com/users/zero-os/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zero-os/subscriptions","organizations_url":"https://api.github.com/users/zero-os/orgs","repos_url":"https://api.github.com/users/zero-os/repos","events_url":"https://api.github.com/users/zero-os/events{/privacy}","received_events_url":"https://api.github.com/users/zero-os/received_events","type":"Organization","site_admin":false},"repo":{"id":84221732,"name":"0-orchestrator","full_name":"zero-os/0-orchestrator","owner":{"login":"zero-os","id":29012647,"avatar_url":"https://avatars0.githubusercontent.com/u/29012647?v=4","gravatar_id":"","url":"https://api.github.com/users/zero-os","html_url":"https://github.com/zero-os","followers_url":"https://api.github.com/users/zero-os/followers","following_url":"https://api.github.com/users/zero-os/following{/other_user}","gists_url":"https://api.github.com/users/zero-os/gists{/gist_id}","starred_url":"https://api.github.com/users/zero-os/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zero-os/subscriptions","organizations_url":"https://api.github.com/users/zero-os/orgs","repos_url":"https://api.github.com/users/zero-os/repos","events_url":"https://api.github.com/users/zero-os/events{/privacy}","received_events_url":"https://api.github.com/users/zero-os/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zero-os/0-orchestrator","description":"Zero-OS orchestration server. Provides a RESTfull api to manage a pool of Zero-OS nodes.","fork":false,"url":"https://api.github.com/repos/zero-os/0-orchestrator","forks_url":"https://api.github.com/repos/zero-os/0-orchestrator/forks","keys_url":"https://api.github.com/repos/zero-os/0-orchestrator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zero-os/0-orchestrator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zero-os/0-orchestrator/teams","hooks_url":"https://api.github.com/repos/zero-os/0-orchestrator/hooks","issue_events_url":"https://api.github.com/repos/zero-os/0-orchestrator/issues/events{/number}","events_url":"https://api.github.com/repos/zero-os/0-orchestrator/events","assignees_url":"https://api.github.com/repos/zero-os/0-orchestrator/assignees{/user}","branches_url":"https://api.github.com/repos/zero-os/0-orchestrator/branches{/branch}","tags_url":"https://api.github.com/repos/zero-os/0-orchestrator/tags","blobs_url":"https://api.github.com/repos/zero-os/0-orchestrator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zero-os/0-orchestrator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zero-os/0-orchestrator/git/refs{/sha}","trees_url":"https://api.github.com/repos/zero-os/0-orchestrator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zero-os/0-orchestrator/statuses/{sha}","languages_url":"https://api.github.com/repos/zero-os/0-orchestrator/languages","stargazers_url":"https://api.github.com/repos/zero-os/0-orchestrator/stargazers","contributors_url":"https://api.github.com/repos/zero-os/0-orchestrator/contributors","subscribers_url":"https://api.github.com/repos/zero-os/0-orchestrator/subscribers","subscription_url":"https://api.github.com/repos/zero-os/0-orchestrator/subscription","commits_url":"https://api.github.com/repos/zero-os/0-orchestrator/commits{/sha}","git_commits_url":"https://api.github.com/repos/zero-os/0-orchestrator/git/commits{/sha}","comments_url":"https://api.github.com/repos/zero-os/0-orchestrator/comments{/number}","issue_comment_url":"https://api.github.com/repos/zero-os/0-orchestrator/issues/comments{/number}","contents_url":"https://api.github.com/repos/zero-os/0-orchestrator/contents/{+path}","compare_url":"https://api.github.com/repos/zero-os/0-orchestrator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zero-os/0-orchestrator/merges","archive_url":"https://api.github.com/repos/zero-os/0-orchestrator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zero-os/0-orchestrator/downloads","issues_url":"https://api.github.com/repos/zero-os/0-orchestrator/issues{/number}","pulls_url":"https://api.github.com/repos/zero-os/0-orchestrator/pulls{/number}","milestones_url":"https://api.github.com/repos/zero-os/0-orchestrator/milestones{/number}","notifications_url":"https://api.github.com/repos/zero-os/0-orchestrator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zero-os/0-orchestrator/labels{/name}","releases_url":"https://api.github.com/repos/zero-os/0-orchestrator/releases{/id}","deployments_url":"https://api.github.com/repos/zero-os/0-orchestrator/deployments","created_at":"2017-03-07T16:29:57Z","updated_at":"2017-07-24T11:31:23Z","pushed_at":"2017-07-27T10:50:28Z","git_url":"git://github.com/zero-os/0-orchestrator.git","ssh_url":"git@github.com:zero-os/0-orchestrator.git","clone_url":"https://github.com/zero-os/0-orchestrator.git","svn_url":"https://github.com/zero-os/0-orchestrator","homepage":"","size":6279,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":74,"forks":5,"open_issues":74,"watchers":1,"default_branch":"master"}},"base":{"label":"zero-os:master","ref":"master","sha":"043753e748b50c2a0774f00a9a0b7070a8e49388","user":{"login":"zero-os","id":29012647,"avatar_url":"https://avatars0.githubusercontent.com/u/29012647?v=4","gravatar_id":"","url":"https://api.github.com/users/zero-os","html_url":"https://github.com/zero-os","followers_url":"https://api.github.com/users/zero-os/followers","following_url":"https://api.github.com/users/zero-os/following{/other_user}","gists_url":"https://api.github.com/users/zero-os/gists{/gist_id}","starred_url":"https://api.github.com/users/zero-os/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zero-os/subscriptions","organizations_url":"https://api.github.com/users/zero-os/orgs","repos_url":"https://api.github.com/users/zero-os/repos","events_url":"https://api.github.com/users/zero-os/events{/privacy}","received_events_url":"https://api.github.com/users/zero-os/received_events","type":"Organization","site_admin":false},"repo":{"id":84221732,"name":"0-orchestrator","full_name":"zero-os/0-orchestrator","owner":{"login":"zero-os","id":29012647,"avatar_url":"https://avatars0.githubusercontent.com/u/29012647?v=4","gravatar_id":"","url":"https://api.github.com/users/zero-os","html_url":"https://github.com/zero-os","followers_url":"https://api.github.com/users/zero-os/followers","following_url":"https://api.github.com/users/zero-os/following{/other_user}","gists_url":"https://api.github.com/users/zero-os/gists{/gist_id}","starred_url":"https://api.github.com/users/zero-os/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zero-os/subscriptions","organizations_url":"https://api.github.com/users/zero-os/orgs","repos_url":"https://api.github.com/users/zero-os/repos","events_url":"https://api.github.com/users/zero-os/events{/privacy}","received_events_url":"https://api.github.com/users/zero-os/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zero-os/0-orchestrator","description":"Zero-OS orchestration server. Provides a RESTfull api to manage a pool of Zero-OS nodes.","fork":false,"url":"https://api.github.com/repos/zero-os/0-orchestrator","forks_url":"https://api.github.com/repos/zero-os/0-orchestrator/forks","keys_url":"https://api.github.com/repos/zero-os/0-orchestrator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zero-os/0-orchestrator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zero-os/0-orchestrator/teams","hooks_url":"https://api.github.com/repos/zero-os/0-orchestrator/hooks","issue_events_url":"https://api.github.com/repos/zero-os/0-orchestrator/issues/events{/number}","events_url":"https://api.github.com/repos/zero-os/0-orchestrator/events","assignees_url":"https://api.github.com/repos/zero-os/0-orchestrator/assignees{/user}","branches_url":"https://api.github.com/repos/zero-os/0-orchestrator/branches{/branch}","tags_url":"https://api.github.com/repos/zero-os/0-orchestrator/tags","blobs_url":"https://api.github.com/repos/zero-os/0-orchestrator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zero-os/0-orchestrator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zero-os/0-orchestrator/git/refs{/sha}","trees_url":"https://api.github.com/repos/zero-os/0-orchestrator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zero-os/0-orchestrator/statuses/{sha}","languages_url":"https://api.github.com/repos/zero-os/0-orchestrator/languages","stargazers_url":"https://api.github.com/repos/zero-os/0-orchestrator/stargazers","contributors_url":"https://api.github.com/repos/zero-os/0-orchestrator/contributors","subscribers_url":"https://api.github.com/repos/zero-os/0-orchestrator/subscribers","subscription_url":"https://api.github.com/repos/zero-os/0-orchestrator/subscription","commits_url":"https://api.github.com/repos/zero-os/0-orchestrator/commits{/sha}","git_commits_url":"https://api.github.com/repos/zero-os/0-orchestrator/git/commits{/sha}","comments_url":"https://api.github.com/repos/zero-os/0-orchestrator/comments{/number}","issue_comment_url":"https://api.github.com/repos/zero-os/0-orchestrator/issues/comments{/number}","contents_url":"https://api.github.com/repos/zero-os/0-orchestrator/contents/{+path}","compare_url":"https://api.github.com/repos/zero-os/0-orchestrator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zero-os/0-orchestrator/merges","archive_url":"https://api.github.com/repos/zero-os/0-orchestrator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zero-os/0-orchestrator/downloads","issues_url":"https://api.github.com/repos/zero-os/0-orchestrator/issues{/number}","pulls_url":"https://api.github.com/repos/zero-os/0-orchestrator/pulls{/number}","milestones_url":"https://api.github.com/repos/zero-os/0-orchestrator/milestones{/number}","notifications_url":"https://api.github.com/repos/zero-os/0-orchestrator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zero-os/0-orchestrator/labels{/name}","releases_url":"https://api.github.com/repos/zero-os/0-orchestrator/releases{/id}","deployments_url":"https://api.github.com/repos/zero-os/0-orchestrator/deployments","created_at":"2017-03-07T16:29:57Z","updated_at":"2017-07-24T11:31:23Z","pushed_at":"2017-07-27T10:50:28Z","git_url":"git://github.com/zero-os/0-orchestrator.git","ssh_url":"git@github.com:zero-os/0-orchestrator.git","clone_url":"https://github.com/zero-os/0-orchestrator.git","svn_url":"https://github.com/zero-os/0-orchestrator","homepage":"","size":6279,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":74,"forks":5,"open_issues":74,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zero-os/0-orchestrator/pulls/772"},"html":{"href":"https://github.com/zero-os/0-orchestrator/pull/772"},"issue":{"href":"https://api.github.com/repos/zero-os/0-orchestrator/issues/772"},"comments":{"href":"https://api.github.com/repos/zero-os/0-orchestrator/issues/772/comments"},"review_comments":{"href":"https://api.github.com/repos/zero-os/0-orchestrator/pulls/772/comments"},"review_comment":{"href":"https://api.github.com/repos/zero-os/0-orchestrator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zero-os/0-orchestrator/pulls/772/commits"},"statuses":{"href":"https://api.github.com/repos/zero-os/0-orchestrator/statuses/cf1b5a31411a0ed57f3f46bffbb57b8074f3437d"}}}}
{"actor":{"display_login":"grimpy"}}