@@ -47,7 +47,6 @@ buildRestTests.expectedUnconvertedCandidates = [
4747 ' en/watcher/trigger/schedule/yearly.asciidoc' ,
4848 ' en/watcher/troubleshooting.asciidoc' ,
4949 ' en/rest-api/ml/delete-snapshot.asciidoc' ,
50- ' en/rest-api/ml/forecast.asciidoc' ,
5150 ' en/rest-api/ml/get-bucket.asciidoc' ,
5251 ' en/rest-api/ml/get-job-stats.asciidoc' ,
5352 ' en/rest-api/ml/get-overall-buckets.asciidoc' ,
@@ -56,7 +55,6 @@ buildRestTests.expectedUnconvertedCandidates = [
5655 ' en/rest-api/ml/get-influencer.asciidoc' ,
5756 ' en/rest-api/ml/get-snapshot.asciidoc' ,
5857 ' en/rest-api/ml/post-data.asciidoc' ,
59- ' en/rest-api/ml/preview-datafeed.asciidoc' ,
6058 ' en/rest-api/ml/revert-snapshot.asciidoc' ,
6159 ' en/rest-api/ml/update-snapshot.asciidoc' ,
6260 ' en/rest-api/watcher/stats.asciidoc' ,
@@ -296,7 +294,9 @@ setups['farequote_index'] = '''
296294 responsetime:
297295 type: float
298296 airline:
299- type: keyword
297+ type: keyword
298+ doc_count:
299+ type: integer
300300'''
301301setups[' farequote_data' ] = setups[' farequote_index' ] + '''
302302 - do:
@@ -306,11 +306,11 @@ setups['farequote_data'] = setups['farequote_index'] + '''
306306 refresh: true
307307 body: |
308308 {"index": {"_id":"1"}}
309- {"airline":"JZA","responsetime":990.4628,"time":"2016-02-07T00:00:00+0000"}
309+ {"airline":"JZA","responsetime":990.4628,"time":"2016-02-07T00:00:00+0000", "doc_count": 5 }
310310 {"index": {"_id":"2"}}
311- {"airline":"JBU","responsetime":877.5927,"time":"2016-02-07T00:00:00+0000"}
311+ {"airline":"JBU","responsetime":877.5927,"time":"2016-02-07T00:00:00+0000", "doc_count": 23 }
312312 {"index": {"_id":"3"}}
313- {"airline":"KLM","responsetime":1355.4812,"time":"2016-02-07T00:00:00+0000"}
313+ {"airline":"KLM","responsetime":1355.4812,"time":"2016-02-07T00:00:00+0000", "doc_count": 42 }
314314'''
315315setups[' farequote_job' ] = setups[' farequote_data' ] + '''
316316 - do:
@@ -332,6 +332,16 @@ setups['farequote_job'] = setups['farequote_data'] + '''
332332 }
333333 }
334334'''
335+ setups[' farequote_datafeed' ] = setups[' farequote_job' ] + '''
336+ - do:
337+ xpack.ml.put_datafeed:
338+ datafeed_id: "datafeed-farequote"
339+ body: >
340+ {
341+ "job_id":"farequote",
342+ "indexes":"farequote"
343+ }
344+ '''
335345setups[' server_metrics_index' ] = '''
336346 - do:
337347 indices.create:
0 commit comments