Auto-generated code for 8.15 (#2350)

This commit is contained in:
Elastic Machine
2024-08-26 19:57:17 +01:00
committed by GitHub
parent 242b4227ee
commit 411f379006
7 changed files with 65 additions and 16 deletions

View File

@ -0,0 +1,12 @@
// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
[source, js]
----
const response = await client.cluster.allocationExplain({
index: "my-index",
shard: 0,
primary: false,
});
console.log(response);
----

View File

@ -0,0 +1,16 @@
// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
[source, js]
----
const response = await client.slm.putLifecycle({
policy_id: "hourly-snapshots",
schedule: "1h",
name: "<hourly-snap-{now/d}>",
repository: "my_repository",
config: {
indices: ["data-*", "important"],
},
});
console.log(response);
----

View File

@ -0,0 +1,21 @@
// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
[source, js]
----
const response = await client.indices.putIndexTemplate({
name: "template",
index_patterns: ["my-data-stream*"],
data_stream: {},
priority: 500,
template: {
lifecycle: {
data_retention: "7d",
},
},
_meta: {
description: "Template with data stream lifecycle",
},
});
console.log(response);
----

View File

@ -0,0 +1,13 @@
// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
[source, js]
----
const response = await client.cluster.putSettings({
persistent: {
"data_streams.lifecycle.retention.default": "7d",
"data_streams.lifecycle.retention.max": "90d",
},
});
console.log(response);
----

View File

@ -1332,6 +1332,7 @@ If the index has a default ingest pipeline specified, then setting the value to
If a final pipeline is configured it will always run, regardless of the value of this parameter.
** *`preference` (Optional, string)*: Specifies the node or shard the operation should be performed on.
Random by default.
** *`q` (Optional, string)*: Query in the Lucene query string syntax.
** *`refresh` (Optional, boolean)*: If `true`, Elasticsearch refreshes affected shards to make the operation visible to search.
** *`request_cache` (Optional, boolean)*: If `true`, the request cache is used for this request.
** *`requests_per_second` (Optional, float)*: The throttle for this request in sub-requests per second.