File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
x-pack/plugin/src/test/resources/rest-api-spec/test/ml Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -418,8 +418,10 @@ setup:
418418 "job_id":"runtime-field-aggregation-job",
419419 "indexes":"airline-data",
420420 "runtime_mappings" : {
421- "type": "double",
422- "script": "emit(doc['responsetime'].value * 2.0)"
421+ "responsetime_x_2": {
422+ "type": "double",
423+ "script": "emit(doc['responsetime'].value * 2.0)"
424+ }
423425 },
424426 "aggregations": {
425427 "buckets": {
@@ -450,7 +452,11 @@ setup:
450452 }
451453 }
452454 }
453- - length : { $body: 30 }
455+
456+ - do :
457+ ml.preview_datafeed :
458+ datafeed_id : aggregation-doc-count-feed
459+ - length : { $body: 3 }
454460 - match : { 0.time: 1487377800000 }
455461 - match : { 0.airline: foo }
456462 - match : { 0.responsetime_x_2: 4.0 }
You can’t perform that action at this time.
0 commit comments