#!/usr/bin/python3 import time import random from ltsdb_json import LTS ts1 = LTS({"hostname": "rorschach.hjp.at", "measure": "uptime"}) ts1.add(time.time(), 4 + random.random()) ts1.save() ts1 = LTS({"hostname": "rorschach.hjp.at", "website": "i12e.hjp.at", "measure": "rtt"}) ts1.add(time.time(), 0.06) ts1.save() ts1 = LTS({"hostname": "rorschach.hjp.at", "measure": "uptime"}) ts1.add(time.time() + 240, 5 + random.random()) ts1.save() ts1 = LTS({"hostname": "charly.wsr.ac.at", "website": "www.wifo.ac.at", "measure": "rtt"}) ts1.add(time.time(), 0.347) ts1.save()