mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-30 17:27:16 -05:00
feat: Implement MFA authentication, add ride statistics model, and update various services, APIs, and tests across the application.
This commit is contained in:
@@ -6,14 +6,15 @@ performance metrics, and database analysis.
|
||||
"""
|
||||
|
||||
import time
|
||||
from django.utils import timezone
|
||||
|
||||
from django.conf import settings
|
||||
from rest_framework.views import APIView
|
||||
from django.utils import timezone
|
||||
from drf_spectacular.utils import extend_schema, extend_schema_view
|
||||
from health_check.views import MainView
|
||||
from rest_framework.permissions import AllowAny
|
||||
from rest_framework.request import Request
|
||||
from rest_framework.response import Response
|
||||
from rest_framework.permissions import AllowAny
|
||||
from health_check.views import MainView
|
||||
from drf_spectacular.utils import extend_schema, extend_schema_view
|
||||
from rest_framework.views import APIView
|
||||
|
||||
# Import serializers
|
||||
from ..serializers import (
|
||||
@@ -150,9 +151,10 @@ class HealthCheckAPIView(APIView):
|
||||
def _get_database_metrics(self) -> dict:
|
||||
"""Get database performance metrics."""
|
||||
try:
|
||||
from django.db import connection
|
||||
from typing import Any
|
||||
|
||||
from django.db import connection
|
||||
|
||||
# Get basic connection info
|
||||
metrics: dict[str, Any] = {
|
||||
"vendor": connection.vendor,
|
||||
|
||||
Reference in New Issue
Block a user