@classmethod
def probe(cls, resource, enable, disable, test, host, interval, http_method,
    http_response, threshold, timeout, url, window):
    """ Set a probe for a webaccelerator """
    params = {'host': host, 'interval': interval, 'method': http_method,
        'response': http_response, 'threshold': threshold, 'timeout':
        timeout, 'url': url, 'window': window}
    if enable:
        params['enable'] = True
    elif disable:
        params['enable'] = False
    if test:
        result = cls.call('hosting.rproxy.probe.test', cls.usable_id(
            resource), params)
    else:
        result = cls.call('hosting.rproxy.probe.update', cls.usable_id(
            resource), params)
        cls.display_progress(result)
    return result
