Skip to content

Commit

Permalink
G3-271 lint checks
Browse files Browse the repository at this point in the history
  • Loading branch information
francastell committed Jul 15, 2024
1 parent 467ef8c commit 5a21d7c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/geneweaver/api/controller/monitors.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
"""Endpoints related to system health."""

from datetime import datetime
from typing import Optional

from fastapi import APIRouter, Depends, Query
from geneweaver.api import dependencies as deps
from geneweaver.api.services import monitors as monitors_service
from typing_extensions import Annotated
from datetime import datetime

from . import message as api_message

router = APIRouter(prefix="/monitors", tags=["monitors"])
Expand All @@ -20,10 +21,11 @@ def get_health_check(
] = False,
) -> dict:
"""Return 200 API response if reachable and optionally check db health."""
response = {"status": "UP",
"details": "All systems normal.",
"datetime": datetime.utcnow(),
}
response = {
"status": "UP",
"details": "All systems normal.",
"datetime": datetime.utcnow(),
}

if db_health_check:
db_health_response = monitors_service.check_db_health(cursor)
Expand Down

0 comments on commit 5a21d7c

Please sign in to comment.