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