Commit 7ee87dde authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

Ajout d'un tag pour le type de réseau

parent 3bed6676
......@@ -74,11 +74,15 @@ def main():
# Compose json data
for y in data:
for n, value in data[y].items():
network_type = 'temporary'
if n in cfg['metadata']['permanent_networks']:
network_type = 'permanent'
influxdb_json_data.append(
{"measurement": cfg['influxdb']['measurement'],
"tags": {
"year": y,
"network": n
"network": n,
"network_type": network_type
},
"time": strftime("%Y-%m-%dT%H:%M:%SZ", gmtime()),
"fields": {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment