1
0
Fork 0

Adding upstream version 1.34.4.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-05-24 07:26:29 +02:00
parent e393c3af3f
commit 4978089aab
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
4963 changed files with 677545 additions and 0 deletions

View file

@ -0,0 +1,5 @@
bart_json_v2,destination=Antioch,name=Colma minutes=13i
bart_json_v2,destination=Antioch,name=Colma minutes=43i
bart_json_v2,destination=Millbrae,name=Colma minutes=19i
bart_json_v2,destination=Millbrae,name=Colma minutes=49i
bart_json_v2,destination=Millbrae,name=Colma minutes=79i

View file

@ -0,0 +1,87 @@
{
"?xml": {
"@version": "1.0",
"@encoding": "utf-8"
},
"root": {
"@id": "1",
"uri": {
"#cdata-section": "http://api.bart.gov/api/etd.aspx?cmd=etd&orig=COLM&json=y"
},
"date": "06/03/2021",
"time": "12:54:31 PM PDT",
"station": [
{
"name": "Colma",
"abbr": "COLM",
"etd": [
{
"destination": "Antioch",
"abbreviation": "ANTC",
"limited": "0",
"estimate": [
{
"minutes": "13",
"platform": "2",
"direction": "North",
"length": "10",
"color": "YELLOW",
"hexcolor": "#ffff33",
"bikeflag": "1",
"delay": "0"
},
{
"minutes": "43",
"platform": "2",
"direction": "North",
"length": "10",
"color": "YELLOW",
"hexcolor": "#ffff33",
"bikeflag": "1",
"delay": "0"
}
]
},
{
"destination": "Millbrae",
"abbreviation": "MLBR",
"limited": "0",
"estimate": [
{
"minutes": "19",
"platform": "1",
"direction": "South",
"length": "10",
"color": "RED",
"hexcolor": "#ff0000",
"bikeflag": "1",
"delay": "0"
},
{
"minutes": "49",
"platform": "1",
"direction": "South",
"length": "10",
"color": "RED",
"hexcolor": "#ff0000",
"bikeflag": "1",
"delay": "0"
},
{
"minutes": "79",
"platform": "1",
"direction": "South",
"length": "10",
"color": "RED",
"hexcolor": "#ff0000",
"bikeflag": "1",
"delay": "0"
}
]
}
]
}
],
"message": ""
}
}

View file

@ -0,0 +1,12 @@
[[inputs.file]]
files = ["./testdata/object/input.json"]
data_format = "json_v2"
[[inputs.file.json_v2]]
measurement_name = "bart_json_v2"
[[inputs.file.json_v2.object]]
path = "root.station"
disable_prepend_keys = true
included_keys = ["etd_estimate_minutes"]
tags = ["name", "etd_destination"]
[inputs.file.json_v2.object.fields]
etd_estimate_minutes = "int"