rctab.routers.accounting.usage

Set and get usage data.

Functions

authenticate_usage_app([token])

Authenticates the usage function app.

delete_usage(conn, start_date, end_date)

Deletes usage(s) within a date range from the database.

get_cm_usage([_, conn])

Get all cost-management data.

get_usage([_, conn])

Get all usage data.

insert_usage(conn, all_usage)

Inserts usage into the database.

post_cm_usage(all_cm_usage[, _, conn])

Write cost-management data to the database.

post_monthly_usage(all_usage[, _, conn])

Inserts monthly usage data into the database.

post_usage(all_usage[, _, conn])

Write some usage data to the database.

Classes

TmpReturnStatus(*, status)

A wrapper for a status message.