{"action":"opened","issue":{"url":"https://api.github.com/repos/purpleidea/mgmt/issues/15","repository_url":"https://api.github.com/repos/purpleidea/mgmt","labels_url":"https://api.github.com/repos/purpleidea/mgmt/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/purpleidea/mgmt/issues/15/comments","events_url":"https://api.github.com/repos/purpleidea/mgmt/issues/15/events","html_url":"https://github.com/purpleidea/mgmt/issues/15","id":134053774,"number":15,"title":"create a timer resource","user":{"login":"purpleidea","id":135091,"avatar_url":"https://avatars.githubusercontent.com/u/135091?v=3","gravatar_id":"","url":"https://api.github.com/users/purpleidea","html_url":"https://github.com/purpleidea","followers_url":"https://api.github.com/users/purpleidea/followers","following_url":"https://api.github.com/users/purpleidea/following{/other_user}","gists_url":"https://api.github.com/users/purpleidea/gists{/gist_id}","starred_url":"https://api.github.com/users/purpleidea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purpleidea/subscriptions","organizations_url":"https://api.github.com/users/purpleidea/orgs","repos_url":"https://api.github.com/users/purpleidea/repos","events_url":"https://api.github.com/users/purpleidea/events{/privacy}","received_events_url":"https://api.github.com/users/purpleidea/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/purpleidea/mgmt/labels/mgmtlove","name":"mgmtlove","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-16T18:04:50Z","updated_at":"2016-02-16T18:04:50Z","closed_at":null,"body":"We could have a timer resource in mgmt!\r\n\r\nThe idea would be to basically simulate some of the timer stuff I wrote in puppet, but more elegantly of course:\r\nhttps://ttboj.wordpress.com/2012/11/14/setting-timed-events-in-puppet/\r\n\r\nThe timer resource could trigger after N seconds, and in addition could support different algorithms for incrementing, eg: linear, exponential, etc... so that you can trigger timers in different ways.\r\n\r\nYou might want to have different options about when to reset the timer, eg: on recompile, or not, and so on...\r\n\r\nExperiment, and have a little fun! I hope someone gets to this before I do, because it should be a pleasure to write!"}}