{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/13128","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/13128/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/13128/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/13128/events","html_url":"https://github.com/elastic/elasticsearch/pull/13128","id":103337189,"number":13128,"title":"Add `stats_bucket` / `extended_stats_bucket` pipeline aggs","user":{"login":"polyfractal","id":1224228,"avatar_url":"https://avatars.githubusercontent.com/u/1224228?v=3","gravatar_id":"","url":"https://api.github.com/users/polyfractal","html_url":"https://github.com/polyfractal","followers_url":"https://api.github.com/users/polyfractal/followers","following_url":"https://api.github.com/users/polyfractal/following{/other_user}","gists_url":"https://api.github.com/users/polyfractal/gists{/gist_id}","starred_url":"https://api.github.com/users/polyfractal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polyfractal/subscriptions","organizations_url":"https://api.github.com/users/polyfractal/orgs","repos_url":"https://api.github.com/users/polyfractal/repos","events_url":"https://api.github.com/users/polyfractal/events{/privacy}","received_events_url":"https://api.github.com/users/polyfractal/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Aggregations","name":":Aggregations","color":"009800"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/feature","name":"feature","color":"328a58"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/v2.1.0","name":"v2.1.0","color":"dddddd"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-26T18:35:10Z","updated_at":"2015-09-01T19:04:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elastic/elasticsearch/pulls/13128","html_url":"https://github.com/elastic/elasticsearch/pull/13128","diff_url":"https://github.com/elastic/elasticsearch/pull/13128.diff","patch_url":"https://github.com/elastic/elasticsearch/pull/13128.patch"},"body":"These are the complements to the stats/extended_stats metric aggregations, and can be used\r\nto calculate a variety of statistics over buckets\r\n\r\nPretty straight forward addition, but a few notes:\r\n\r\n- These extend `metrics.stats.InternalStats` & `metrics.stats.extended.ExtendedInternalStats` to reduce copy/paste of basically the same code\r\n- The pipeline aggs register the stream of their specific internal representation (see `StatsBucketPipelineAggregator.registerStreams()` for example).  I thought this was cleaner than cluttering up the SearchModule registration list with 2x registrations for each, but happy to change if this is too indirect\r\n- Provides two interfaces (`StatsBucket` & `ExtendedStatsBucket`) which are basically just identical subclasses of the metric versions.  Thought it would still be good to have these for the end-user.\r\n\r\n/cc @colings86 if you have some spare time, no rush though."},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/136829287","html_url":"https://github.com/elastic/elasticsearch/pull/13128#issuecomment-136829287","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/13128","id":136829287,"user":{"login":"polyfractal","id":1224228,"avatar_url":"https://avatars.githubusercontent.com/u/1224228?v=3","gravatar_id":"","url":"https://api.github.com/users/polyfractal","html_url":"https://github.com/polyfractal","followers_url":"https://api.github.com/users/polyfractal/followers","following_url":"https://api.github.com/users/polyfractal/following{/other_user}","gists_url":"https://api.github.com/users/polyfractal/gists{/gist_id}","starred_url":"https://api.github.com/users/polyfractal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polyfractal/subscriptions","organizations_url":"https://api.github.com/users/polyfractal/orgs","repos_url":"https://api.github.com/users/polyfractal/repos","events_url":"https://api.github.com/users/polyfractal/events{/privacy}","received_events_url":"https://api.github.com/users/polyfractal/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T19:04:04Z","updated_at":"2015-09-01T19:04:04Z","body":"Comments addressed!"}}