Auto-generated code for main (#2351)
Co-authored-by: Josh Mock <joshua.mock@elastic.co>
This commit is contained in:
12
docs/doc_examples/14a33c364873c2f930ca83d0a3005389.asciidoc
Normal file
12
docs/doc_examples/14a33c364873c2f930ca83d0a3005389.asciidoc
Normal 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);
|
||||
----
|
||||
16
docs/doc_examples/2e09666d3ad5ad9afc22763ee6e97a2b.asciidoc
Normal file
16
docs/doc_examples/2e09666d3ad5ad9afc22763ee6e97a2b.asciidoc
Normal 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);
|
||||
----
|
||||
21
docs/doc_examples/8f2875d976332cf5da8fb7764097a307.asciidoc
Normal file
21
docs/doc_examples/8f2875d976332cf5da8fb7764097a307.asciidoc
Normal 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);
|
||||
----
|
||||
13
docs/doc_examples/e7cfe670b4177d1011076f845ec2916c.asciidoc
Normal file
13
docs/doc_examples/e7cfe670b4177d1011076f845ec2916c.asciidoc
Normal 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);
|
||||
----
|
||||
Reference in New Issue
Block a user