Skip to content

Commit 50c21b4

Browse files
committed
[7.x] Add Boxplot aggregation
1 parent 1b09073 commit 50c21b4

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

elasticsearch_dsl/aggs.py

+4
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,10 @@ class ExtendedStats(Agg):
306306
name = "extended_stats"
307307

308308

309+
class Boxplot(Agg):
310+
name = "boxplot"
311+
312+
309313
class GeoBounds(Agg):
310314
name = "geo_bounds"
311315

test_elasticsearch_dsl/test_aggs.py

+6
Original file line numberDiff line numberDiff line change
@@ -266,3 +266,9 @@ def test_geotile_grid_aggregation():
266266
a = aggs.GeotileGrid(**{"field": "centroid", "precision": 3})
267267

268268
assert {"geotile_grid": {"field": "centroid", "precision": 3}} == a.to_dict()
269+
270+
271+
def test_boxplot_aggregation():
272+
a = aggs.Boxplot(field="load_time")
273+
274+
assert {"boxplot": {"field": "load_time"}} == a.to_dict()

0 commit comments

Comments
 (0)