Merge pull request #2898 from zachm/ztm_patch_missing_downsample
Fix missing downsampling name in kairos plugin
This commit is contained in:
@@ -284,6 +284,10 @@ function (angular, _, dateMath, kbn) {
|
|||||||
query.aggregators = [];
|
query.aggregators = [];
|
||||||
|
|
||||||
if (target.downsampling !== '(NONE)') {
|
if (target.downsampling !== '(NONE)') {
|
||||||
|
if (target.downsampling === undefined) {
|
||||||
|
target.downsampling = 'avg';
|
||||||
|
target.sampling = '10s';
|
||||||
|
}
|
||||||
query.aggregators.push({
|
query.aggregators.push({
|
||||||
name: target.downsampling,
|
name: target.downsampling,
|
||||||
align_sampling: true,
|
align_sampling: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user