forked from fullscale/elastic.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
124 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
@class | ||
<p>A single-value metrics aggregation that keeps track and returns the | ||
minimum value among numeric values extracted from the aggregated documents. | ||
These values can be extracted either from specific numeric fields in the | ||
documents, or be generated by a provided script.</p> | ||
@name ejs.MinAggregation | ||
@ejs aggregation | ||
@borrows ejs.MetricsAggregationMixin.field as field | ||
@borrows ejs.MetricsAggregationMixin.script as script | ||
@borrows ejs.MetricsAggregationMixin.lang as lang | ||
@borrows ejs.MetricsAggregationMixin.scriptValuesSorted as scriptValuesSorted | ||
@borrows ejs.MetricsAggregationMixin.params as params | ||
@borrows ejs.MetricsAggregationMixin.aggregation as aggregation | ||
@borrows ejs.MetricsAggregationMixin.agg as agg | ||
@borrows ejs.MetricsAggregationMixin._type as _type | ||
@borrows ejs.MetricsAggregationMixin.toJSON as toJSON | ||
@desc | ||
<p>Aggregation that keeps track and returns the minimum value among numeric | ||
values extracted from the aggregated documents.</p> | ||
@param {String} name The name which be used to refer to this aggregation. | ||
*/ | ||
ejs.MinAggregation = function (name) { | ||
|
||
var | ||
_common = ejs.MetricsAggregationMixin(name, 'min'), | ||
agg = _common.toJSON(); | ||
|
||
return _common; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters