Added/updated snippets for docs (#2318)
This commit is contained in:
28
docs/doc_examples/7106e6317e6368b9863cf64df9c6f0c9.asciidoc
Normal file
28
docs/doc_examples/7106e6317e6368b9863cf64df9c6f0c9.asciidoc
Normal file
@ -0,0 +1,28 @@
|
||||
// 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.transform.putTransform({
|
||||
transform_id: "ecommerce_transform2",
|
||||
source: {
|
||||
index: "kibana_sample_data_ecommerce",
|
||||
},
|
||||
latest: {
|
||||
unique_key: ["customer_id"],
|
||||
sort: "order_date",
|
||||
},
|
||||
description: "Latest order for each customer",
|
||||
dest: {
|
||||
index: "kibana_sample_data_ecommerce_transform2",
|
||||
},
|
||||
frequency: "5m",
|
||||
sync: {
|
||||
time: {
|
||||
field: "order_date",
|
||||
delay: "60s",
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user