{"action":"created","comment":{"url":"https://api.github.com/repos/EverythingMe/redash/pulls/comments/43805802","id":43805802,"diff_hunk":"@@ -613,6 +613,7 @@ class Alert(ModelTimestampsMixin, BaseModel):\n     options = JSONField()\n     state = peewee.CharField(default=UNKNOWN_STATE)\n     last_triggered_at = DateTimeTZField(null=True)\n+    rearm = peewee.IntegerField(null=True)","path":"redash/models.py","position":4,"original_position":4,"commit_id":"3dc62e3c8563af4ac880aa68acbefe5084092c96","original_commit_id":"3dc62e3c8563af4ac880aa68acbefe5084092c96","user":{"login":"arikfr","id":71468,"avatar_url":"https://avatars.githubusercontent.com/u/71468?v=3","gravatar_id":"","url":"https://api.github.com/users/arikfr","html_url":"https://github.com/arikfr","followers_url":"https://api.github.com/users/arikfr/followers","following_url":"https://api.github.com/users/arikfr/following{/other_user}","gists_url":"https://api.github.com/users/arikfr/gists{/gist_id}","starred_url":"https://api.github.com/users/arikfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arikfr/subscriptions","organizations_url":"https://api.github.com/users/arikfr/orgs","repos_url":"https://api.github.com/users/arikfr/repos","events_url":"https://api.github.com/users/arikfr/events{/privacy}","received_events_url":"https://api.github.com/users/arikfr/received_events","type":"User","site_admin":false},"body":"Oops, ignore that - it's not a boolean (maybe I shouldn't do code reviews at 11PM...).","created_at":"2015-11-03T20:58:41Z","updated_at":"2015-11-03T20:58:41Z","html_url":"https://github.com/EverythingMe/redash/pull/631#discussion_r43805802","pull_request_url":"https://api.github.com/repos/EverythingMe/redash/pulls/631","_links":{"self":{"href":"https://api.github.com/repos/EverythingMe/redash/pulls/comments/43805802"},"html":{"href":"https://github.com/EverythingMe/redash/pull/631#discussion_r43805802"},"pull_request":{"href":"https://api.github.com/repos/EverythingMe/redash/pulls/631"}}},"pull_request":{"url":"https://api.github.com/repos/EverythingMe/redash/pulls/631","id":49232546,"html_url":"https://github.com/EverythingMe/redash/pull/631","diff_url":"https://github.com/EverythingMe/redash/pull/631.diff","patch_url":"https://github.com/EverythingMe/redash/pull/631.patch","issue_url":"https://api.github.com/repos/EverythingMe/redash/issues/631","number":631,"state":"open","locked":false,"title":"Added alert rearm setting which allows periodic resending of alert messages.","user":{"login":"nielsdraaisma","id":653948,"avatar_url":"https://avatars.githubusercontent.com/u/653948?v=3","gravatar_id":"","url":"https://api.github.com/users/nielsdraaisma","html_url":"https://github.com/nielsdraaisma","followers_url":"https://api.github.com/users/nielsdraaisma/followers","following_url":"https://api.github.com/users/nielsdraaisma/following{/other_user}","gists_url":"https://api.github.com/users/nielsdraaisma/gists{/gist_id}","starred_url":"https://api.github.com/users/nielsdraaisma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nielsdraaisma/subscriptions","organizations_url":"https://api.github.com/users/nielsdraaisma/orgs","repos_url":"https://api.github.com/users/nielsdraaisma/repos","events_url":"https://api.github.com/users/nielsdraaisma/events{/privacy}","received_events_url":"https://api.github.com/users/nielsdraaisma/received_events","type":"User","site_admin":false},"body":"This pull request adds a setting which matches against a rearm timer after query execution, this allows users to receive daily emails for alerts that are trigger over a longer period of time.","created_at":"2015-10-30T05:20:58Z","updated_at":"2015-11-03T20:58:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1988c346b612c0f35f1eea76a2128ec8004a1cd3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/EverythingMe/redash/pulls/631/commits","review_comments_url":"https://api.github.com/repos/EverythingMe/redash/pulls/631/comments","review_comment_url":"https://api.github.com/repos/EverythingMe/redash/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EverythingMe/redash/issues/631/comments","statuses_url":"https://api.github.com/repos/EverythingMe/redash/statuses/3dc62e3c8563af4ac880aa68acbefe5084092c96","head":{"label":"brickx:master","ref":"master","sha":"3dc62e3c8563af4ac880aa68acbefe5084092c96","user":{"login":"brickx","id":9814581,"avatar_url":"https://avatars.githubusercontent.com/u/9814581?v=3","gravatar_id":"","url":"https://api.github.com/users/brickx","html_url":"https://github.com/brickx","followers_url":"https://api.github.com/users/brickx/followers","following_url":"https://api.github.com/users/brickx/following{/other_user}","gists_url":"https://api.github.com/users/brickx/gists{/gist_id}","starred_url":"https://api.github.com/users/brickx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brickx/subscriptions","organizations_url":"https://api.github.com/users/brickx/orgs","repos_url":"https://api.github.com/users/brickx/repos","events_url":"https://api.github.com/users/brickx/events{/privacy}","received_events_url":"https://api.github.com/users/brickx/received_events","type":"Organization","site_admin":false},"repo":{"id":45230134,"name":"redash-1","full_name":"brickx/redash-1","owner":{"login":"brickx","id":9814581,"avatar_url":"https://avatars.githubusercontent.com/u/9814581?v=3","gravatar_id":"","url":"https://api.github.com/users/brickx","html_url":"https://github.com/brickx","followers_url":"https://api.github.com/users/brickx/followers","following_url":"https://api.github.com/users/brickx/following{/other_user}","gists_url":"https://api.github.com/users/brickx/gists{/gist_id}","starred_url":"https://api.github.com/users/brickx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brickx/subscriptions","organizations_url":"https://api.github.com/users/brickx/orgs","repos_url":"https://api.github.com/users/brickx/repos","events_url":"https://api.github.com/users/brickx/events{/privacy}","received_events_url":"https://api.github.com/users/brickx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/brickx/redash-1","description":"Rethinking how data is queried, shared and visualized. A web application that allows to easily query an existing database, share the dataset and visualize it in different ways. Oh and you can also create dashboards.","fork":true,"url":"https://api.github.com/repos/brickx/redash-1","forks_url":"https://api.github.com/repos/brickx/redash-1/forks","keys_url":"https://api.github.com/repos/brickx/redash-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brickx/redash-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brickx/redash-1/teams","hooks_url":"https://api.github.com/repos/brickx/redash-1/hooks","issue_events_url":"https://api.github.com/repos/brickx/redash-1/issues/events{/number}","events_url":"https://api.github.com/repos/brickx/redash-1/events","assignees_url":"https://api.github.com/repos/brickx/redash-1/assignees{/user}","branches_url":"https://api.github.com/repos/brickx/redash-1/branches{/branch}","tags_url":"https://api.github.com/repos/brickx/redash-1/tags","blobs_url":"https://api.github.com/repos/brickx/redash-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brickx/redash-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brickx/redash-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/brickx/redash-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brickx/redash-1/statuses/{sha}","languages_url":"https://api.github.com/repos/brickx/redash-1/languages","stargazers_url":"https://api.github.com/repos/brickx/redash-1/stargazers","contributors_url":"https://api.github.com/repos/brickx/redash-1/contributors","subscribers_url":"https://api.github.com/repos/brickx/redash-1/subscribers","subscription_url":"https://api.github.com/repos/brickx/redash-1/subscription","commits_url":"https://api.github.com/repos/brickx/redash-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/brickx/redash-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/brickx/redash-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/brickx/redash-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/brickx/redash-1/contents/{+path}","compare_url":"https://api.github.com/repos/brickx/redash-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brickx/redash-1/merges","archive_url":"https://api.github.com/repos/brickx/redash-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brickx/redash-1/downloads","issues_url":"https://api.github.com/repos/brickx/redash-1/issues{/number}","pulls_url":"https://api.github.com/repos/brickx/redash-1/pulls{/number}","milestones_url":"https://api.github.com/repos/brickx/redash-1/milestones{/number}","notifications_url":"https://api.github.com/repos/brickx/redash-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brickx/redash-1/labels{/name}","releases_url":"https://api.github.com/repos/brickx/redash-1/releases{/id}","created_at":"2015-10-30T05:02:52Z","updated_at":"2015-10-30T05:02:53Z","pushed_at":"2015-10-30T05:18:57Z","git_url":"git://github.com/brickx/redash-1.git","ssh_url":"git@github.com:brickx/redash-1.git","clone_url":"https://github.com/brickx/redash-1.git","svn_url":"https://github.com/brickx/redash-1","homepage":"http://redash.io/","size":9603,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"EverythingMe:master","ref":"master","sha":"5b3bcff4f5139786a2f9315089ebe4cec7be0fe8","user":{"login":"EverythingMe","id":1861297,"avatar_url":"https://avatars.githubusercontent.com/u/1861297?v=3","gravatar_id":"","url":"https://api.github.com/users/EverythingMe","html_url":"https://github.com/EverythingMe","followers_url":"https://api.github.com/users/EverythingMe/followers","following_url":"https://api.github.com/users/EverythingMe/following{/other_user}","gists_url":"https://api.github.com/users/EverythingMe/gists{/gist_id}","starred_url":"https://api.github.com/users/EverythingMe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EverythingMe/subscriptions","organizations_url":"https://api.github.com/users/EverythingMe/orgs","repos_url":"https://api.github.com/users/EverythingMe/repos","events_url":"https://api.github.com/users/EverythingMe/events{/privacy}","received_events_url":"https://api.github.com/users/EverythingMe/received_events","type":"Organization","site_admin":false},"repo":{"id":13926404,"name":"redash","full_name":"EverythingMe/redash","owner":{"login":"EverythingMe","id":1861297,"avatar_url":"https://avatars.githubusercontent.com/u/1861297?v=3","gravatar_id":"","url":"https://api.github.com/users/EverythingMe","html_url":"https://github.com/EverythingMe","followers_url":"https://api.github.com/users/EverythingMe/followers","following_url":"https://api.github.com/users/EverythingMe/following{/other_user}","gists_url":"https://api.github.com/users/EverythingMe/gists{/gist_id}","starred_url":"https://api.github.com/users/EverythingMe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EverythingMe/subscriptions","organizations_url":"https://api.github.com/users/EverythingMe/orgs","repos_url":"https://api.github.com/users/EverythingMe/repos","events_url":"https://api.github.com/users/EverythingMe/events{/privacy}","received_events_url":"https://api.github.com/users/EverythingMe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EverythingMe/redash","description":"Rethinking how data is queried, shared and visualized. A web application that allows to easily query an existing database, share the dataset and visualize it in different ways. Oh and you can also create dashboards.","fork":false,"url":"https://api.github.com/repos/EverythingMe/redash","forks_url":"https://api.github.com/repos/EverythingMe/redash/forks","keys_url":"https://api.github.com/repos/EverythingMe/redash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EverythingMe/redash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EverythingMe/redash/teams","hooks_url":"https://api.github.com/repos/EverythingMe/redash/hooks","issue_events_url":"https://api.github.com/repos/EverythingMe/redash/issues/events{/number}","events_url":"https://api.github.com/repos/EverythingMe/redash/events","assignees_url":"https://api.github.com/repos/EverythingMe/redash/assignees{/user}","branches_url":"https://api.github.com/repos/EverythingMe/redash/branches{/branch}","tags_url":"https://api.github.com/repos/EverythingMe/redash/tags","blobs_url":"https://api.github.com/repos/EverythingMe/redash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EverythingMe/redash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EverythingMe/redash/git/refs{/sha}","trees_url":"https://api.github.com/repos/EverythingMe/redash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EverythingMe/redash/statuses/{sha}","languages_url":"https://api.github.com/repos/EverythingMe/redash/languages","stargazers_url":"https://api.github.com/repos/EverythingMe/redash/stargazers","contributors_url":"https://api.github.com/repos/EverythingMe/redash/contributors","subscribers_url":"https://api.github.com/repos/EverythingMe/redash/subscribers","subscription_url":"https://api.github.com/repos/EverythingMe/redash/subscription","commits_url":"https://api.github.com/repos/EverythingMe/redash/commits{/sha}","git_commits_url":"https://api.github.com/repos/EverythingMe/redash/git/commits{/sha}","comments_url":"https://api.github.com/repos/EverythingMe/redash/comments{/number}","issue_comment_url":"https://api.github.com/repos/EverythingMe/redash/issues/comments{/number}","contents_url":"https://api.github.com/repos/EverythingMe/redash/contents/{+path}","compare_url":"https://api.github.com/repos/EverythingMe/redash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EverythingMe/redash/merges","archive_url":"https://api.github.com/repos/EverythingMe/redash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EverythingMe/redash/downloads","issues_url":"https://api.github.com/repos/EverythingMe/redash/issues{/number}","pulls_url":"https://api.github.com/repos/EverythingMe/redash/pulls{/number}","milestones_url":"https://api.github.com/repos/EverythingMe/redash/milestones{/number}","notifications_url":"https://api.github.com/repos/EverythingMe/redash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EverythingMe/redash/labels{/name}","releases_url":"https://api.github.com/repos/EverythingMe/redash/releases{/id}","created_at":"2013-10-28T13:19:39Z","updated_at":"2015-11-03T20:44:01Z","pushed_at":"2015-11-03T20:01:52Z","git_url":"git://github.com/EverythingMe/redash.git","ssh_url":"git@github.com:EverythingMe/redash.git","clone_url":"https://github.com/EverythingMe/redash.git","svn_url":"https://github.com/EverythingMe/redash","homepage":"http://redash.io/","size":9603,"stargazers_count":1013,"watchers_count":1013,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":163,"mirror_url":null,"open_issues_count":98,"forks":163,"open_issues":98,"watchers":1013,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/EverythingMe/redash/pulls/631"},"html":{"href":"https://github.com/EverythingMe/redash/pull/631"},"issue":{"href":"https://api.github.com/repos/EverythingMe/redash/issues/631"},"comments":{"href":"https://api.github.com/repos/EverythingMe/redash/issues/631/comments"},"review_comments":{"href":"https://api.github.com/repos/EverythingMe/redash/pulls/631/comments"},"review_comment":{"href":"https://api.github.com/repos/EverythingMe/redash/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EverythingMe/redash/pulls/631/commits"},"statuses":{"href":"https://api.github.com/repos/EverythingMe/redash/statuses/3dc62e3c8563af4ac880aa68acbefe5084092c96"}}}}