Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOCS] Skips testing for forecast API #31439

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion x-pack/docs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ buildRestTests.expectedUnconvertedCandidates = [
'en/rest-api/license/update-license.asciidoc',
'en/ml/api-quickref.asciidoc',
'en/rest-api/ml/delete-snapshot.asciidoc',
'en/rest-api/ml/forecast.asciidoc',
'en/rest-api/ml/get-bucket.asciidoc',
'en/rest-api/ml/get-job-stats.asciidoc',
'en/rest-api/ml/get-overall-buckets.asciidoc',
Expand Down Expand Up @@ -439,6 +438,11 @@ setups['server_metrics_startdf'] = setups['server_metrics_openjob'] + '''
xpack.ml.start_datafeed:
datafeed_id: "datafeed-total-requests"
'''
setups['server_metrics_flush'] = setups['server_metrics_startdf'] + '''
- do:
xpack.ml.flush_job:
job_id: "total-requests"
'''
setups['calendar_outages'] = '''
- do:
xpack.ml.put_calendar:
Expand Down
7 changes: 3 additions & 4 deletions x-pack/docs/en/rest-api/ml/forecast.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<titleabbrev>Forecast Jobs</titleabbrev>
++++

Predict the future behavior of a time series by using historical behavior.
Predicts the future behavior of a time series by using historical behavior.

==== Request

Expand Down Expand Up @@ -62,7 +62,7 @@ POST _xpack/ml/anomaly_detectors/total-requests/_forecast
}
--------------------------------------------------
// CONSOLE
// TEST[skip:todo]
// TEST[setup:server_metrics_flush]

When the forecast is created, you receive the following results:
[source,js]
Expand All @@ -72,7 +72,6 @@ When the forecast is created, you receive the following results:
"forecast_id": "wkCWa2IB2lF8nSE_TzZo"
}
----
// TESTRESPONSE[s/"forecast_id": "wkCWa2IB2lF8nSE_TzZo"/"forecast_id": $body.forecast_id/]

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