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
3
plugins/parsers/json_v2/testdata/complex_nesting/expected.out
vendored
Normal file
3
plugins/parsers/json_v2/testdata/complex_nesting/expected.out
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
file,properties_place=Antelope\ Valley\,\ CA geometry_coordinates=-119.4998333,geometry_type="Point",id="nc73584926",properties_mag=6,properties_updated=1.626277167263e+12,type="Feature"
|
||||
file,properties_place=Antelope\ Valley\,\ CA geometry_coordinates=38.5075,geometry_type="Point",id="nc73584926",properties_mag=6,properties_updated=1.626277167263e+12,type="Feature"
|
||||
file,properties_place=Antelope\ Valley\,\ CA geometry_coordinates=7.45,geometry_type="Point",id="nc73584926",properties_mag=6,properties_updated=1.626277167263e+12,type="Feature"
|
31
plugins/parsers/json_v2/testdata/complex_nesting/input.json
vendored
Normal file
31
plugins/parsers/json_v2/testdata/complex_nesting/input.json
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
"type": "FeatureCollection",
|
||||
"metadata": {
|
||||
"generated": 1626285886000,
|
||||
"url": "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/significant_week.geojson",
|
||||
"title": "USGS Significant Earthquakes, Past Week",
|
||||
"status": 200,
|
||||
"api": "1.10.3",
|
||||
"count": 1
|
||||
},
|
||||
"features": [
|
||||
{
|
||||
"type": "Feature",
|
||||
"properties": {
|
||||
"mag": 6,
|
||||
"place": "Antelope Valley, CA",
|
||||
"time": 1625784588110,
|
||||
"updated": 1626277167263
|
||||
},
|
||||
"geometry": {
|
||||
"type": "Point",
|
||||
"coordinates": [
|
||||
-119.4998333,
|
||||
38.5075,
|
||||
7.45
|
||||
]
|
||||
},
|
||||
"id": "nc73584926"
|
||||
}
|
||||
]
|
||||
}
|
9
plugins/parsers/json_v2/testdata/complex_nesting/telegraf.conf
vendored
Normal file
9
plugins/parsers/json_v2/testdata/complex_nesting/telegraf.conf
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
[[inputs.file]]
|
||||
files = ["./testdata/complex_nesting/input.json"]
|
||||
data_format = "json_v2"
|
||||
[[inputs.file.json_v2]]
|
||||
[[inputs.file.json_v2.object]]
|
||||
path = "features"
|
||||
timestamp_key = "properties_time"
|
||||
timestamp_format = "unix_ms"
|
||||
tags = ["properties_place"]
|
Loading…
Add table
Add a link
Reference in a new issue