{"action":"created","issue":{"url":"https://api.github.com/repos/ind9/gocd/issues/4","labels_url":"https://api.github.com/repos/ind9/gocd/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/ind9/gocd/issues/4/comments","events_url":"https://api.github.com/repos/ind9/gocd/issues/4/events","html_url":"https://github.com/ind9/gocd/issues/4","id":34440067,"number":4,"title":"[Go API] - Add estimated time to API","user":{"login":"codingnirvana","id":1348422,"avatar_url":"https://avatars.githubusercontent.com/u/1348422?v=3","gravatar_id":"","url":"https://api.github.com/users/codingnirvana","html_url":"https://github.com/codingnirvana","followers_url":"https://api.github.com/users/codingnirvana/followers","following_url":"https://api.github.com/users/codingnirvana/following{/other_user}","gists_url":"https://api.github.com/users/codingnirvana/gists{/gist_id}","starred_url":"https://api.github.com/users/codingnirvana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codingnirvana/subscriptions","organizations_url":"https://api.github.com/users/codingnirvana/orgs","repos_url":"https://api.github.com/users/codingnirvana/repos","events_url":"https://api.github.com/users/codingnirvana/events{/privacy}","received_events_url":"https://api.github.com/users/codingnirvana/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-05-28T06:52:44Z","updated_at":"2015-05-03T10:35:36Z","closed_at":null,"body":"TODO - Explain the use case \r\n\r\nWe have 7 pipelines, containing 40 stages that run when we need to push data to production. These pipelines together form our production data refresh group and run for 16 - 18 hours. \r\n\r\nWe are working on a dashboard that gives us a view of this entire group in a summarized format. As part of the dashboard, we need a way to get the estimated time remaining for the entire group to finish at any point of time.\r\n\r\nIt will be good to get this via an API. We are currently using the last pipeline run. We would like to use the estimated time that Go uses rather than coming up with our own logic. \r\n\r\nA related issue - https://github.com/gocd/gocd/issues/205"},"comment":{"url":"https://api.github.com/repos/ind9/gocd/issues/comments/98466586","html_url":"https://github.com/ind9/gocd/issues/4#issuecomment-98466586","issue_url":"https://api.github.com/repos/ind9/gocd/issues/4","id":98466586,"user":{"login":"codingnirvana","id":1348422,"avatar_url":"https://avatars.githubusercontent.com/u/1348422?v=3","gravatar_id":"","url":"https://api.github.com/users/codingnirvana","html_url":"https://github.com/codingnirvana","followers_url":"https://api.github.com/users/codingnirvana/followers","following_url":"https://api.github.com/users/codingnirvana/following{/other_user}","gists_url":"https://api.github.com/users/codingnirvana/gists{/gist_id}","starred_url":"https://api.github.com/users/codingnirvana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codingnirvana/subscriptions","organizations_url":"https://api.github.com/users/codingnirvana/orgs","repos_url":"https://api.github.com/users/codingnirvana/repos","events_url":"https://api.github.com/users/codingnirvana/events{/privacy}","received_events_url":"https://api.github.com/users/codingnirvana/received_events","type":"User","site_admin":false},"created_at":"2015-05-03T10:35:36Z","updated_at":"2015-05-03T10:35:36Z","body":"Is this a new API or any new fields added to the response in the latest release? From the examples I could not figure out the fields that can give me the raw information to calculate the estimated time.\r\n\r\nWhat we were looking for was a single field in the jobs API that exposes the estimated time that Go itself uses to show the progress bars. When we ended up using raw job run times to calculate this oursevles, we had to take care of things like - filtering outlier job times, use only the last X runs, ignore failure run times etc. What we have works but we would have preferred using the estimate from Go.\r\n\r\n"}}