rename durations to metric_durations #41

Merged
forest merged 1 commit from jgart/capsul-flask:rename_durations into main 2022-08-27 02:13:00 +00:00
3 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@ from flask_mail import Message
from werkzeug.exceptions import abort from werkzeug.exceptions import abort
from nanoid import generate from nanoid import generate
from capsulflask.metrics import durations as metric_durations from capsulflask.metrics import metric_durations
from capsulflask.auth import admin_account_required from capsulflask.auth import admin_account_required
from capsulflask.db import get_model from capsulflask.db import get_model
from capsulflask.consistency import get_all_vms_from_db, get_all_vms_from_hosts, get_inconsistent_capsuls_information from capsulflask.consistency import get_all_vms_from_db, get_all_vms_from_hosts, get_inconsistent_capsuls_information

View file

@ -14,7 +14,7 @@ from flask import url_for
from werkzeug.exceptions import abort from werkzeug.exceptions import abort
from nanoid import generate from nanoid import generate
from capsulflask.metrics import durations as metric_durations from capsulflask.metrics import metric_durations
from capsulflask.auth import account_required from capsulflask.auth import account_required
from capsulflask.db import get_model from capsulflask.db import get_model
from capsulflask.shared import my_exec_info_message, get_warnings_list, get_warning_headline, get_vm_months_float, get_account_balance, average_number_of_days_in_a_month from capsulflask.shared import my_exec_info_message, get_warnings_list, get_warning_headline, get_vm_months_float, get_account_balance, average_number_of_days_in_a_month

View file

@ -19,7 +19,7 @@ from capsulflask.auth import account_required
mutex = Lock() mutex = Lock()
bp = Blueprint("metrics", __name__, url_prefix="/metrics") bp = Blueprint("metrics", __name__, url_prefix="/metrics")
durations = dict( metric_durations = dict(
_5m=[60*5, 15], _5m=[60*5, 15],
_1h=[60*60, 60], _1h=[60*60, 60],
_1d=[60*60*24, 60*20], _1d=[60*60*24, 60*20],