{"action":"created","issue":{"url":"https://api.github.com/repos/grafana/grafana/issues/6592","repository_url":"https://api.github.com/repos/grafana/grafana","labels_url":"https://api.github.com/repos/grafana/grafana/issues/6592/labels{/name}","comments_url":"https://api.github.com/repos/grafana/grafana/issues/6592/comments","events_url":"https://api.github.com/repos/grafana/grafana/issues/6592/events","html_url":"https://github.com/grafana/grafana/issues/6592","id":189647232,"number":6592,"title":"Alerting: Time of day restrictions","user":{"login":"torkelo","id":10999,"avatar_url":"https://avatars3.githubusercontent.com/u/10999?v=4","gravatar_id":"","url":"https://api.github.com/users/torkelo","html_url":"https://github.com/torkelo","followers_url":"https://api.github.com/users/torkelo/followers","following_url":"https://api.github.com/users/torkelo/following{/other_user}","gists_url":"https://api.github.com/users/torkelo/gists{/gist_id}","starred_url":"https://api.github.com/users/torkelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torkelo/subscriptions","organizations_url":"https://api.github.com/users/torkelo/orgs","repos_url":"https://api.github.com/users/torkelo/repos","events_url":"https://api.github.com/users/torkelo/events{/privacy}","received_events_url":"https://api.github.com/users/torkelo/received_events","type":"User","site_admin":false},"labels":[{"id":227867844,"url":"https://api.github.com/repos/grafana/grafana/labels/comp:%20alerting","name":"comp: alerting","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":20,"created_at":"2016-11-16T09:44:45Z","updated_at":"2018-05-15T10:27:33Z","closed_at":null,"author_association":"MEMBER","body":"Time of day restrictions. \r\n\r\nSee two ways this could be implemented.\r\n\r\n1) As an alert condition\r\n2) As a filter on notifications \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/grafana/grafana/issues/comments/389119647","html_url":"https://github.com/grafana/grafana/issues/6592#issuecomment-389119647","issue_url":"https://api.github.com/repos/grafana/grafana/issues/6592","id":389119647,"user":{"login":"albertvaka","id":980842,"avatar_url":"https://avatars0.githubusercontent.com/u/980842?v=4","gravatar_id":"","url":"https://api.github.com/users/albertvaka","html_url":"https://github.com/albertvaka","followers_url":"https://api.github.com/users/albertvaka/followers","following_url":"https://api.github.com/users/albertvaka/following{/other_user}","gists_url":"https://api.github.com/users/albertvaka/gists{/gist_id}","starred_url":"https://api.github.com/users/albertvaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertvaka/subscriptions","organizations_url":"https://api.github.com/users/albertvaka/orgs","repos_url":"https://api.github.com/users/albertvaka/repos","events_url":"https://api.github.com/users/albertvaka/events{/privacy}","received_events_url":"https://api.github.com/users/albertvaka/received_events","type":"User","site_admin":false},"created_at":"2018-05-15T10:27:33Z","updated_at":"2018-05-15T10:27:33Z","author_association":"NONE","body":"As a workaround, using prometheus as backend:\r\n- Add the following query: `hour()`, that returns the hour of the day (0-23)\r\n- Add an extra condition for your alert, so it's only alerting if the hour query is between a range (eg: office hours)."}}
{"actor":{"display_login":"albertvaka"}}