src/dirbs/cli/report.py
def unregistered_subscribers(ctx: callable, config: callable, statsd: callable, logger: callable, run_id: int,
                             conn: callable, metadata_conn: callable, command: str, metrics_root: callable,
                             metrics_run_root: callable, output_dir: str, newer_than: str):
    """Generate per-MNO list of IMSIs that are not registered in subscribers list.

    Arguments:
        ctx: click context object
        config: DIRBS config object
        statsd: DIRBS statsd connection object
        logger: DIRBS custom logger object
        run_id: run id of the current job
        conn: DIRBS PostgreSQL connection object
        metadata_conn: DIRBS PostgreSQL metadata connection object
        command: name of the command
        metrics_root: root object for the statsd metrics
        metrics_run_root: root object for the statsd run metrics
        output_dir: output directory path
        newer_than: violation newer then this date
    Returns:
        None
    """
    operators_configured_check(config, logger)
    metadata.add_optional_job_metadata(metadata_conn, command, run_id,
                                       report_schema_version=report_schema_version,
                                       output_dir=os.path.abspath(str(output_dir)))
    report_dir = make_report_directory(ctx, output_dir, run_id, conn, config)

    with utils.CodeProfiler() as cp:
        report_metadata = write_un_registered_subscribers(logger, config, report_dir, conn, newer_than)

    statsd.gauge('{0}runtime.per_report.unregistered_subscribers'.format(metrics_run_root), cp.duration)

    # store metadata
    metadata.add_optional_job_metadata(metadata_conn, command, run_id, report_outputs=report_metadata)
Generate per-MNO list of IMSIs that are not registered in subscribers list.

    Arguments:
        ctx: click context object
        config: DIRBS config object
        statsd: DIRBS statsd connection object
        logger: DIRBS custom logger object
        run_id: run id of the current job
        conn: DIRBS PostgreSQL connection object
        metadata_conn: DIRBS PostgreSQL metadata connection object
        command: name of the command
        metrics_root: root object for the statsd metrics
        metrics_run_root: root object for the statsd run metrics
        output_dir: output directory path
        newer_than: violation newer then this date
    Returns:
        None
    
Generate per-MNO list of IMSIs that are not registered in subscribers list.
Generate per - MNO list of IMSIs that are not registered in subscribers list .
def unregistered_subscribers(ctx: callable, config: callable, statsd: callable, logger: callable, run_id: int,
                             conn: callable, metadata_conn: callable, command: str, metrics_root: callable,
                             metrics_run_root: callable, output_dir: str, newer_than: str):
    operators_configured_check(config, logger)
    metadata.add_optional_job_metadata(metadata_conn, command, run_id,
                                       report_schema_version=report_schema_version,
                                       output_dir=os.path.abspath(str(output_dir)))
    report_dir = make_report_directory(ctx, output_dir, run_id, conn, config)
    with utils.CodeProfiler() as cp:
        report_metadata = write_un_registered_subscribers(logger, config, report_dir, conn, newer_than)
    statsd.gauge('{0}runtime.per_report.unregistered_subscribers'.format(metrics_run_root), cp.duration)
    metadata.add_optional_job_metadata(metadata_conn, command, run_id, report_outputs=report_metadata)
def unregistered_subscribers ( ctx : callable , config : callable , statsd : callable , logger : callable , run_id : int , conn : callable , metadata_conn : callable , command : str , metrics_root : callable , metrics_run_root : callable , output_dir : str , newer_than : str ) : operators_configured_check ( config , logger ) metadata . add_optional_job_metadata ( metadata_conn , command , run_id , report_schema_version = report_schema_version , output_dir = os . path . abspath ( str ( output_dir ) ) ) report_dir = make_report_directory ( ctx , output_dir , run_id , conn , config ) with utils . CodeProfiler ( ) as cp : report_metadata = write_un_registered_subscribers ( logger , config , report_dir , conn , newer_than ) statsd . gauge ( '{0}runtime.per_report.unregistered_subscribers' . format ( metrics_run_root ) , cp . duration ) metadata . add_optional_job_metadata ( metadata_conn , command , run_id , report_outputs = report_metadata )
Generate per-MNO list of IMSIs that are not registered in subscribers list.
Generate per - MNO list of IMSIs that are not registered in subscribers list .
"""Generate per-MNO list of IMSIs that are not registered in subscribers list.

    Arguments:
        ctx: click context object
        config: DIRBS config object
        statsd: DIRBS statsd connection object
        logger: DIRBS custom logger object
        run_id: run id of the current job
        conn: DIRBS PostgreSQL connection object
        metadata_conn: DIRBS PostgreSQL metadata connection object
        command: name of the command
        metrics_root: root object for the statsd metrics
        metrics_run_root: root object for the statsd run metrics
        output_dir: output directory path
        newer_than: violation newer then this date
    Returns:
        None
    """ # store metadata
None
ctx
callable
click context object
click context object
config
callable
DIRBS config object
DIRBS config object
statsd
callable
DIRBS statsd connection object
DIRBS statsd connection object
logger
callable
DIRBS custom logger object
DIRBS custom logger object
run_id
int
run id of the current job
run id of the current job
conn
callable
DIRBS PostgreSQL connection object
DIRBS PostgreSQL connection object
metadata_conn
callable
DIRBS PostgreSQL metadata connection object
DIRBS PostgreSQL metadata connection object
command
str
name of the command
name of the command
metrics_root
callable
root object for the statsd metrics
root object for the statsd metrics
metrics_run_root
callable
root object for the statsd run metrics
root object for the statsd run metrics
output_dir
str
output directory path
output directory path
newer_than
str
violation newer then this date
violation newer then this date