Remove legacy functions

This commit is contained in:
Alexander Zobnin
2021-05-27 14:21:29 +03:00
parent 43e9527a0f
commit 39e112394e

View File

@@ -124,6 +124,16 @@ addFuncDef({
// Aggregate // Aggregate
addFuncDef({
name: 'aggregateBy',
category: 'Aggregate',
params: [
{ name: 'interval', type: 'string' },
{ name: 'function', type: 'string', options: ['avg', 'min', 'max', 'sum', 'count', 'median', 'first', 'last'] }
],
defaultParams: ['1m', 'avg'],
});
addFuncDef({ addFuncDef({
name: 'sumSeries', name: 'sumSeries',
category: 'Aggregate', category: 'Aggregate',
@@ -131,24 +141,6 @@ addFuncDef({
defaultParams: [], defaultParams: [],
}); });
addFuncDef({
name: 'median',
category: 'Aggregate',
params: [
{ name: 'interval', type: 'string'}
],
defaultParams: ['1m'],
});
addFuncDef({
name: 'average',
category: 'Aggregate',
params: [
{ name: 'interval', type: 'string' }
],
defaultParams: ['1m'],
});
addFuncDef({ addFuncDef({
name: 'percentileAgg', name: 'percentileAgg',
category: 'Aggregate', category: 'Aggregate',
@@ -159,52 +151,6 @@ addFuncDef({
defaultParams: ['1m', 95], defaultParams: ['1m', 95],
}); });
addFuncDef({
name: 'min',
category: 'Aggregate',
params: [
{ name: 'interval', type: 'string' }
],
defaultParams: ['1m'],
});
addFuncDef({
name: 'max',
category: 'Aggregate',
params: [
{ name: 'interval', type: 'string' }
],
defaultParams: ['1m'],
});
addFuncDef({
name: 'sum',
category: 'Aggregate',
params: [
{ name: 'interval', type: 'string' }
],
defaultParams: ['1m'],
});
addFuncDef({
name: 'count',
category: 'Aggregate',
params: [
{ name: 'interval', type: 'string' }
],
defaultParams: ['1m'],
});
addFuncDef({
name: 'aggregateBy',
category: 'Aggregate',
params: [
{ name: 'interval', type: 'string' },
{ name: 'function', type: 'string', options: ['avg', 'min', 'max', 'sum', 'count', 'median', 'first', 'last'] }
],
defaultParams: ['1m', 'avg'],
});
// Filter // Filter
addFuncDef({ addFuncDef({