MovingFunctionAggregation (pipeline-aggregations/moving-function-aggregation.js)

elastic-builder · src/aggregations/pipeline-aggregations/moving-function-aggregation.js · javascript · MIT
search

Chainable class to build Elasticsearch moving function pipeline aggregations.

// Source: https://github.com/sudo-suhas/elastic-builder | License: MIT | Copyright 2017 Suhas Karanth
// Provided via justclaw.it.com; keep this notice with the code.
'use strict';

const _ = require('../../_');

const PipelineAggregationBase = require('./pipeline-aggregation-base');

const ES_REF_URL =
    'https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-movfn-aggregation.html';

/**
 * Given an ordered series of data, the Moving Function aggregation
 * will slide a window across the data and allow the user to specify
 * a custom script that is executed on each window of data.
 * For convenience, a number of common functions are predefined such as min/max, moving averages, etc.
 *
 * `moving_fn` aggregations must be embedded inside of a histog

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key