{"action":"created","comment":{"url":"https://api.github.com/repos/Metaswitch/python-common/pulls/comments/53658260","id":53658260,"diff_hunk":"@@ -82,6 +85,9 @@ def parse_alarms_file(json_file):\n      \"Details length was greater than 255 characters in alarm {}\".format(name)\n                 assert len(level['description']) < 256, \\\n      \"Description length was greater than 255 characters in alarm {}\".format(name)\n+                assert level['cause']","path":"metaswitch/common/alarms_parser.py","position":48,"original_position":48,"commit_id":"6999472c2b9404ab5507e42f14124dda2d295e46","original_commit_id":"6999472c2b9404ab5507e42f14124dda2d295e46","user":{"login":"eleanor-merry","id":5425325,"avatar_url":"https://avatars.githubusercontent.com/u/5425325?v=3","gravatar_id":"","url":"https://api.github.com/users/eleanor-merry","html_url":"https://github.com/eleanor-merry","followers_url":"https://api.github.com/users/eleanor-merry/followers","following_url":"https://api.github.com/users/eleanor-merry/following{/other_user}","gists_url":"https://api.github.com/users/eleanor-merry/gists{/gist_id}","starred_url":"https://api.github.com/users/eleanor-merry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eleanor-merry/subscriptions","organizations_url":"https://api.github.com/users/eleanor-merry/orgs","repos_url":"https://api.github.com/users/eleanor-merry/repos","events_url":"https://api.github.com/users/eleanor-merry/events{/privacy}","received_events_url":"https://api.github.com/users/eleanor-merry/received_events","type":"User","site_admin":false},"body":"Actually, is assert the right thing here?","created_at":"2016-02-22T17:18:51Z","updated_at":"2016-02-22T17:18:51Z","html_url":"https://github.com/Metaswitch/python-common/pull/36#discussion_r53658260","pull_request_url":"https://api.github.com/repos/Metaswitch/python-common/pulls/36","_links":{"self":{"href":"https://api.github.com/repos/Metaswitch/python-common/pulls/comments/53658260"},"html":{"href":"https://github.com/Metaswitch/python-common/pull/36#discussion_r53658260"},"pull_request":{"href":"https://api.github.com/repos/Metaswitch/python-common/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/Metaswitch/python-common/pulls/36","id":60201939,"html_url":"https://github.com/Metaswitch/python-common/pull/36","diff_url":"https://github.com/Metaswitch/python-common/pull/36.diff","patch_url":"https://github.com/Metaswitch/python-common/pull/36.patch","issue_url":"https://api.github.com/repos/Metaswitch/python-common/issues/36","number":36,"state":"open","locked":false,"title":"Reviewer EM: Add cause, effect and action to alarms","user":{"login":"graemerobertson","id":5907876,"avatar_url":"https://avatars.githubusercontent.com/u/5907876?v=3","gravatar_id":"","url":"https://api.github.com/users/graemerobertson","html_url":"https://github.com/graemerobertson","followers_url":"https://api.github.com/users/graemerobertson/followers","following_url":"https://api.github.com/users/graemerobertson/following{/other_user}","gists_url":"https://api.github.com/users/graemerobertson/gists{/gist_id}","starred_url":"https://api.github.com/users/graemerobertson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graemerobertson/subscriptions","organizations_url":"https://api.github.com/users/graemerobertson/orgs","repos_url":"https://api.github.com/users/graemerobertson/repos","events_url":"https://api.github.com/users/graemerobertson/events{/privacy}","received_events_url":"https://api.github.com/users/graemerobertson/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-22T16:41:46Z","updated_at":"2016-02-22T17:18:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f06d25afb1ec0ec040cc9d12e9cf18cde190579","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Metaswitch/python-common/pulls/36/commits","review_comments_url":"https://api.github.com/repos/Metaswitch/python-common/pulls/36/comments","review_comment_url":"https://api.github.com/repos/Metaswitch/python-common/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Metaswitch/python-common/issues/36/comments","statuses_url":"https://api.github.com/repos/Metaswitch/python-common/statuses/6999472c2b9404ab5507e42f14124dda2d295e46","head":{"label":"Metaswitch:alarm_json","ref":"alarm_json","sha":"6999472c2b9404ab5507e42f14124dda2d295e46","user":{"login":"Metaswitch","id":453759,"avatar_url":"https://avatars.githubusercontent.com/u/453759?v=3","gravatar_id":"","url":"https://api.github.com/users/Metaswitch","html_url":"https://github.com/Metaswitch","followers_url":"https://api.github.com/users/Metaswitch/followers","following_url":"https://api.github.com/users/Metaswitch/following{/other_user}","gists_url":"https://api.github.com/users/Metaswitch/gists{/gist_id}","starred_url":"https://api.github.com/users/Metaswitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Metaswitch/subscriptions","organizations_url":"https://api.github.com/users/Metaswitch/orgs","repos_url":"https://api.github.com/users/Metaswitch/repos","events_url":"https://api.github.com/users/Metaswitch/events{/privacy}","received_events_url":"https://api.github.com/users/Metaswitch/received_events","type":"Organization","site_admin":false},"repo":{"id":9885259,"name":"python-common","full_name":"Metaswitch/python-common","owner":{"login":"Metaswitch","id":453759,"avatar_url":"https://avatars.githubusercontent.com/u/453759?v=3","gravatar_id":"","url":"https://api.github.com/users/Metaswitch","html_url":"https://github.com/Metaswitch","followers_url":"https://api.github.com/users/Metaswitch/followers","following_url":"https://api.github.com/users/Metaswitch/following{/other_user}","gists_url":"https://api.github.com/users/Metaswitch/gists{/gist_id}","starred_url":"https://api.github.com/users/Metaswitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Metaswitch/subscriptions","organizations_url":"https://api.github.com/users/Metaswitch/orgs","repos_url":"https://api.github.com/users/Metaswitch/repos","events_url":"https://api.github.com/users/Metaswitch/events{/privacy}","received_events_url":"https://api.github.com/users/Metaswitch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Metaswitch/python-common","description":"Common python utilities and function library.","fork":false,"url":"https://api.github.com/repos/Metaswitch/python-common","forks_url":"https://api.github.com/repos/Metaswitch/python-common/forks","keys_url":"https://api.github.com/repos/Metaswitch/python-common/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Metaswitch/python-common/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Metaswitch/python-common/teams","hooks_url":"https://api.github.com/repos/Metaswitch/python-common/hooks","issue_events_url":"https://api.github.com/repos/Metaswitch/python-common/issues/events{/number}","events_url":"https://api.github.com/repos/Metaswitch/python-common/events","assignees_url":"https://api.github.com/repos/Metaswitch/python-common/assignees{/user}","branches_url":"https://api.github.com/repos/Metaswitch/python-common/branches{/branch}","tags_url":"https://api.github.com/repos/Metaswitch/python-common/tags","blobs_url":"https://api.github.com/repos/Metaswitch/python-common/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Metaswitch/python-common/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Metaswitch/python-common/git/refs{/sha}","trees_url":"https://api.github.com/repos/Metaswitch/python-common/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Metaswitch/python-common/statuses/{sha}","languages_url":"https://api.github.com/repos/Metaswitch/python-common/languages","stargazers_url":"https://api.github.com/repos/Metaswitch/python-common/stargazers","contributors_url":"https://api.github.com/repos/Metaswitch/python-common/contributors","subscribers_url":"https://api.github.com/repos/Metaswitch/python-common/subscribers","subscription_url":"https://api.github.com/repos/Metaswitch/python-common/subscription","commits_url":"https://api.github.com/repos/Metaswitch/python-common/commits{/sha}","git_commits_url":"https://api.github.com/repos/Metaswitch/python-common/git/commits{/sha}","comments_url":"https://api.github.com/repos/Metaswitch/python-common/comments{/number}","issue_comment_url":"https://api.github.com/repos/Metaswitch/python-common/issues/comments{/number}","contents_url":"https://api.github.com/repos/Metaswitch/python-common/contents/{+path}","compare_url":"https://api.github.com/repos/Metaswitch/python-common/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Metaswitch/python-common/merges","archive_url":"https://api.github.com/repos/Metaswitch/python-common/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Metaswitch/python-common/downloads","issues_url":"https://api.github.com/repos/Metaswitch/python-common/issues{/number}","pulls_url":"https://api.github.com/repos/Metaswitch/python-common/pulls{/number}","milestones_url":"https://api.github.com/repos/Metaswitch/python-common/milestones{/number}","notifications_url":"https://api.github.com/repos/Metaswitch/python-common/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Metaswitch/python-common/labels{/name}","releases_url":"https://api.github.com/repos/Metaswitch/python-common/releases{/id}","deployments_url":"https://api.github.com/repos/Metaswitch/python-common/deployments","created_at":"2013-05-06T11:20:46Z","updated_at":"2016-01-11T14:37:09Z","pushed_at":"2016-02-22T16:41:48Z","git_url":"git://github.com/Metaswitch/python-common.git","ssh_url":"git@github.com:Metaswitch/python-common.git","clone_url":"https://github.com/Metaswitch/python-common.git","svn_url":"https://github.com/Metaswitch/python-common","homepage":null,"size":109,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":2,"default_branch":"dev"}},"base":{"label":"Metaswitch:dev","ref":"dev","sha":"76c9095bd6e8b906b95aeb789e6efc4837116d92","user":{"login":"Metaswitch","id":453759,"avatar_url":"https://avatars.githubusercontent.com/u/453759?v=3","gravatar_id":"","url":"https://api.github.com/users/Metaswitch","html_url":"https://github.com/Metaswitch","followers_url":"https://api.github.com/users/Metaswitch/followers","following_url":"https://api.github.com/users/Metaswitch/following{/other_user}","gists_url":"https://api.github.com/users/Metaswitch/gists{/gist_id}","starred_url":"https://api.github.com/users/Metaswitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Metaswitch/subscriptions","organizations_url":"https://api.github.com/users/Metaswitch/orgs","repos_url":"https://api.github.com/users/Metaswitch/repos","events_url":"https://api.github.com/users/Metaswitch/events{/privacy}","received_events_url":"https://api.github.com/users/Metaswitch/received_events","type":"Organization","site_admin":false},"repo":{"id":9885259,"name":"python-common","full_name":"Metaswitch/python-common","owner":{"login":"Metaswitch","id":453759,"avatar_url":"https://avatars.githubusercontent.com/u/453759?v=3","gravatar_id":"","url":"https://api.github.com/users/Metaswitch","html_url":"https://github.com/Metaswitch","followers_url":"https://api.github.com/users/Metaswitch/followers","following_url":"https://api.github.com/users/Metaswitch/following{/other_user}","gists_url":"https://api.github.com/users/Metaswitch/gists{/gist_id}","starred_url":"https://api.github.com/users/Metaswitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Metaswitch/subscriptions","organizations_url":"https://api.github.com/users/Metaswitch/orgs","repos_url":"https://api.github.com/users/Metaswitch/repos","events_url":"https://api.github.com/users/Metaswitch/events{/privacy}","received_events_url":"https://api.github.com/users/Metaswitch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Metaswitch/python-common","description":"Common python utilities and function library.","fork":false,"url":"https://api.github.com/repos/Metaswitch/python-common","forks_url":"https://api.github.com/repos/Metaswitch/python-common/forks","keys_url":"https://api.github.com/repos/Metaswitch/python-common/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Metaswitch/python-common/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Metaswitch/python-common/teams","hooks_url":"https://api.github.com/repos/Metaswitch/python-common/hooks","issue_events_url":"https://api.github.com/repos/Metaswitch/python-common/issues/events{/number}","events_url":"https://api.github.com/repos/Metaswitch/python-common/events","assignees_url":"https://api.github.com/repos/Metaswitch/python-common/assignees{/user}","branches_url":"https://api.github.com/repos/Metaswitch/python-common/branches{/branch}","tags_url":"https://api.github.com/repos/Metaswitch/python-common/tags","blobs_url":"https://api.github.com/repos/Metaswitch/python-common/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Metaswitch/python-common/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Metaswitch/python-common/git/refs{/sha}","trees_url":"https://api.github.com/repos/Metaswitch/python-common/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Metaswitch/python-common/statuses/{sha}","languages_url":"https://api.github.com/repos/Metaswitch/python-common/languages","stargazers_url":"https://api.github.com/repos/Metaswitch/python-common/stargazers","contributors_url":"https://api.github.com/repos/Metaswitch/python-common/contributors","subscribers_url":"https://api.github.com/repos/Metaswitch/python-common/subscribers","subscription_url":"https://api.github.com/repos/Metaswitch/python-common/subscription","commits_url":"https://api.github.com/repos/Metaswitch/python-common/commits{/sha}","git_commits_url":"https://api.github.com/repos/Metaswitch/python-common/git/commits{/sha}","comments_url":"https://api.github.com/repos/Metaswitch/python-common/comments{/number}","issue_comment_url":"https://api.github.com/repos/Metaswitch/python-common/issues/comments{/number}","contents_url":"https://api.github.com/repos/Metaswitch/python-common/contents/{+path}","compare_url":"https://api.github.com/repos/Metaswitch/python-common/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Metaswitch/python-common/merges","archive_url":"https://api.github.com/repos/Metaswitch/python-common/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Metaswitch/python-common/downloads","issues_url":"https://api.github.com/repos/Metaswitch/python-common/issues{/number}","pulls_url":"https://api.github.com/repos/Metaswitch/python-common/pulls{/number}","milestones_url":"https://api.github.com/repos/Metaswitch/python-common/milestones{/number}","notifications_url":"https://api.github.com/repos/Metaswitch/python-common/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Metaswitch/python-common/labels{/name}","releases_url":"https://api.github.com/repos/Metaswitch/python-common/releases{/id}","deployments_url":"https://api.github.com/repos/Metaswitch/python-common/deployments","created_at":"2013-05-06T11:20:46Z","updated_at":"2016-01-11T14:37:09Z","pushed_at":"2016-02-22T16:41:48Z","git_url":"git://github.com/Metaswitch/python-common.git","ssh_url":"git@github.com:Metaswitch/python-common.git","clone_url":"https://github.com/Metaswitch/python-common.git","svn_url":"https://github.com/Metaswitch/python-common","homepage":null,"size":109,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":2,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Metaswitch/python-common/pulls/36"},"html":{"href":"https://github.com/Metaswitch/python-common/pull/36"},"issue":{"href":"https://api.github.com/repos/Metaswitch/python-common/issues/36"},"comments":{"href":"https://api.github.com/repos/Metaswitch/python-common/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/Metaswitch/python-common/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/Metaswitch/python-common/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Metaswitch/python-common/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/Metaswitch/python-common/statuses/6999472c2b9404ab5507e42f14124dda2d295e46"}}}}