From 5de0dd7bd586e90da750d8ea7ee2019e8e448ecb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simonas=20=C5=A0erlinskas?= <simonas.serlinskas@nfq.com>
Date: Wed, 7 Sep 2016 11:02:35 +0300
Subject: [PATCH] add moving average agg

---
 .../Pipeline/MovingAverageAggregation.php     | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 src/Aggregation/Pipeline/MovingAverageAggregation.php

diff --git a/src/Aggregation/Pipeline/MovingAverageAggregation.php b/src/Aggregation/Pipeline/MovingAverageAggregation.php
new file mode 100644
index 0000000..e93fdc5
--- /dev/null
+++ b/src/Aggregation/Pipeline/MovingAverageAggregation.php
@@ -0,0 +1,28 @@
+<?php
+
+/*
+ * This file is part of the ONGR package.
+ *
+ * (c) NFQ Technologies UAB <info@nfq.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace ONGR\ElasticsearchDSL\Aggregation\Pipeline;
+
+/**
+ * Class representing Max Bucket Pipeline Aggregation.
+ *
+ * @link https://goo.gl/8gIfok
+ */
+class MovingAverageAggregation extends AbstractPipelineAggregation
+{
+    /**
+     * {@inheritdoc}
+     */
+    public function getType()
+    {
+        return 'moving_avg';
+    }
+}
-- 
GitLab