def send_delta_stats(self, name, data): '''send delta stats somewhere''' sistats.pretty_print(name + " diff", data)
def send_stats(self, name, data): '''send stats somewhere''' sistats.pretty_print(name, data)
def on_message(_mosq, msg): '''callback called when a message from the subscriptions is received''' data = bson.BSON(msg.payload).decode() sistats.pretty_print(msg.topic, data)