{
  "timestamp": "2026-08-24T04:02:06.324369+00:00",
  "status": "DEGRADED",
  "checks": {
    "postgresql": {
      "status": "OK",
      "details": {
        "database": "dscons_operations",
        "user": "dscons_user",
        "version": "PostgreSQL 16.15, compiled by Visual C++ build 1944, 64-bit",
        "tables_count": 45,
        "tables": [
          "companies",
          "dossier_entries",
          "dossier_project_candidates",
          "dossier_review_actions",
          "dossier_review_assignments",
          "dossier_review_finding_evidence",
          "dossier_review_findings",
          "dossier_review_sessions",
          "dossier_review_snapshots",
          "dossier_review_submissions",
          "dossier_sources",
          "employee_pilot_logs",
          "employee_work_log_actions",
          "employee_work_log_sessions",
          "employees",
          "erp_ai_agent_budgets",
          "erp_ai_agent_usage_logs",
          "erp_digital_site_diaries",
          "erp_document_sequences",
          "erp_documents",
          "erp_equipment",
          "erp_equipment_fuel_logs",
          "erp_equipment_logs",
          "erp_financial_transactions",
          "erp_invoice_audit_logs",
          "erp_invoice_items",
          "erp_invoice_sync_configs",
          "erp_invoices",
          "erp_partner_history",
          "erp_partners",
          "erp_project_bim_elements",
          "erp_project_evm_snapshots",
          "erp_project_ipcs",
          "erp_project_wbs",
          "erp_timesheets",
          "erp_user_project_access",
          "erp_user_sessions",
          "erp_users",
          "erp_warehouse_inventory",
          "project_milestones",
          "project_risks",
          "project_tasks",
          "project_timeline_events",
          "projects",
          "schema_migrations"
        ]
      }
    },
    "qdrant": {
      "status": "ERROR",
      "details": {},
      "error": "[WinError 10061] No connection could be made because the target machine actively refused it"
    },
    "local_backend": {
      "status": "ERROR",
      "endpoints": {
        "liveness": {
          "url": "http://127.0.0.1:8000/health",
          "error": "<urlopen error [WinError 10061] No connection could be made because the target machine actively refused it>",
          "ok": false
        },
        "readiness": {
          "url": "http://127.0.0.1:8000/health/readiness",
          "error": "<urlopen error [WinError 10061] No connection could be made because the target machine actively refused it>",
          "ok": false
        },
        "docs": {
          "url": "http://127.0.0.1:8000/docs",
          "error": "<urlopen error [WinError 10061] No connection could be made because the target machine actively refused it>",
          "ok": false
        },
        "root": {
          "url": "http://127.0.0.1:8000/",
          "error": "<urlopen error [WinError 10061] No connection could be made because the target machine actively refused it>",
          "ok": false
        }
      }
    },
    "public_website": {
      "status": "ERROR",
      "endpoints": {
        "landing": {
          "url": "https://dinhsonconstruction.com/",
          "error": "HTTP Error 530: <none>",
          "ok": false
        },
        "health": {
          "url": "https://dinhsonconstruction.com/health",
          "error": "HTTP Error 530: <none>",
          "ok": false
        },
        "readiness": {
          "url": "https://dinhsonconstruction.com/health/readiness",
          "error": "HTTP Error 530: <none>",
          "ok": false
        },
        "erp_domain": {
          "url": "https://erp.dinhsonconstruction.com/",
          "error": "HTTP Error 530: <none>",
          "ok": false
        },
        "erp_dashboard": {
          "url": "https://dinhsonconstruction.com/dashboard",
          "error": "HTTP Error 530: <none>",
          "ok": false
        },
        "projects": {
          "url": "https://dinhsonconstruction.com/dashboard/projects",
          "error": "HTTP Error 530: <none>",
          "ok": false
        },
        "equipment": {
          "url": "https://dinhsonconstruction.com/dashboard/equipment",
          "error": "HTTP Error 530: <none>",
          "ok": false
        },
        "invoices": {
          "url": "https://dinhsonconstruction.com/dashboard/invoices",
          "error": "HTTP Error 530: <none>",
          "ok": false
        },
        "partners": {
          "url": "https://dinhsonconstruction.com/dashboard/partners",
          "error": "HTTP Error 530: <none>",
          "ok": false
        },
        "war_room": {
          "url": "https://dinhsonconstruction.com/dashboard/war-room",
          "error": "HTTP Error 530: <none>",
          "ok": false
        },
        "agents": {
          "url": "https://dinhsonconstruction.com/dashboard/agents",
          "error": "HTTP Error 530: <none>",
          "ok": false
        }
      },
      "ssl_info": {
        "subject": {
          "commonName": "dinhsonconstruction.com"
        },
        "issuer": {
          "countryName": "US",
          "organizationName": "Google Trust Services",
          "commonName": "WE1"
        },
        "notBefore": "Aug 19 03:24:09 2026 GMT",
        "notAfter": "Nov 17 04:22:50 2026 GMT",
        "version": 3
      }
    }
  }
}