Skip to content

Commit c7408a2

Browse files
committed
[DOCS] Minor fixes in ML APIs
1 parent 427bf37 commit c7408a2

32 files changed

+37
-110
lines changed

docs/reference/ml/anomaly-detection/apis/close-job.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ The following example closes the `total-requests` job:
9292

9393
[source,console]
9494
--------------------------------------------------
95-
POST _ml/anomaly_detectors/total-requests/_close
95+
POST _ml/anomaly_detectors/low_request_rate/_close
9696
--------------------------------------------------
97-
// TEST[skip:sometimes fails due to https://github.com/elastic/elasticsearch/pull/48583#issuecomment-552991325 - on unmuting use setup:server_metrics_openjob-raw]
97+
// TEST[skip:sometimes fails due to https://github.com/elastic/elasticsearch/pull/48583#issuecomment-552991325]
9898

9999
When the job is closed, you receive the following results:
100100

docs/reference/ml/anomaly-detection/apis/delete-calendar-event.asciidoc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ events and delete the calendar, see the
4040
[[ml-delete-calendar-event-example]]
4141
==== {api-examples-title}
4242

43-
The following example deletes a scheduled event from the `planned-outages`
44-
calendar:
45-
4643
[source,console]
4744
--------------------------------------------------
4845
DELETE _ml/calendars/planned-outages/events/LS8LJGEBMTCMA-qz49st

docs/reference/ml/anomaly-detection/apis/delete-calendar-job.asciidoc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ include::{docdir}/ml/ml-shared.asciidoc[tag=job-id-anomaly-detection-list]
3333
[[ml-delete-calendar-job-example]]
3434
==== {api-examples-title}
3535

36-
The following example removes the association between the `planned-outages`
37-
calendar and `total-requests` job:
38-
3936
[source,console]
4037
--------------------------------------------------
4138
DELETE _ml/calendars/planned-outages/jobs/total-requests

docs/reference/ml/anomaly-detection/apis/delete-calendar.asciidoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ calendar.
3535
[[ml-delete-calendar-example]]
3636
==== {api-examples-title}
3737

38-
The following example deletes the `planned-outages` calendar:
39-
4038
[source,console]
4139
--------------------------------------------------
4240
DELETE _ml/calendars/planned-outages

docs/reference/ml/anomaly-detection/apis/delete-datafeed.asciidoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ quicker than stopping and deleting the {dfeed}.
4141
[[ml-delete-datafeed-example]]
4242
==== {api-examples-title}
4343

44-
The following example deletes the `datafeed-total-requests` {dfeed}:
45-
4644
[source,console]
4745
--------------------------------------------------
4846
DELETE _ml/datafeeds/datafeed-total-requests

docs/reference/ml/anomaly-detection/apis/delete-filter.asciidoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ update or delete the job before you can delete the filter.
3636
[[ml-delete-filter-example]]
3737
==== {api-examples-title}
3838

39-
The following example deletes the `safe_domains` filter:
40-
4139
[source,console]
4240
--------------------------------------------------
4341
DELETE _ml/filters/safe_domains

docs/reference/ml/anomaly-detection/apis/delete-forecast.asciidoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ include::{docdir}/ml/ml-shared.asciidoc[tag=job-id-anomaly-detection]
6767
[[ml-delete-forecast-example]]
6868
==== {api-examples-title}
6969

70-
The following example deletes all forecasts from the `total-requests` job:
71-
7270
[source,console]
7371
--------------------------------------------------
7472
DELETE _ml/anomaly_detectors/total-requests/_forecast/_all

docs/reference/ml/anomaly-detection/apis/delete-job.asciidoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ include::{docdir}/ml/ml-shared.asciidoc[tag=job-id-anomaly-detection]
5656
[[ml-delete-job-example]]
5757
==== {api-examples-title}
5858

59-
The following example deletes the `total-requests` job:
60-
6159
[source,console]
6260
--------------------------------------------------
6361
DELETE _ml/anomaly_detectors/total-requests

docs/reference/ml/anomaly-detection/apis/delete-snapshot.asciidoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ include::{docdir}/ml/ml-shared.asciidoc[tag=snapshot-id]
4040
[[ml-delete-snapshot-example]]
4141
==== {api-examples-title}
4242

43-
The following example deletes the `1491948163` snapshot:
44-
4543
[source,console]
4644
--------------------------------------------------
4745
DELETE _ml/anomaly_detectors/farequote/model_snapshots/1491948163

docs/reference/ml/anomaly-detection/apis/flush-job.asciidoc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,14 @@ include::{docdir}/ml/ml-shared.asciidoc[tag=job-id-anomaly-detection]
6767
[[ml-flush-job-example]]
6868
==== {api-examples-title}
6969

70-
The following example flushes the `total-requests` job:
71-
7270
[source,console]
7371
--------------------------------------------------
74-
POST _ml/anomaly_detectors/total-requests/_flush
72+
POST _ml/anomaly_detectors/low_request_rate/_flush
7573
{
7674
"calc_interim": true
7775
}
7876
--------------------------------------------------
79-
// TEST[skip:setup:server_metrics_openjob]
77+
// TEST[skip:Kibana sample data]
8078

8179
When the operation succeeds, you receive the following results:
8280

0 commit comments

Comments
 (0)