Skip to content

Commit b647525

Browse files
authored
[8.0] Add more doc_ids for ML URLs (#1305) (#1307)
1 parent fa94eab commit b647525

File tree

19 files changed

+225
-186
lines changed

19 files changed

+225
-186
lines changed

output/schema/schema.json

+161-128
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_doc_ids/table.csv

+15-16
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,12 @@ logstash-api-put-pipeline,/guide/en/elasticsearch/reference/current/logstash-api
141141
docs-multi-get,/guide/en/elasticsearch/reference/8.0/docs-multi-get.html
142142
migration-api-deprecation,/guide/en/elasticsearch/reference/current/migration-api-deprecation.html
143143
migration-api-feature-upgrade,/guide/en/elasticsearch/reference/current/migration-api-feature-upgrade.html
144-
ml-close-job,/guide/en/elasticsearch/reference/current/ml-close-job.html
145-
ml-delete-calendar,/guide/en/elasticsearch/reference/current/ml-delete-calendar.html
146-
ml-delete-calendar-event,/guide/en/elasticsearch/reference/current/ml-delete-calendar-event.html
147-
ml-delete-calendar-job,/guide/en/elasticsearch/reference/current/ml-delete-calendar-job.html
148-
delete-dfanalytics,/guide/en/elasticsearch/reference/current/delete-dfanalytics.html
149-
ml-delete-datafeed,/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html
144+
ml-close-job,https://www.elastic.co/guide/en/elasticsearch/reference/8.0/ml-close-job.html
145+
ml-delete-calendar,https://www.elastic.co/guide/en/elasticsearch/reference/8.0/ml-delete-calendar.html
146+
ml-delete-calendar-event,https://www.elastic.co/guide/en/elasticsearch/reference/8.0/ml-delete-calendar-event.html
147+
ml-delete-calendar-job,https://www.elastic.co/guide/en/elasticsearch/reference/8.0/ml-delete-calendar-job.html
148+
ml-delete-dfanalytics,https://www.elastic.co/guide/en/elasticsearch/reference/8.0/delete-dfanalytics.html
149+
ml-delete-datafeed,https://www.elastic.co/guide/en/elasticsearch/reference/8.0/ml-delete-datafeed.html
150150
ml-delete-expired-data,/guide/en/elasticsearch/reference/current/ml-delete-expired-data.html
151151
ml-delete-filter,/guide/en/elasticsearch/reference/current/ml-delete-filter.html
152152
ml-delete-forecast,/guide/en/elasticsearch/reference/current/ml-delete-forecast.html
@@ -186,7 +186,7 @@ preview-dfanalytics,/guide/en/elasticsearch/reference/current/preview-dfanalytic
186186
ml-preview-datafeed,/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html
187187
ml-put-calendar,/guide/en/elasticsearch/reference/current/ml-put-calendar.html
188188
ml-put-calendar-job,/guide/en/elasticsearch/reference/current/ml-put-calendar-job.html
189-
put-dfanalytics,/guide/en/elasticsearch/reference/current/put-dfanalytics.html
189+
put-dfanalytics,https://www.elastic.co/guide/en/elasticsearch/reference/8.0/put-dfanalytics.html
190190
ml-put-datafeed,/guide/en/elasticsearch/reference/current/ml-put-datafeed.html
191191
ml-put-filter,/guide/en/elasticsearch/reference/current/ml-put-filter.html
192192
ml-put-job,/guide/en/elasticsearch/reference/current/ml-put-job.html
@@ -336,7 +336,7 @@ search-rank-eval,/guide/en/elasticsearch/reference/current/search-rank-eval.html
336336
paginate-search-results,/guide/en/elasticsearch/reference/current/paginate-search-results.html
337337
sort-search-results,/guide/en/elasticsearch/reference/current/sort-search-results.html
338338
query-dsl-mlt-query,/guide/en/elasticsearch/reference/current/query-dsl-mlt-query.html
339-
query-dsl,/guide/en/elasticsearch/reference/current/query-dsl.html
339+
query-dsl,https://www.elastic.co/guide/en/elasticsearch/reference/8.0/query-dsl.html
340340
common-options,/guide/en/elasticsearch/reference/current/common-options.html
341341
indices-create-data-stream,/guide/en/elasticsearch/reference/current/indices-create-data-stream.html
342342
mapping-date-format,/guide/en/elasticsearch/reference/7.x/mapping-date-format.html
@@ -346,7 +346,8 @@ modules-node,/guide/en/elasticsearch/reference/current/modules-node.html
346346
search-aggregations-bucket-count-ks-test-aggregation,/guide/en/elasticsearch/reference/current/search-aggregations-bucket-count-ks-test-aggregation.html
347347
search-aggregations-bucket-correlation-aggregation,/guide/en/elasticsearch/reference/current/search-aggregations-bucket-correlation-aggregation.html
348348
search-aggregations-bucket-categorize-text-aggregation,/guide/en/elasticsearch/reference/current/search-aggregations-bucket-categorize-text-aggregation.html
349-
ml-feature-importance,/guide/en/machine-learning/7.12/ml-feature-importance.html
349+
search-aggregations-pipeline-bucket-path,https://www.elastic.co/guide/en/elasticsearch/reference/8.0/search-aggregations-pipeline.html#buckets-path-syntax
350+
ml-feature-importance,https://www.elastic.co/guide/en/machine-learning/8.0/ml-feature-importance.html
350351
analysis-normalizers,/guide/en/elasticsearch/reference/current/analysis-normalizers.html
351352
geo-shape,/guide/en/elasticsearch/reference/current/geo-shape.html
352353
shape,/guide/en/elasticsearch/reference/current/shape.html
@@ -364,13 +365,11 @@ cluster,/guide/en/elasticsearch/reference/current/cluster.html
364365
eql-syntax,/guide/en/elasticsearch/reference/current/eql-syntax.html
365366
eql,/guide/en/elasticsearch/reference/current/eql.html
366367
index-modules,/guide/en/elasticsearch/reference/7.8/index-modules.html
367-
ml-classification,/guide/en/machine-learning/current/dfa-classification.html
368-
ml-regression,/guide/en/machine-learning/current/dfa-regression.html
369-
ml-job-resource,/guide/en/elasticsearch/reference/current/ml-job-resource.html
370-
ml-settings,/guide/en/elasticsearch/reference/current/ml-settings.html
371-
cluster-nodes-stats,/guide/en/elasticsearch/reference/current/cluster-nodes-stats.html
372-
ml-settings,/guide/en/elasticsearch/reference/8.0/ml-settings.html
373-
ml-finding-anomalies,/guide/en/machine-learning/8.0/ml-ad-finding-anomalies.html
368+
ml-classification,https://www.elastic.co/guide/en/machine-learning/8.0/ml-dfa-classification.html
369+
ml-regression,https://www.elastic.co/guide/en/machine-learning/8.0/ml-dfa-regression.html
370+
ml-regression-loss,https://www.elastic.co/guide/en/machine-learning/8.0/dfa-regression-lossfunction.html
371+
ml-settings,https://www.elastic.co/guide/en/elasticsearch/reference/8.0/ml-settings.html
372+
ml-model-snapshots,https://www.elastic.co/guide/en/machine-learning/8.0/ml-ad-run-jobs.html#ml-ad-model-snapshots
374373
indexing-buffer,/guide/en/elasticsearch/reference/8.0/indexing-buffer.html
375374
field-and-document-access-control,/guide/en/elasticsearch/reference/current/field-and-document-access-control.html
376375
run-as-privilege,/guide/en/elasticsearch/reference/current/run-as-privilege.html

specification/_types/aggregations/pipeline.ts

+8-5
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ import { Aggregation } from './Aggregation'
2626

2727
export class BucketPathAggregation extends Aggregation {
2828
/**
29-
* Path to the buckets that contain one set of values to correlate. For syntax, see [buckets_path Syntax](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline.html#buckets-path-syntax).
29+
* Path to the buckets that contain one set of values to correlate.
30+
* @doc_id search-aggregations-pipeline-bucket-path
3031
*/
3132
buckets_path?: BucketsPath
3233
}
@@ -167,8 +168,9 @@ export class RegressionInferenceOptions {
167168
/** The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. */
168169
results_field?: Field
169170
/**
170-
* Specifies the maximum number of feature importance values per document. By default, it is zero and no feature importance calculation occurs.
171-
* @doc_url https://www.elastic.co/guide/en/machine-learning/7.12/ml-feature-importance.html
171+
* Specifies the maximum number of feature importance values per document.
172+
* @doc_id ml-feature-importance
173+
* @server_default 0
172174
*/
173175
num_top_feature_importance_values?: integer
174176
}
@@ -177,8 +179,9 @@ export class ClassificationInferenceOptions {
177179
/** Specifies the number of top class predictions to return. Defaults to 0. */
178180
num_top_classes?: integer
179181
/**
180-
* Specifies the maximum number of feature importance values per document. By default, it is zero and no feature importance calculation occurs.
181-
* @doc_url https://www.elastic.co/guide/en/machine-learning/7.12/ml-feature-importance.html
182+
* Specifies the maximum number of feature importance values per document.
183+
* @server_default 0
184+
* @doc_id ml-feature-importance
182185
*/
183186
num_top_feature_importance_values?: integer
184187
/** Specifies the type of the predicted field to write. Acceptable values are: string, number, boolean. When boolean is provided 1.0 is transformed to true and 0.0 to false. */

specification/ml/_types/DataframeAnalytics.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class DataframeAnalyticsSource {
4040
index: Indices
4141
/**
4242
* The Elasticsearch query domain-specific language (DSL). This value corresponds to the query object in an Elasticsearch search POST body. All the options that are supported by Elasticsearch can be used, as this object is passed verbatim to Elasticsearch. By default, this property has the following value: {"match_all": {}}.
43-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
43+
* @doc_id query-dsl
4444
*/
4545
query?: QueryContainer
4646
/**
@@ -84,17 +84,17 @@ export class DataframeAnalyticsDestination {
8484
export class DataframeAnalysisContainer {
8585
/**
8686
* The configuration information necessary to perform classification.
87-
* @doc_url https://www.elastic.co/guide/en/machine-learning/current/dfa-classification.html
87+
* @doc_id ml-classification
8888
*/
8989
classification?: DataframeAnalysisClassification
9090
/**
9191
* The configuration information necessary to perform outlier detection. NOTE: Advanced parameters are for fine-tuning classification analysis. They are set automatically by hyperparameter optimization to give the minimum validation error. It is highly recommended to use the default values unless you fully understand the function of these parameters.
92-
* @doc_url https://www.elastic.co/guide/en/machine-learning/current/dfa-classification.html
92+
* @doc_id ml-classification
9393
*/
9494
outlier_detection?: DataframeAnalysisOutlierDetection
9595
/**
9696
* The configuration information necessary to perform regression. NOTE: Advanced parameters are for fine-tuning regression analysis. They are set automatically by hyperparameter optimization to give the minimum validation error. It is highly recommended to use the default values unless you fully understand the function of these parameters.
97-
* @doc_url https://www.elastic.co/guide/en/machine-learning/current/dfa-regression.html
97+
* @doc_id ml-regression
9898
*/
9999
regression?: DataframeAnalysisRegression
100100
}

specification/ml/_types/ModelPlot.ts

-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
import { OverloadOf } from '@spec_utils/behaviors'
2121
import { Field } from '@_types/common'
2222

23-
/**
24-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-job-resource.html#ml-apimodelplotconfig
25-
*/
2623
export class ModelPlotConfig {
2724
/**
2825
* If true, enables calculation and storage of the model change annotations for each entity that is being analyzed.

specification/ml/_types/TrainedModel.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class TrainedModelStats {
4141
inference_stats?: TrainedModelInferenceStats
4242
/**
4343
* A collection of ingest stats for the model across all nodes. The values are summations of the individual node statistics. The format matches the ingest section in Nodes stats.
44-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-stats.html
44+
* @doc_id cluster-nodes-stats
4545
*/
4646
ingest?: Dictionary<string, UserDefinedValue> // TODO -- this is not complete
4747
}
@@ -53,7 +53,7 @@ export class TrainedModelInferenceStats {
5353
inference_count: long
5454
/**
5555
* The number of times the model was loaded for inference and was not retrieved from the cache. If this number is close to the inference_count, then the cache is not being appropriately used. This can be solved by increasing the cache size or its time-to-live (TTL). See General machine learning settings for the appropriate settings.
56-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-settings.html#general-ml-settings
56+
* @doc_id ml-settings
5757
*/
5858
cache_miss_count: long
5959
/** The number of inference calls where all the training features for the model were missing. */
@@ -114,7 +114,7 @@ export class TrainedModelConfigMetadata {
114114
export class Hyperparameter {
115115
/**
116116
* A positive number showing how much the parameter influences the variation of the loss function. For hyperparameters with values that are not specified by the user but tuned during hyperparameter optimization.
117-
* @doc_url https://www.elastic.co/guide/en/machine-learning/7.12/dfa-regression.html#dfa-regression-lossfunction
117+
* @doc_id ml-regression-loss
118118
*/
119119
absolute_importance?: double
120120
/** Name of the hyperparameter. */

specification/ml/close_job/MlCloseJobRequest.ts

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import { Time } from '@_types/Time'
3131
* @since 5.4.0
3232
* @stability stable
3333
* @cluster_privileges manage_ml
34+
* @doc_id ml-close-job
3435
*/
3536
export interface Request extends RequestBase {
3637
path_parts: {

specification/ml/delete_calendar/MlDeleteCalendarRequest.ts

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import { Id } from '@_types/common'
2626
* @since 6.2.0
2727
* @stability stable
2828
* @cluster_privileges manage_ml
29+
* @doc_id ml-delete-calendar
2930
*/
3031
export interface Request extends RequestBase {
3132
path_parts: {

specification/ml/delete_calendar_event/MlDeleteCalendarEventRequest.ts

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import { Id } from '@_types/common'
2525
* @rest_spec_name ml.delete_calendar_event
2626
* @since 6.2.0
2727
* @stability stable
28+
* @doc_id ml-delete-calendar-event
2829
*/
2930
export interface Request extends RequestBase {
3031
path_parts: {

specification/ml/delete_calendar_job/MlDeleteCalendarJobRequest.ts

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import { Id } from '@_types/common'
2626
* @since 6.2.0
2727
* @stability stable
2828
* @cluster_privileges manage_ml
29+
* @doc_id ml-delete-calendar-job
2930
*/
3031
export interface Request extends RequestBase {
3132
path_parts: {

specification/ml/delete_data_frame_analytics/MlDeleteDataFrameAnalyticsRequest.ts

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import { Time } from '@_types/Time'
2727
* @since 7.3.0
2828
* @stability stable
2929
* @cluster_privileges manage_ml
30+
* @doc_id ml-delete-dfanalytics
3031
*/
3132
export interface Request extends RequestBase {
3233
path_parts: {

specification/ml/delete_datafeed/MlDeleteDatafeedRequest.ts

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import { Id } from '@_types/common'
2626
* @since 5.4.0
2727
* @stability stable
2828
* @cluster_privileges manage_ml
29+
* @doc_id ml-delete-datafeed
2930
*/
3031
export interface Request extends RequestBase {
3132
path_parts: {

specification/ml/evaluate_data_frame/MlEvaluateDataFrameRequest.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ export interface Request extends RequestBase {
4444
*/
4545
index: IndexName
4646
/**
47-
* A query clause that retrieves a subset of data from the source index. See [QueryDSL](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html).
47+
* A query clause that retrieves a subset of data from the source index.
48+
* @doc_id query-dsl
4849
*/
4950
query?: QueryContainer
5051
}

specification/ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsRequest.ts

+11-11
Original file line numberDiff line numberDiff line change
@@ -72,20 +72,20 @@ export interface Request extends RequestBase {
7272
description?: string
7373
/**
7474
* The approximate maximum amount of memory resources that are permitted for
75-
* analytical processing. The default value for data frame analytics jobs is
76-
* 1gb. If your elasticsearch.yml file contains an
77-
* xpack.ml.max_model_memory_limit setting, an error occurs when you try to
78-
* create data frame analytics jobs that have model_memory_limit values
75+
* analytical processing. If your `elasticsearch.yml` file contains an
76+
* `xpack.ml.max_model_memory_limit` setting, an error occurs when you try to
77+
* create data frame analytics jobs that have `model_memory_limit` values
7978
* greater than that setting.
80-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-settings.html
79+
* @server_default 1gb
80+
* @doc_id ml-settings
8181
*/
8282
model_memory_limit?: string
8383
/**
84-
* The maximum number of threads to be used by the analysis. The default
85-
* value is 1. Using more threads may decrease the time necessary to
86-
* complete the analysis at the cost of using more CPU. Note that the
87-
* process may use additional threads for operational functionality other
88-
* than the analysis itself.
84+
* The maximum number of threads to be used by the analysis. Using more
85+
* threads may decrease the time necessary to complete the analysis at the
86+
* cost of using more CPU. Note that the process may use additional threads
87+
* for operational functionality other than the analysis itself.
88+
* @server_default 1
8989
*/
9090
max_num_threads?: integer
9191
/**
@@ -100,7 +100,7 @@ export interface Request extends RequestBase {
100100
* Specifies whether this job can start when there is insufficient machine
101101
* learning node capacity for it to be immediately assigned to a node.
102102
* @server_default false
103-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-settings.html#advanced-ml-settings
103+
* @doc_id ml-settings
104104
*/
105105
allow_lazy_start?: boolean
106106
}

specification/ml/get_trained_models/MlGetTrainedModelResponse.ts

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import { integer } from '@_types/Numeric'
2424
* Response codes
2525
* 400 - If include_model_definition is true, this code indicates that more than one models match the ID pattern.
2626
* 404 (Missing resources) - If allow_no_match is false, this code indicates that there are no resources that match the request or only partial matches for the request.
27-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models.html#ml-get-trained-models-results
2827
*/
2928
export class Response {
3029
body: {

specification/ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsRequest.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ export interface Request extends RequestBase {
3737
}
3838
body: {
3939
/**
40-
* A data frame analytics config as described in Create data frame analytics
41-
* jobs. Note that id and dest don’t need to be provided in the context of
40+
* A data frame analytics config as described in create data frame analytics
41+
* jobs. Note that `id` and `dest` don’t need to be provided in the context of
4242
* this API.
43-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/put-dfanalytics.html
43+
* @doc_id put-dfanalytics
4444
*/
4545
config?: DataframePreviewConfig
4646
}

specification/ml/put_data_frame_analytics/MlPutDataFrameAnalyticsRequest.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import { integer } from '@_types/Numeric'
3636
* @stability stable
3737
* @cluster_privileges manage_ml
3838
* @index_privileges create_index, index, manage, read, view_index_metadata
39+
* @doc_id put-dfanalytics
3940
*/
4041
export interface Request extends RequestBase {
4142
path_parts: {
@@ -50,14 +51,14 @@ export interface Request extends RequestBase {
5051
/**
5152
* Specifies whether this job can start when there is insufficient machine
5253
* learning node capacity for it to be immediately assigned to a node. If
53-
* set to false and a machine learning node with capacity to run the job
54-
* cannot be immediately found, the API returns an error. If set to true,
54+
* set to `false` and a machine learning node with capacity to run the job
55+
* cannot be immediately found, the API returns an error. If set to `true`,
5556
* the API does not return an error; the job waits in the `starting` state
5657
* until sufficient machine learning node capacity is available. This
5758
* behavior is also affected by the cluster-wide
5859
* `xpack.ml.max_lazy_ml_nodes` setting.
5960
* @server_default false
60-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-settings.html#advanced-ml-settings
61+
* @doc_id ml-settings
6162
*/
6263
allow_lazy_start?: boolean
6364
/**

specification/ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsRequest.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ export interface Request extends RequestBase {
4545
description?: string
4646
/**
4747
* The approximate maximum amount of memory resources that are permitted for
48-
* analytical processing. The default value for data frame analytics jobs is
49-
* 1gb. If your elasticsearch.yml file contains an
48+
* analytical processing. If your `elasticsearch.yml` file contains an
5049
* `xpack.ml.max_model_memory_limit` setting, an error occurs when you try
51-
* to create data frame analytics jobs that have model_memory_limit values
50+
* to create data frame analytics jobs that have `model_memory_limit` values
5251
* greater than that setting.
53-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-settings.html
52+
* @server_default 1gb
53+
* @doc_id ml-settings
5454
*/
5555
model_memory_limit?: string
5656
/**
@@ -65,7 +65,7 @@ export interface Request extends RequestBase {
6565
* Specifies whether this job can start when there is insufficient machine
6666
* learning node capacity for it to be immediately assigned to a node.
6767
* @server_default false
68-
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-settings.html#advanced-ml-settings
68+
* @doc_id ml-settings
6969
*/
7070
allow_lazy_start?: boolean
7171
}

0 commit comments

Comments
 (0)