{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/kibana/issues/2646","labels_url":"https://api.github.com/repos/elastic/kibana/issues/2646/labels{/name}","comments_url":"https://api.github.com/repos/elastic/kibana/issues/2646/comments","events_url":"https://api.github.com/repos/elastic/kibana/issues/2646/events","html_url":"https://github.com/elastic/kibana/issues/2646","id":54444296,"number":2646,"title":"scripted metric aggregation","user":{"login":"doubret","id":8885703,"avatar_url":"https://avatars.githubusercontent.com/u/8885703?v=3","gravatar_id":"","url":"https://api.github.com/users/doubret","html_url":"https://github.com/doubret","followers_url":"https://api.github.com/users/doubret/followers","following_url":"https://api.github.com/users/doubret/following{/other_user}","gists_url":"https://api.github.com/users/doubret/gists{/gist_id}","starred_url":"https://api.github.com/users/doubret/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doubret/subscriptions","organizations_url":"https://api.github.com/users/doubret/orgs","repos_url":"https://api.github.com/users/doubret/repos","events_url":"https://api.github.com/users/doubret/events{/privacy}","received_events_url":"https://api.github.com/users/doubret/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/kibana/labels/elasticsearch","name":"elasticsearch","color":"006600"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-01-15T12:34:05Z","updated_at":"2015-04-27T14:34:45Z","closed_at":null,"body":"Hi,\r\n\r\nAre you planning to support scripted metric aggregation in a near future ?\r\nI would like this to compute a ratio between to aggregations.\r\nThe first aggegation is NbClicks, the second is NbPrints, and i would like to output the ratio NbPrints / NbClicks.\r\n\r\nWith a scripted metric aggregation it would be easy to do, but if you know a way to do it without let me know please.\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/elastic/kibana/issues/comments/96677943","html_url":"https://github.com/elastic/kibana/issues/2646#issuecomment-96677943","issue_url":"https://api.github.com/repos/elastic/kibana/issues/2646","id":96677943,"user":{"login":"fabiangebert","id":1464747,"avatar_url":"https://avatars.githubusercontent.com/u/1464747?v=3","gravatar_id":"","url":"https://api.github.com/users/fabiangebert","html_url":"https://github.com/fabiangebert","followers_url":"https://api.github.com/users/fabiangebert/followers","following_url":"https://api.github.com/users/fabiangebert/following{/other_user}","gists_url":"https://api.github.com/users/fabiangebert/gists{/gist_id}","starred_url":"https://api.github.com/users/fabiangebert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabiangebert/subscriptions","organizations_url":"https://api.github.com/users/fabiangebert/orgs","repos_url":"https://api.github.com/users/fabiangebert/repos","events_url":"https://api.github.com/users/fabiangebert/events{/privacy}","received_events_url":"https://api.github.com/users/fabiangebert/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T14:34:45Z","updated_at":"2015-04-27T14:34:45Z","body":"+1"}}