ltsdb/ltsdb_test

21 lines
504 B
Plaintext
Raw Permalink Normal View History

2022-08-21 11:58:31 +02:00
#!/usr/bin/python3
from ltsdb_json import LTS
ts1 = LTS({"hostname": "rorschach.hjp.at", "measure": "uptime"})
ts1.add(1661026122, 4)
ts1.save()
ts1 = LTS({"hostname": "rorschach.hjp.at", "website": "i12e.hjp.at", "measure": "rtt"})
ts1.add(1661026122, 0.06)
ts1.save()
ts1 = LTS({"hostname": "rorschach.hjp.at", "measure": "uptime"})
ts1.add(1661026361, 5)
ts1.save()
ts1 = LTS({"hostname": "charly.wsr.ac.at", "website": "www.wifo.ac.at", "measure": "rtt"})
ts1.add(1661026122, 0.347)
ts1.save()