

def handle_get_timed_meter(self, handle, connection, match, data, hdr):
    try:
        data = self.metering.get_timed_meter(match.group(1))
        status = calvinresponse.OK
    except:
        _log.exception('handle_get_timed_meter')
        status = calvinresponse.NOT_FOUND
    self.send_response(handle, connection, (json.dumps(data) if (status == calvinresponse.OK) else None), status=status)

dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/north/calvincontrol.py CalvinControl.handle_get_timed_meter/original