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

22 lines
453 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.nodes.stats({
metric: "indices",
});
console.log(response);
const response1 = await client.nodes.stats({
metric: "os,process",
});
console.log(response1);
const response2 = await client.nodes.stats({
node_id: "10.0.0.1",
metric: "process",
});
console.log(response2);
----