src/dirbs/cli/importer.py
def barred_list(ctx, config, statsd, logger, run_id, conn, metadata_conn, command, metrics_root, metrics_run_root,
                input_file, disable_historic_check, delta, disable_delta_adds_check, disable_delta_removes_check,
                disable_delta_updates_check):
    """Import the Barred List data found in INPUT into the PostgreSQL database."""
    params = _common_import_params(ctx)
    bl_tc = config.barred_threshold_config
    params.update({'perform_historic_check': not disable_historic_check,
                   'delta': delta,
                   'perform_delta_adds_check': not disable_delta_adds_check,
                   'perform_delta_removes_check': not disable_delta_removes_check,
                   'import_size_variation_percent': bl_tc.import_size_variation_percent,
                   'import_size_variation_absolute': bl_tc.import_size_variation_absolute,
                   'perform_delta_updates_check': not disable_delta_updates_check})
    with importer_factory.make_data_importer('barred_list', input_file, config, statsd, conn, metadata_conn,
                                             run_id, metrics_root, metrics_run_root, **params) as importer:
        importer.import_data()
Import the Barred List data found in INPUT into the PostgreSQL database.
Import the Barred List data found in INPUT into the PostgreSQL database.
Import the Barred List data found in INPUT into the PostgreSQL database .
def barred_list(ctx, config, statsd, logger, run_id, conn, metadata_conn, command, metrics_root, metrics_run_root,
                input_file, disable_historic_check, delta, disable_delta_adds_check, disable_delta_removes_check,
                disable_delta_updates_check):
    params = _common_import_params(ctx)
    bl_tc = config.barred_threshold_config
    params.update({'perform_historic_check': not disable_historic_check,
                   'delta': delta,
                   'perform_delta_adds_check': not disable_delta_adds_check,
                   'perform_delta_removes_check': not disable_delta_removes_check,
                   'import_size_variation_percent': bl_tc.import_size_variation_percent,
                   'import_size_variation_absolute': bl_tc.import_size_variation_absolute,
                   'perform_delta_updates_check': not disable_delta_updates_check})
    with importer_factory.make_data_importer('barred_list', input_file, config, statsd, conn, metadata_conn,
                                             run_id, metrics_root, metrics_run_root, **params) as importer:
        importer.import_data()
def barred_list ( ctx , config , statsd , logger , run_id , conn , metadata_conn , command , metrics_root , metrics_run_root , input_file , disable_historic_check , delta , disable_delta_adds_check , disable_delta_removes_check , disable_delta_updates_check ) : params = _common_import_params ( ctx ) bl_tc = config . barred_threshold_config params . update ( { 'perform_historic_check' : not disable_historic_check , 'delta' : delta , 'perform_delta_adds_check' : not disable_delta_adds_check , 'perform_delta_removes_check' : not disable_delta_removes_check , 'import_size_variation_percent' : bl_tc . import_size_variation_percent , 'import_size_variation_absolute' : bl_tc . import_size_variation_absolute , 'perform_delta_updates_check' : not disable_delta_updates_check } ) with importer_factory . make_data_importer ( 'barred_list' , input_file , config , statsd , conn , metadata_conn , run_id , metrics_root , metrics_run_root , ** params ) as importer : importer . import_data ( )
Import the Barred List data found in INPUT into the PostgreSQL database.
Import the Barred List data found in INPUT into the PostgreSQL database .
"""Import the Barred List data found in INPUT into the PostgreSQL database."""
ctx
config
statsd
logger
run_id
conn
metadata_conn
command
metrics_root
metrics_run_root
input_file
disable_historic_check
delta
disable_delta_adds_check
disable_delta_removes_check
disable_delta_updates_check