src/dirbs/cli/report.py
def transient_msisdns(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, period: int, num_of_imeis: int,
                      current_date: str) -> None:
    """Generate list of MSISDNS used with possible transient IMEIs.

    Required Arguments:
        period: Analysis period in days (positive integer)
        num_of_imeis: Number of IMEIs a MSISDN must be seen with for analysis
    """
    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_transient_msisdns(logger, period, report_dir, conn,
                                                  config, num_of_imeis, current_date=current_date)

    statsd.gauge('{0}runtime.per_report.transient_msisdns'.format(metrics_run_root), cp.duration)
    metadata.add_optional_job_metadata(metadata_conn, command, run_id, report_outputs=report_metadata)
Generate list of MSISDNS used with possible transient IMEIs.

    Required Arguments:
        period: Analysis period in days (positive integer)
        num_of_imeis: Number of IMEIs a MSISDN must be seen with for analysis
    
Generate list of MSISDNS used with possible transient IMEIs.
Required Arguments:
period: Analysis period in days (positive integer)
num_of_imeis: Number of IMEIs a MSISDN must be seen with for analysis
Generate list of MSISDNS used with possible transient IMEIs . Required Arguments : period : Analysis period in days ( positive integer ) num_of_imeis : Number of IMEIs a MSISDN must be seen with for analysis
def transient_msisdns(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, period: int, num_of_imeis: int,
                      current_date: str) -> None:
    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_transient_msisdns(logger, period, report_dir, conn,
                                                  config, num_of_imeis, current_date=current_date)
    statsd.gauge('{0}runtime.per_report.transient_msisdns'.format(metrics_run_root), cp.duration)
    metadata.add_optional_job_metadata(metadata_conn, command, run_id, report_outputs=report_metadata)
def transient_msisdns ( 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 , period : int , num_of_imeis : int , current_date : str ) -> None : 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_transient_msisdns ( logger , period , report_dir , conn , config , num_of_imeis , current_date = current_date ) statsd . gauge ( '{0}runtime.per_report.transient_msisdns' . format ( metrics_run_root ) , cp . duration ) metadata . add_optional_job_metadata ( metadata_conn , command , run_id , report_outputs = report_metadata )
Generate list of MSISDNS used with possible transient IMEIs.
Generate list of MSISDNS used with possible transient IMEIs .
"""Generate list of MSISDNS used with possible transient IMEIs.

    Required Arguments:
        period: Analysis period in days (positive integer)
        num_of_imeis: Number of IMEIs a MSISDN must be seen with for analysis
    """
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
period
int
num_of_imeis
int
current_date
str