Added/updated snippets for docs (#2318)
This commit is contained in:
22
docs/doc_examples/dae57cf7df18adb4dc64426eb159733a.asciidoc
Normal file
22
docs/doc_examples/dae57cf7df18adb4dc64426eb159733a.asciidoc
Normal file
@ -0,0 +1,22 @@
|
||||
// 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.search({
|
||||
index: "latency",
|
||||
size: 0,
|
||||
aggs: {
|
||||
load_time_outlier: {
|
||||
percentiles: {
|
||||
field: "load_time",
|
||||
percents: [95, 99, 99.9],
|
||||
hdr: {
|
||||
number_of_significant_value_digits: 3,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user