Repository: elastic/elasticsearch-dsl-py

Issue:
Add support for "geo_line" metrics aggregation
`elasticsearch_dsl/aggs.py` is missing "geo_line" metrics aggregation which is introduced in v7.11.0. [Geo-Line aggregation](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-geo-line.html)

Discussion:

Patch:
diff --git a/elasticsearch_dsl/aggs.py b/elasticsearch_dsl/aggs.py
index 61a27f3..11612fb 100644
--- a/elasticsearch_dsl/aggs.py
+++ b/elasticsearch_dsl/aggs.py
@@ -329,6 +329,10 @@ class GeoBounds(Agg):
     name = "geo_bounds"
 
 
+class GeoLine(Agg):
+    name = "geo_line"
+
+
 class Max(Agg):
     name = "max"
 


Test patch:
diff --git a/tests/test_aggs.py b/tests/test_aggs.py
index 3278928..16c2ad5 100644
--- a/tests/test_aggs.py
+++ b/tests/test_aggs.py
@@ -334,6 +334,17 @@ def test_t_test_aggregation():
     } == a.to_dict()
 
 
+def test_geo_line_aggregation():
+    a = aggs.GeoLine(point={"field": "centroid"}, sort={"field": "date"})
+
+    assert {
+        "geo_line": {
+            "point": {"field": "centroid"},
+            "sort": {"field": "date"},
+        },
+    } == a.to_dict()
+
+
 def test_inference_aggregation():
     a = aggs.Inference(model_id="model-id", buckets_path={"agg_name": "agg_name"})
     assert {