Skip to content

Commit 6d50c9f

Browse files
committed
API generation
1 parent 32f3fef commit 6d50c9f

7 files changed

+62
-10
lines changed

api/api/cat.ml_datafeeds.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function buildCatMlDatafeeds (opts) {
2828

2929
/**
3030
* Perform a cat.ml_datafeeds request
31-
* http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html
31+
* http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-datafeeds.html
3232
*/
3333
return function catMlDatafeeds (params, options, callback) {
3434
options = options || {}

api/api/cat.ml_jobs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function buildCatMlJobs (opts) {
2929

3030
/**
3131
* Perform a cat.ml_jobs request
32-
* http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html
32+
* http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-anomaly-detectors.html
3333
*/
3434
return function catMlJobs (params, options, callback) {
3535
options = options || {}

api/api/cat.ml_trained_models.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function buildCatMlTrainedModels (opts) {
3131

3232
/**
3333
* Perform a cat.ml_trained_models request
34-
* https://www.elastic.co/guide/en/elasticsearch/reference/current/get-inference-stats.html
34+
* https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-trained-model.html
3535
*/
3636
return function catMlTrainedModels (params, options, callback) {
3737
options = options || {}

api/api/ml.put_datafeed.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,17 @@ function buildMlPutDatafeed (opts) {
1212
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
1313

1414
const acceptedQuerystring = [
15-
15+
'ignore_unavailable',
16+
'allow_no_indices',
17+
'ignore_throttled',
18+
'expand_wildcards'
1619
]
1720

1821
const snakeCase = {
19-
22+
ignoreUnavailable: 'ignore_unavailable',
23+
allowNoIndices: 'allow_no_indices',
24+
ignoreThrottled: 'ignore_throttled',
25+
expandWildcards: 'expand_wildcards'
2026
}
2127

2228
/**

api/api/ml.update_datafeed.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,17 @@ function buildMlUpdateDatafeed (opts) {
1212
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
1313

1414
const acceptedQuerystring = [
15-
15+
'ignore_unavailable',
16+
'allow_no_indices',
17+
'ignore_throttled',
18+
'expand_wildcards'
1619
]
1720

1821
const snakeCase = {
19-
22+
ignoreUnavailable: 'ignore_unavailable',
23+
allowNoIndices: 'allow_no_indices',
24+
ignoreThrottled: 'ignore_throttled',
25+
expandWildcards: 'expand_wildcards'
2026
}
2127

2228
/**

api/requestParams.d.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1893,6 +1893,10 @@ export interface MlPutDataFrameAnalytics<T = any> extends Generic {
18931893

18941894
export interface MlPutDatafeed<T = any> extends Generic {
18951895
datafeed_id: string;
1896+
ignore_unavailable?: boolean;
1897+
allow_no_indices?: boolean;
1898+
ignore_throttled?: boolean;
1899+
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
18961900
body: T;
18971901
}
18981902

@@ -1954,6 +1958,10 @@ export interface MlStopDatafeed extends Generic {
19541958

19551959
export interface MlUpdateDatafeed<T = any> extends Generic {
19561960
datafeed_id: string;
1961+
ignore_unavailable?: boolean;
1962+
allow_no_indices?: boolean;
1963+
ignore_throttled?: boolean;
1964+
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
19571965
body: T;
19581966
}
19591967

docs/reference.asciidoc

+35-3
Original file line numberDiff line numberDiff line change
@@ -5370,7 +5370,7 @@ client.cat.mlDatafeeds({
53705370
v: boolean
53715371
})
53725372
----
5373-
link:{ref}/ml-get-datafeed-stats.html[Documentation] +
5373+
link:{ref}/cat-datafeeds.html[Documentation] +
53745374
[cols=2*]
53755375
|===
53765376
|`datafeed_id` or `datafeedId`
@@ -5415,7 +5415,7 @@ client.cat.mlJobs({
54155415
v: boolean
54165416
})
54175417
----
5418-
link:{ref}/ml-get-job-stats.html[Documentation] +
5418+
link:{ref}/cat-anomaly-detectors.html[Documentation] +
54195419
[cols=2*]
54205420
|===
54215421
|`job_id` or `jobId`
@@ -5465,7 +5465,7 @@ client.cat.mlTrainedModels({
54655465
v: boolean
54665466
})
54675467
----
5468-
link:{ref}/get-inference-stats.html[Documentation] +
5468+
link:{ref}/cat-trained-model.html[Documentation] +
54695469
[cols=2*]
54705470
|===
54715471
|`model_id` or `modelId`
@@ -7584,6 +7584,10 @@ link:{ref}/put-dfanalytics.html[Documentation] +
75847584
----
75857585
client.ml.putDatafeed({
75867586
datafeed_id: string,
7587+
ignore_unavailable: boolean,
7588+
allow_no_indices: boolean,
7589+
ignore_throttled: boolean,
7590+
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all',
75877591
body: object
75887592
})
75897593
----
@@ -7593,6 +7597,18 @@ link:{ref}/ml-put-datafeed.html[Documentation] +
75937597
|`datafeed_id` or `datafeedId`
75947598
|`string` - The ID of the datafeed to create
75957599

7600+
|`ignore_unavailable` or `ignoreUnavailable`
7601+
|`boolean` - Ignore unavailable indexes (default: false)
7602+
7603+
|`allow_no_indices` or `allowNoIndices`
7604+
|`boolean` - Ignore if the source indices expressions resolves to no concrete indices (default: true)
7605+
7606+
|`ignore_throttled` or `ignoreThrottled`
7607+
|`boolean` - Ignore indices that are marked as throttled (default: true)
7608+
7609+
|`expand_wildcards` or `expandWildcards`
7610+
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether source index expressions should get expanded to open or closed indices (default: open)
7611+
75967612
|`body`
75977613
|`object` - The datafeed config
75987614

@@ -7827,6 +7843,10 @@ link:{ref}/ml-stop-datafeed.html[Documentation] +
78277843
----
78287844
client.ml.updateDatafeed({
78297845
datafeed_id: string,
7846+
ignore_unavailable: boolean,
7847+
allow_no_indices: boolean,
7848+
ignore_throttled: boolean,
7849+
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all',
78307850
body: object
78317851
})
78327852
----
@@ -7836,6 +7856,18 @@ link:{ref}/ml-update-datafeed.html[Documentation] +
78367856
|`datafeed_id` or `datafeedId`
78377857
|`string` - The ID of the datafeed to update
78387858

7859+
|`ignore_unavailable` or `ignoreUnavailable`
7860+
|`boolean` - Ignore unavailable indexes (default: false)
7861+
7862+
|`allow_no_indices` or `allowNoIndices`
7863+
|`boolean` - Ignore if the source indices expressions resolves to no concrete indices (default: true)
7864+
7865+
|`ignore_throttled` or `ignoreThrottled`
7866+
|`boolean` - Ignore indices that are marked as throttled (default: true)
7867+
7868+
|`expand_wildcards` or `expandWildcards`
7869+
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether source index expressions should get expanded to open or closed indices (default: open)
7870+
78397871
|`body`
78407872
|`object` - The datafeed update settings
78417873

0 commit comments

Comments
 (0)