The platform for continuously improving AI agents.
from django.db import connection
from drf_spectacular.utils import extend_schema
from rest_framework.decorators import api_view, permission_classes
from rest_framework.permissions import AllowAny
from rest_framework.response import Response
from overbae.core import telemetry
@api_view(["GET"])
@permission_classes([AllowAny])
@extend_schema(exclude=True)
def health_check(request):
# The ALB and ECS check this every few seconds; New Relic data is billed by the GB.
telemetry.ignore_transaction()
with connection.cursor() as cursor:
cursor.execute("SELECT 1")
return Response({"status": "healthy"})