Skip to content

Commit 6501338

Browse files
authored
[DOCS] Remove redundant results from ML APIs (#50477)
1 parent 244e6d2 commit 6501338

19 files changed

+459
-418
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ Deletes {anomaly-jobs} from a calendar.
2424
==== {api-path-parms-title}
2525

2626
`<calendar_id>`::
27-
(Required, string) Identifier for the calendar.
27+
(Required, string) Identifier for the calendar.
2828

2929
`<job_id>`::
30-
(Required, string) An identifier for the {anomaly-jobs}. It can be a job
31-
identifier, a group name, or a comma-separated list of jobs or groups.
30+
(Required, string)
31+
include::{docdir}/ml/ml-shared.asciidoc[tag=job-id-anomaly-detection-list]
3232

3333
[[ml-delete-calendar-job-example]]
3434
==== {api-examples-title}

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,14 @@ For more information, see
4141
==== {api-path-parms-title}
4242

4343
`<forecast_id>`::
44-
(Optional, string) A comma-separated list of forecast identifiers.
45-
If you do not specify this optional parameter or if you specify `_all`, the
46-
API deletes all forecasts from the job.
44+
(Optional, string) A comma-separated list of forecast identifiers. If you do not
45+
specify this optional parameter or if you specify `_all`, the API deletes all
46+
forecasts from the job.
4747

4848
`<job_id>`::
49-
(Required, string) Required. Identifier for the job.
49+
(Required, string)
50+
include::{docdir}/ml/ml-shared.asciidoc[tag=job-id-anomaly-detection]
51+
5052

5153
[[ml-delete-forecast-query-parms]]
5254
==== {api-query-parms-title}

docs/reference/ml/anomaly-detection/apis/get-bucket.asciidoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,9 @@ include::{docdir}/ml/ml-shared.asciidoc[tag=exclude-interim-results]
6363
`expand`::
6464
(Optional, boolean) If true, the output includes anomaly records.
6565

66-
`page`::
67-
`page`.`from`:::
66+
`page`.`from`::
6867
(Optional, integer) Skips the specified number of buckets.
69-
`page`.`size`:::
68+
`page`.`size`::
7069
(Optional, integer) Specifies the maximum number of buckets to obtain.
7170

7271
`sort`::

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

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,27 +56,24 @@ For more information, see
5656
[[ml-get-calendar-event-results]]
5757
==== {api-response-body-title}
5858

59-
The API returns the following information:
59+
The API returns an array of scheduled event resources, which have the
60+
following properties:
6061

61-
`events`::
62-
(array) An array of scheduled event resources. An events resource has the
63-
following properties:
64-
65-
`calendar_id`:::
62+
`calendar_id`::
6663
(string) An identifier for the calendar that contains the scheduled
6764
event.
6865

69-
`description`:::
66+
`description`::
7067
(string) A description of the scheduled event.
7168

72-
`end_time`:::
69+
`end_time`::
7370
(date) The timestamp for the end of the scheduled event
7471
in milliseconds since the epoch or ISO 8601 format.
7572

76-
`event_id`:::
73+
`event_id`::
7774
(string) An automatically-generated identifier for the scheduled event.
7875

79-
`start_time`:::
76+
`start_time`::
8077
(date) The timestamp for the beginning of the scheduled event
8178
in milliseconds since the epoch or ISO 8601 format.
8279

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

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,27 +40,24 @@ For more information, see
4040
[[ml-get-calendar-request-body]]
4141
==== {api-request-body-title}
4242

43-
`page`::
44-
`from`:::
43+
`page`.`from`::
4544
(Optional, integer) Skips the specified number of calendars.
4645

47-
`size`:::
46+
`page`.`size`::
4847
(Optional, integer) Specifies the maximum number of calendars to obtain.
4948

5049
[[ml-get-calendar-results]]
5150
==== {api-response-body-title}
5251

53-
The API returns the following information:
52+
The API returns an array of calendar resources, which have the following
53+
properties:
5454

55-
`calendars`::
56-
(array) An array of calendar resources. A calendar resource has the following
57-
properties:
58-
`calendar_id`:::
59-
(string) A numerical character string that uniquely identifies the calendar.
55+
`calendar_id`::
56+
(string) A numerical character string that uniquely identifies the calendar.
6057

61-
`job_ids`:::
62-
(array) An array of {anomaly-job} identifiers. For example:
63-
`["total-requests"]`.
58+
`job_ids`::
59+
(array) An array of {anomaly-job} identifiers. For example:
60+
`["total-requests"]`.
6461

6562
[[ml-get-calendar-example]]
6663
==== {api-examples-title}

docs/reference/ml/anomaly-detection/apis/get-category.asciidoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,9 @@ parameter, the API returns information about all categories in the {anomaly-job}
5353
[[ml-get-category-request-body]]
5454
==== {api-request-body-title}
5555

56-
`page`::
57-
`page`.`from`:::
56+
`page`.`from`::
5857
(Optional, integer) Skips the specified number of categories.
59-
`page`.`size`:::
58+
`page`.`size`::
6059
(Optional, integer) Specifies the maximum number of categories to obtain.
6160

6261
[[ml-get-category-results]]
@@ -72,7 +71,8 @@ The API returns an array of category objects, which have the following propertie
7271

7372
`grok_pattern`::
7473
experimental[] (string) A Grok pattern that could be used in {ls} or an ingest
75-
pipeline to extract fields from messages that match the category. This field is experimental and may be changed or removed in a future release. The Grok
74+
pipeline to extract fields from messages that match the category. This field is
75+
experimental and may be changed or removed in a future release. The Grok
7676
patterns that are found are not optimal, but are often a good starting point for
7777
manual tweaking.
7878

docs/reference/ml/anomaly-detection/apis/get-datafeed-stats.asciidoc

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,11 @@ IMPORTANT: This API returns a maximum of 10,000 {dfeeds}.
4747
`<feed_id>`::
4848
(Optional, string)
4949
include::{docdir}/ml/ml-shared.asciidoc[tag=datafeed-id-wildcard]
50+
+
51+
--
5052
If you do not specify one of these options, the API returns information about
5153
all {dfeeds}.
54+
--
5255

5356
[[ml-get-datafeed-stats-query-parms]]
5457
==== {api-query-parms-title}
@@ -72,13 +75,14 @@ informational; you cannot update their values.
7275
include::{docdir}/ml/ml-shared.asciidoc[tag=datafeed-id]
7376

7477
`node`::
75-
(object) For started {dfeeds} only, the node upon which the {dfeed} is started. The {dfeed} and job will be on the same node.
76-
`id`::: The unique identifier of the node. For example, "0-o0tOoRTwKFZifatTWKNw".
77-
`name`::: The node name. For example, `0-o0tOo`.
78-
`ephemeral_id`::: The node ephemeral ID.
79-
`transport_address`::: The host and port where transport HTTP connections are
78+
(object) For started {dfeeds} only, the node upon which the {dfeed} is started.
79+
The {dfeed} and job will be on the same node.
80+
`node`.`id`::: The unique identifier of the node. For example, "0-o0tOoRTwKFZifatTWKNw".
81+
`node`.`name`::: The node name. For example, `0-o0tOo`.
82+
`node`.`ephemeral_id`::: The node ephemeral ID.
83+
`node`.`transport_address`::: The host and port where transport HTTP connections are
8084
accepted. For example, `127.0.0.1:9300`.
81-
`attributes`::: For example, `{"ml.machine_memory": "17179869184"}`.
85+
`node`.`attributes`::: For example, `{"ml.machine_memory": "17179869184"}`.
8286

8387
`state`::
8488
(string) The status of the {dfeed}, which can be one of the following values:
@@ -95,10 +99,10 @@ this {dfeed}.
9599
//average_search_time_per_bucket_ms
96100
//bucket_count
97101
//exponential_average_search_time_per_hour_ms
98-
`job_id`:::
102+
`timing_stats`.`job_id`:::
99103
include::{docdir}/ml/ml-shared.asciidoc[tag=job-id-anomaly-detection]
100-
`search_count`::: Number of searches performed by this {dfeed}.
101-
`total_search_time_ms`::: Total time the {dfeed} spent searching in milliseconds.
104+
`timing_stats`.`search_count`::: Number of searches performed by this {dfeed}.
105+
`timing_stats`.`total_search_time_ms`::: Total time the {dfeed} spent searching in milliseconds.
102106

103107

104108
[[ml-get-datafeed-stats-response-codes]]

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

Lines changed: 5 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,11 @@ IMPORTANT: This API returns a maximum of 10,000 {dfeeds}.
4444
`<feed_id>`::
4545
(Optional, string)
4646
include::{docdir}/ml/ml-shared.asciidoc[tag=datafeed-id-wildcard]
47+
+
48+
--
4749
If you do not specify one of these options, the API returns information about
4850
all {dfeeds}.
51+
--
4952

5053
[[ml-get-datafeed-query-parms]]
5154
==== {api-query-parms-title}
@@ -57,56 +60,8 @@ include::{docdir}/ml/ml-shared.asciidoc[tag=allow-no-datafeeds]
5760
[[ml-get-datafeed-results]]
5861
==== {api-response-body-title}
5962

60-
The API returns an array of {dfeed} resources, which have the following
61-
properties:
62-
63-
`aggregations`::
64-
(object)
65-
include::{docdir}/ml/ml-shared.asciidoc[tag=aggregations]
66-
67-
`chunking_config`::
68-
(object)
69-
include::{docdir}/ml/ml-shared.asciidoc[tag=chunking-config]
70-
71-
`datafeed_id`::
72-
(string)
73-
include::{docdir}/ml/ml-shared.asciidoc[tag=datafeed-id]
74-
75-
`delayed_data_check_config`::
76-
(object)
77-
include::{docdir}/ml/ml-shared.asciidoc[tag=delayed-data-check-config]
78-
79-
`frequency`::
80-
(<<time-units,time units>>)
81-
include::{docdir}/ml/ml-shared.asciidoc[tag=frequency]
82-
83-
`indices`::
84-
(array)
85-
include::{docdir}/ml/ml-shared.asciidoc[tag=indices]
86-
87-
`job_id`::
88-
(string)
89-
include::{docdir}/ml/ml-shared.asciidoc[tag=job-id-datafeed]
90-
91-
`max_empty_searches`::
92-
(integer)
93-
include::{docdir}/ml/ml-shared.asciidoc[tag=max-empty-searches]
94-
95-
`query`::
96-
(object)
97-
include::{docdir}/ml/ml-shared.asciidoc[tag=query]
98-
99-
`query_delay`::
100-
(<<time-units,time units>>)
101-
include::{docdir}/ml/ml-shared.asciidoc[tag=query-delay]
102-
103-
`script_fields`::
104-
(object)
105-
include::{docdir}/ml/ml-shared.asciidoc[tag=script-fields]
106-
107-
`scroll_size`::
108-
(unsigned integer)
109-
include::{docdir}/ml/ml-shared.asciidoc[tag=scroll-size]
63+
The API returns an array of {dfeed} resources. For the full list of properties,
64+
see <<ml-put-datafeed-request-body,create {dfeeds} API>>.
11065

11166
[[ml-get-datafeed-response-codes]]
11267
==== {api-response-codes-title}

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

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,28 +37,26 @@ You can get a single filter or all filters. For more information, see
3737
[[ml-get-filter-query-parms]]
3838
==== {api-query-parms-title}
3939

40-
`from`:::
40+
`from`::
4141
(Optional, integer) Skips the specified number of filters.
4242

43-
`size`:::
43+
`size`::
4444
(Optional, integer) Specifies the maximum number of filters to obtain.
4545

4646
[[ml-get-filter-results]]
4747
==== {api-response-body-title}
4848

49-
The API returns the following information:
50-
51-
`filters`::
52-
(array) An array of filter resources. A filter resource has the following
53-
properties:
54-
`filter_id`:::
55-
(string) A string that uniquely identifies the filter.
49+
The API returns an array of filter resources, which have the following
50+
properties:
5651

57-
`description`:::
58-
(string) A description of the filter.
52+
`description`::
53+
(string) A description of the filter.
54+
55+
`filter_id`::
56+
(string) A string that uniquely identifies the filter.
5957

60-
`items`:::
61-
(array of strings) An array of strings which is the filter item list.
58+
`items`::
59+
(array of strings) An array of strings which is the filter item list.
6260

6361
[[ml-get-filter-example]]
6462
==== {api-examples-title}

docs/reference/ml/anomaly-detection/apis/get-influencer.asciidoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,9 @@ include::{docdir}/ml/ml-shared.asciidoc[tag=exclude-interim-results]
5555
(Optional, double) Returns influencers with anomaly scores greater than or
5656
equal to this value.
5757

58-
`page`::
59-
`from`:::
58+
`page`.`from`::
6059
(Optional, integer) Skips the specified number of influencers.
61-
`size`:::
60+
`page`.`size`::
6261
(Optional, integer) Specifies the maximum number of influencers to obtain.
6362

6463
`sort`::

0 commit comments

Comments
 (0)