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