def _ev(self, val, desc, pref, aggr=True):
        if val:
            val = int(val)
            if aggr:
                aggr = Counter
            else:
                aggr = None

            return self.createEvent('ok',
                '%s: %s' % (desc, val), val, prefix=pref, aggregation=aggr)
dataset/ETHPy150Open calston/tensor/tensor/sources/haproxy.py/HAProxy._ev/original