Adding upstream version 1.34.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
e393c3af3f
commit
4978089aab
4963 changed files with 677545 additions and 0 deletions
|
@ -0,0 +1,3 @@
|
|||
devices ok=true,phases_0_load=34,phases_0_voltage=231,phases_1_load=35,phases_1_voltage=231,phases_2_load=36,phases_2_voltage=231,rpm=423,type="Motor"
|
||||
devices flow=3.1414,hours=8762,ok=true,type="Pump"
|
||||
devices ok=true,phases_0_load=341,phases_0_voltage=231,phases_1_load=352,phases_1_voltage=231,phases_2_load=363,phases_2_voltage=231,throughput=1026,type="Machine"
|
10
plugins/parsers/xpath/testcases/name_expansion/telegraf.conf
Normal file
10
plugins/parsers/xpath/testcases/name_expansion/telegraf.conf
Normal file
|
@ -0,0 +1,10 @@
|
|||
[[inputs.file]]
|
||||
files = ["./testcases/name_expansion/test.json"]
|
||||
data_format = "xpath_json"
|
||||
xpath_native_types = true
|
||||
|
||||
[[inputs.file.xpath]]
|
||||
metric_name = "'devices'"
|
||||
metric_selection = "/devices/*"
|
||||
field_selection = "descendant::*[not(*)]"
|
||||
field_name_expansion = true
|
48
plugins/parsers/xpath/testcases/name_expansion/test.json
Normal file
48
plugins/parsers/xpath/testcases/name_expansion/test.json
Normal file
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
"devices": [
|
||||
{
|
||||
"type": "Motor",
|
||||
"rpm": 423,
|
||||
"phases": [
|
||||
{
|
||||
"load": 34,
|
||||
"voltage": 231
|
||||
},
|
||||
{
|
||||
"load": 35,
|
||||
"voltage": 231
|
||||
},
|
||||
{
|
||||
"load": 36,
|
||||
"voltage": 231
|
||||
}
|
||||
],
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"type": "Pump",
|
||||
"hours": 8762,
|
||||
"flow": 3.1414,
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"type": "Machine",
|
||||
"throughput": 1026,
|
||||
"phases": [
|
||||
{
|
||||
"load": 341,
|
||||
"voltage": 231
|
||||
},
|
||||
{
|
||||
"load": 352,
|
||||
"voltage": 231
|
||||
},
|
||||
{
|
||||
"load": 363,
|
||||
"voltage": 231
|
||||
}
|
||||
],
|
||||
"ok": true
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue