Added new docs examples (#1101)

* Added new docs examples

* Updated enabled files list
This commit is contained in:
Tomas Della Vedova
2020-03-04 09:20:27 +01:00
committed by GitHub
parent 7b7c9130f3
commit 508aa362e6
50 changed files with 1035 additions and 1 deletions

View File

@ -0,0 +1,26 @@
// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
[source, js]
----
const response0 = await client.index({
index: 'metricbeat-2016.05.30',
id: '1',
refresh: true,
body: {
'system.cpu.idle.pct': 0.908
}
})
console.log(response0)
const response1 = await client.index({
index: 'metricbeat-2016.05.31',
id: '1',
refresh: true,
body: {
'system.cpu.idle.pct': 0.105
}
})
console.log(response1)
----