pyca/utils.py
def recording_state(recording_id, status):
    '''Send the state of the current recording to the Matterhorn core.

    :param recording_id: ID of the current recording
    :param status: Status of the recording
    '''
    # If this is a backup CA we do not update the recording state since the
    # actual CA does that and we want to interfere.  We will just run silently
    # in the background:
    if config()['agent']['backup_mode']:
        return
    params = [('state', status)]
    url = config()['service-capture.admin'][0]
    url += '/recordings/%s' % recording_id
    try:
        result = http_request(url, params)
        logger.info(result)
    except pycurl.error as e:
        logger.warning('Could not set recording state to %s: %s' % (status, e))
def recording_state(recording_id, status):
    '''Send the state of the current recording to the Matterhorn core.

    :param recording_id: ID of the current recording
    :param status: Status of the recording
    '''
    # If this is a backup CA we do not update the recording state since the
    # actual CA does that and we want to interfere.  We will just run silently
    # in the background:
    if config()['agent']['backup_mode']:
        return
    params = [('state', status)]
    url = config()['service-capture.admin'][0]
    url += '/recordings/%s' % recording_id
    try:
        result = http_request(url, params)
        logger.info(result)
    except pycurl.error as e:
        logger.warning('Could not set recording state to %s: %s' % (status, e))
def recording_state ( recording_id , status ) : # If this is a backup CA we do not update the recording state since the # actual CA does that and we want to interfere.  We will just run silently # in the background: if config ( ) [ 'agent' ] [ 'backup_mode' ] : return params = [ ( 'state' , status ) ] url = config ( ) [ 'service-capture.admin' ] [ 0 ] url += '/recordings/%s' % recording_id try : result = http_request ( url , params ) logger . info ( result ) except pycurl . error as e : logger . warning ( 'Could not set recording state to %s: %s' % ( status , e ) )
Send the state of the current recording to the Matterhorn core.

    :param recording_id: ID of the current recording
    :param status: Status of the recording
Send the state of the current recording to the Matterhorn core .