graphql-compose-elasticsearch
Version:
Elastic search via GraphQL
24 lines • 981 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAvgBucketITC = void 0;
const utils_1 = require("../../../utils");
function getAvgBucketITC(opts) {
const name = (0, utils_1.getTypeName)('AggsAvgBucket', opts);
const description = (0, utils_1.desc)(`
A sibling pipeline aggregation which calculates the (mean) average value
of a specified metric in a sibling aggregation. The specified metric must
be numeric and the sibling aggregation must be a multi-bucket aggregation.
[Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-avg-bucket-aggregation.html)
`);
return opts.getOrCreateITC(name, () => ({
name,
description,
fields: {
buckets_path: 'String!',
gap_policy: 'String',
format: 'String',
},
}));
}
exports.getAvgBucketITC = getAvgBucketITC;
//# sourceMappingURL=AvgBucket.js.map