from auth.auth_view import AuthorizedView from data_health.data_health_service import DataHealthService from data_health.schemas import PerformanceMetricsDataHealthSchema from utils.handlers import get_request_query_model from utils.test_helpers import sync class PerformanceMetricsDataHealthView(AuthorizedView): data_health_service = DataHealthService() @sync async def get(self): model = get_request_query_model(PerformanceMetricsDataHealthSchema) return await self.data_health_service.get_performance_metrics_data_health(model)