def formatter(self, key, value):
        """ Format messages for collectd to consume. """
        template = "PUTVAL {host}/fedmsg/fedmsg_wallboard-{key} " +\
            "interval={interval} {timestamp}:{value}"
        timestamp = int(time.time())
        interval = self.hub.config['collectd_interval']
        return template.format(
            host=self.host,
            timestamp=timestamp,
            value=value,
            interval=interval,
            key=key,
        )
def formatter ( self , key , value ) : template = "PUTVAL {host}/fedmsg/fedmsg_wallboard-{key} " + "interval={interval} {timestamp}:{value}" timestamp = int ( time . time ( ) ) interval = self . hub . config [ 'collectd_interval' ] return template . format ( host = self . host , timestamp = timestamp , value = value , interval = interval , key = key , )
Format messages for collectd to consume.