Fix missing downsampling name in kairos plugin

This commit is contained in:
Zachary Musgrave 2015-10-07 16:43:40 -07:00
parent f11785001c
commit a94720878b

View File

@ -284,6 +284,10 @@ function (angular, _, dateMath, kbn) {
query.aggregators = [];
if (target.downsampling !== '(NONE)') {
if (target.downsampling === undefined) {
target.downsampling = 'avg';
target.sampling = '10s';
}
query.aggregators.push({
name: target.downsampling,
align_sampling: true,