{"action":"opened","issue":{"url":"https://api.github.com/repos/bosun-monitor/bosun/issues/1450","labels_url":"https://api.github.com/repos/bosun-monitor/bosun/issues/1450/labels{/name}","comments_url":"https://api.github.com/repos/bosun-monitor/bosun/issues/1450/comments","events_url":"https://api.github.com/repos/bosun-monitor/bosun/issues/1450/events","html_url":"https://github.com/bosun-monitor/bosun/issues/1450","id":115526585,"number":1450,"title":"Off-by-one issue in Rule Editor \"step duration\"","user":{"login":"lpalm","id":8668240,"avatar_url":"https://avatars.githubusercontent.com/u/8668240?v=3","gravatar_id":"","url":"https://api.github.com/users/lpalm","html_url":"https://github.com/lpalm","followers_url":"https://api.github.com/users/lpalm/followers","following_url":"https://api.github.com/users/lpalm/following{/other_user}","gists_url":"https://api.github.com/users/lpalm/gists{/gist_id}","starred_url":"https://api.github.com/users/lpalm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpalm/subscriptions","organizations_url":"https://api.github.com/users/lpalm/orgs","repos_url":"https://api.github.com/users/lpalm/repos","events_url":"https://api.github.com/users/lpalm/events{/privacy}","received_events_url":"https://api.github.com/users/lpalm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-06T15:31:53Z","updated_at":"2015-11-06T15:31:53Z","closed_at":null,"body":"If I want to backtest some alert to run exactly once per day (every 1440 minutes) for N days the, calculated step duration is 1440 * N / (N-1). E.g. To test the alert for 4 midnights I need to use 4  intervals and the calculated step duration is 1080, but the correct value and the interval between displayed results is actually 1440 minutes."}}