Skip to content

Commit 32394ce

Browse files
committed
[DOCS] Test ML foreast API
1 parent 9068d45 commit 32394ce

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

x-pack/docs/build.gradle

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ buildRestTests.expectedUnconvertedCandidates = [
4848
'en/watcher/trigger/schedule/yearly.asciidoc',
4949
'en/watcher/troubleshooting.asciidoc',
5050
'en/rest-api/ml/delete-snapshot.asciidoc',
51-
'en/rest-api/ml/forecast.asciidoc',
5251
'en/rest-api/ml/get-bucket.asciidoc',
5352
'en/rest-api/ml/get-job-stats.asciidoc',
5453
'en/rest-api/ml/get-overall-buckets.asciidoc',
@@ -60,11 +59,6 @@ buildRestTests.expectedUnconvertedCandidates = [
6059
'en/rest-api/ml/preview-datafeed.asciidoc',
6160
'en/rest-api/ml/revert-snapshot.asciidoc',
6261
'en/rest-api/ml/update-snapshot.asciidoc',
63-
<<<<<<< HEAD
64-
=======
65-
'en/rest-api/ml/validate-detector.asciidoc',
66-
'en/rest-api/security/authenticate.asciidoc',
67-
>>>>>>> [DOCS] Test validate job API
6862
'en/rest-api/watcher/stats.asciidoc',
6963
'en/watcher/example-watches/watching-time-series-data.asciidoc',
7064
]

x-pack/docs/en/rest-api/ml/forecast.asciidoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<titleabbrev>Forecast Jobs</titleabbrev>
66
++++
77

8-
Predict the future behavior of a time series by using historical behavior.
8+
Predicts the future behavior of a time series by using its historical behavior.
99

1010
==== Request
1111

@@ -62,7 +62,7 @@ POST _xpack/ml/anomaly_detectors/total-requests/_forecast
6262
}
6363
--------------------------------------------------
6464
// CONSOLE
65-
// TEST[skip:todo]
65+
// TEST[setup:server_metrics_openjob]
6666

6767
When the forecast is created, you receive the following results:
6868
[source,js]
@@ -72,7 +72,7 @@ When the forecast is created, you receive the following results:
7272
"forecast_id": "wkCWa2IB2lF8nSE_TzZo"
7373
}
7474
----
75+
// TESTRESPONSE[s/"forecast_id": "wkCWa2IB2lF8nSE_TzZo"/"forecast_id": $body.forecast_id/]
7576

7677
You can subsequently see the forecast in the *Single Metric Viewer* in {kib}.
77-
//and in the results that you retrieve by using {ml} APIs such as the
78-
//<<ml-get-bucket,get bucket API>> and <<ml-get-record,get records API>>.
78+

0 commit comments

Comments
 (0)