altimeter.qj.crud package

Submodules

altimeter.qj.crud.crud_job module

CRUD for Jobs

class CRUDJob(db_ro_user, result_expiration_sec_default, result_expiration_sec_limit, max_graph_age_sec_default, max_graph_age_sec_limit, max_result_age_sec_default, max_result_age_sec_limit, account_id_key)

Bases: object

CRUD for Jobs

create(db_session, job_create_in)

Create a Job

Return type

Job

delete(db_session, job_name)

Delete a Job

Return type

None

get_active(db_session, job_name)

Get the active version of a Job

Return type

Job

get_multi(db_session, active_only)

Get all Jobs, optionally only active

Return type

List[Job]

get_version(db_session, job_name, created)

Get a specific version of a Job by created timestamp

Return type

Job

get_versions(db_session, job_name)

Get all versions of a Job

Return type

List[Job]

update_version(db_session, job_name, created, job_update)

Update a Job

Return type

Job

altimeter.qj.crud.crud_result_set module

CRUD for ResultSets

class CRUDResultSet(max_result_set_results, max_result_size_bytes, job_crud)

Bases: object

CRUD for ResultSets

create(db_session, obj_in)

Create a ResultSet

Return type

ResultSet

delete_expired(db_session)

Delete all expired ResultSets, return the number of deleted ResultSet

Return type

int

get(db_session, result_set_id)

Get a ResultSet by id

Return type

ResultSet

get_expired(db_session)

Get all expired ResultSets

Return type

List[ResultSet]

get_latest_for_active_job(db_session, job_name)

Get the latest ResultSet for the active version of a Job

Return type

ResultSet

Module contents