Example #1
0
 def send_delta_stats(self, name, data):
     '''send delta stats somewhere'''
     sistats.pretty_print(name + " diff", data)
Example #2
0
 def send_stats(self, name, data):
     '''send stats somewhere'''
     sistats.pretty_print(name, data)
Example #3
0
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)
Example #4
0
 def send_delta_stats(self, name, data):
     '''send delta stats somewhere'''
     sistats.pretty_print(name + " diff", data)
Example #5
0
 def send_stats(self, name, data):
     '''send stats somewhere'''
     sistats.pretty_print(name, data)
Example #6
0
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)