Skip to content

Commit cc1442e

Browse files
authored
Merge pull request #149 from saimaz/patch-moving-average-aggregation
Add moving average agg
2 parents 7a30c1c + 5de0dd7 commit cc1442e

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the ONGR package.
5+
*
6+
* (c) NFQ Technologies UAB <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace ONGR\ElasticsearchDSL\Aggregation\Pipeline;
13+
14+
/**
15+
* Class representing Max Bucket Pipeline Aggregation.
16+
*
17+
* @link https://goo.gl/8gIfok
18+
*/
19+
class MovingAverageAggregation extends AbstractPipelineAggregation
20+
{
21+
/**
22+
* {@inheritdoc}
23+
*/
24+
public function getType()
25+
{
26+
return 'moving_avg';
27+
}
28+
}

0 commit comments

Comments
 (0)