Files
elasticsearch-js/docs/doc_examples/9116ee8a5b00cc877291ed5559563f24.asciidoc
2024-07-29 17:10:05 -05:00

38 lines
605 B
Plaintext

// 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.watcher.putWatch({
id: "my_watch",
trigger: {
schedule: {
yearly: {
in: "february",
on: 29,
at: "noon",
},
},
},
input: {
simple: {
payload: {
send: "yes",
},
},
},
condition: {
always: {},
},
actions: {
test_index: {
throttle_period: "15m",
index: {
index: "test",
},
},
},
});
console.log(response);
----