{"action":"created","issue":{"url":"https://api.github.com/repos/miq-consumption/manageiq-consumption/issues/72","repository_url":"https://api.github.com/repos/miq-consumption/manageiq-consumption","labels_url":"https://api.github.com/repos/miq-consumption/manageiq-consumption/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/miq-consumption/manageiq-consumption/issues/72/comments","events_url":"https://api.github.com/repos/miq-consumption/manageiq-consumption/issues/72/events","html_url":"https://github.com/miq-consumption/manageiq-consumption/issues/72","id":249646560,"number":72,"title":"Store event snapshot at the end of the cycle","user":{"login":"sergio-ocon","id":7500590,"avatar_url":"https://avatars3.githubusercontent.com/u/7500590?v=4","gravatar_id":"","url":"https://api.github.com/users/sergio-ocon","html_url":"https://github.com/sergio-ocon","followers_url":"https://api.github.com/users/sergio-ocon/followers","following_url":"https://api.github.com/users/sergio-ocon/following{/other_user}","gists_url":"https://api.github.com/users/sergio-ocon/gists{/gist_id}","starred_url":"https://api.github.com/users/sergio-ocon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergio-ocon/subscriptions","organizations_url":"https://api.github.com/users/sergio-ocon/orgs","repos_url":"https://api.github.com/users/sergio-ocon/repos","events_url":"https://api.github.com/users/sergio-ocon/events{/privacy}","received_events_url":"https://api.github.com/users/sergio-ocon/received_events","type":"User","site_admin":false},"labels":[{"id":615194921,"url":"https://api.github.com/repos/miq-consumption/manageiq-consumption/labels/bug","name":"bug","color":"ee0701","default":true},{"id":615194923,"url":"https://api.github.com/repos/miq-consumption/manageiq-consumption/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"aljesusg","id":3019213,"avatar_url":"https://avatars2.githubusercontent.com/u/3019213?v=4","gravatar_id":"","url":"https://api.github.com/users/aljesusg","html_url":"https://github.com/aljesusg","followers_url":"https://api.github.com/users/aljesusg/followers","following_url":"https://api.github.com/users/aljesusg/following{/other_user}","gists_url":"https://api.github.com/users/aljesusg/gists{/gist_id}","starred_url":"https://api.github.com/users/aljesusg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aljesusg/subscriptions","organizations_url":"https://api.github.com/users/aljesusg/orgs","repos_url":"https://api.github.com/users/aljesusg/repos","events_url":"https://api.github.com/users/aljesusg/events{/privacy}","received_events_url":"https://api.github.com/users/aljesusg/received_events","type":"User","site_admin":false},"assignees":[{"login":"aljesusg","id":3019213,"avatar_url":"https://avatars2.githubusercontent.com/u/3019213?v=4","gravatar_id":"","url":"https://api.github.com/users/aljesusg","html_url":"https://github.com/aljesusg","followers_url":"https://api.github.com/users/aljesusg/followers","following_url":"https://api.github.com/users/aljesusg/following{/other_user}","gists_url":"https://api.github.com/users/aljesusg/gists{/gist_id}","starred_url":"https://api.github.com/users/aljesusg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aljesusg/subscriptions","organizations_url":"https://api.github.com/users/aljesusg/orgs","repos_url":"https://api.github.com/users/aljesusg/repos","events_url":"https://api.github.com/users/aljesusg/events{/privacy}","received_events_url":"https://api.github.com/users/aljesusg/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2017-08-11T14:07:19Z","updated_at":"2017-08-25T17:51:44Z","closed_at":null,"body":"Events are only generated once, so we need to get a means to differentiate charges from one month to another.\r\n\r\nCurrently, we are just storing the event data (as initially we were going to create an event per pool).\r\n\r\nWith the new requirements, we wanted to add a snapshot of the start of the cycle in charge, so we could calculate up to date information for the current cycle (i.e # of bytes downloaded is total - start of cycle).\r\n\r\nHowever, that doesn't take into account that once the pool is closed the charge will not be based on current event, but on the status of the event at that moment, so we should also store the snapshot at the end of the event in the charge.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/miq-consumption/manageiq-consumption/issues/comments/324992358","html_url":"https://github.com/miq-consumption/manageiq-consumption/issues/72#issuecomment-324992358","issue_url":"https://api.github.com/repos/miq-consumption/manageiq-consumption/issues/72","id":324992358,"user":{"login":"sergio-ocon","id":7500590,"avatar_url":"https://avatars3.githubusercontent.com/u/7500590?v=4","gravatar_id":"","url":"https://api.github.com/users/sergio-ocon","html_url":"https://github.com/sergio-ocon","followers_url":"https://api.github.com/users/sergio-ocon/followers","following_url":"https://api.github.com/users/sergio-ocon/following{/other_user}","gists_url":"https://api.github.com/users/sergio-ocon/gists{/gist_id}","starred_url":"https://api.github.com/users/sergio-ocon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergio-ocon/subscriptions","organizations_url":"https://api.github.com/users/sergio-ocon/orgs","repos_url":"https://api.github.com/users/sergio-ocon/repos","events_url":"https://api.github.com/users/sergio-ocon/events{/privacy}","received_events_url":"https://api.github.com/users/sergio-ocon/received_events","type":"User","site_admin":false},"created_at":"2017-08-25T17:51:44Z","updated_at":"2017-08-25T17:51:44Z","body":"It should be done in charge, not event"}}
{"actor":{"display_login":"sergio-ocon"}}