@classmethod
    #@postonly
    @jsonify
    def set_poll_interval(cls):
        try:
            poll_interval = float(request.params['value'])
            if poll_interval <= 0:
                raise ValueError
            ServiceStatus.set_poll_interval(poll_interval)
            return {'ok': True}
        except (KeyError, __HOLE__):
            response.status_int = 400
            return {'ok': False, 'msg': 'Polling interval must be a positive value'}
dataset/ETHPy150Open turbulenz/turbulenz_local/turbulenz_local/controllers/apiv1/servicestatus.py/ServicestatusController.set_poll_interval