def get_all_runs_time_series_by_key(key, start_date=None,
                                    stop_date=None, session=None):
    session = session or get_session()
    runs_query = db_utils.model_query(models.Run, session).join(
        models.RunMetadata,
        models.Run.id == models.RunMetadata.run_id).filter(
            models.RunMetadata.key == key)
    runs_query = _filter_runs_by_date(runs_query, start_date, stop_date)
    runs_query = runs_query.values(models.Run.run_at,
                                   models.Run.passes,
                                   models.Run.fails,
                                   models.Run.skips,
                                   models.RunMetadata.value)
    runs = {}
    for run in runs_query:
        if run.run_at not in runs:
            runs[run.run_at] = {run.value: [{
                'pass': run.passes,
                'fail': run.fails,
                'skip': run.skips,
            }]}
        else:
            if run.value not in list(runs[run.run_at].keys()):
                runs[run.run_at][run.value] = [{
                    'pass': run.passes,
                    'fail': run.fails,
                    'skip': run.skips,
                }]
            else:
                runs[run.run_at][run.value].append({
                    'pass': run.passes,
                    'fail': run.fails,
                    'skip': run.skips,
                })
    return runs
Closes the log record.  This will set the frame and calling
dataset/ETHPy150Open openstack-infra/subunit2sql/subunit2sql/db/api.py/get_all_runs_time_series_by_key--crossover with--dataset/ETHPy150Open getlogbook/logbook/logbook/base.py/LogRecord.close