{
  "status": "degraded",
  "timestamp": "2026-11-22T06:21:20.545863",
  "groups": [
    {
      "name": "Platform Core",
      "status": "healthy",
      "healthy_count": 3,
      "total": 3,
      "services": [
        {
          "name": "Website Core",
          "status": "healthy",
          "response_time_ms": 4,
          "last_check": "2026-11-22T06:19:53",
          "error": false,
          "critical": true
        },
        {
          "name": "Home Screen",
          "status": "healthy",
          "response_time_ms": 6,
          "last_check": "2026-11-22T06:19:53",
          "error": false,
          "critical": false
        },
        {
          "name": "Database (PostgreSQL)",
          "status": "healthy",
          "response_time_ms": 1,
          "last_check": "2026-11-22T06:20:08",
          "error": false,
          "critical": true
        }
      ]
    },
    {
      "name": "Community Dashboard",
      "status": "healthy",
      "healthy_count": 4,
      "total": 4,
      "services": [
        {
          "name": "Community Dashboard - Home",
          "status": "healthy",
          "response_time_ms": 146,
          "last_check": "2026-11-22T06:20:00",
          "error": false,
          "critical": true
        },
        {
          "name": "Community Dashboard - Map",
          "status": "healthy",
          "response_time_ms": 150,
          "last_check": "2026-11-22T06:20:01",
          "error": false,
          "critical": true
        },
        {
          "name": "Community Dashboard - Search",
          "status": "healthy",
          "response_time_ms": 111,
          "last_check": "2026-11-22T06:20:02",
          "error": false,
          "critical": false
        },
        {
          "name": "Community Dashboard - Insights",
          "status": "healthy",
          "response_time_ms": 128,
          "last_check": "2026-11-22T06:20:02",
          "error": false,
          "critical": false
        }
      ]
    },
    {
      "name": "Dashboard",
      "status": "healthy",
      "healthy_count": 4,
      "total": 4,
      "services": [
        {
          "name": "Dashboard Check 1",
          "status": "healthy",
          "response_time_ms": 8,
          "last_check": "2026-11-22T06:20:00",
          "error": false,
          "critical": true
        },
        {
          "name": "Dashboard Check 2",
          "status": "healthy",
          "response_time_ms": 3,
          "last_check": "2026-11-22T06:20:00",
          "error": false,
          "critical": true
        },
        {
          "name": "Dashboard Check 3",
          "status": "healthy",
          "response_time_ms": 4,
          "last_check": "2026-11-22T06:20:00",
          "error": false,
          "critical": true
        },
        {
          "name": "Dashboard Check 4",
          "status": "healthy",
          "response_time_ms": 3,
          "last_check": "2026-11-22T06:20:00",
          "error": false,
          "critical": true
        }
      ]
    },
    {
      "name": "Learning Academy",
      "status": "healthy",
      "healthy_count": 2,
      "total": 2,
      "services": [
        {
          "name": "Learning Academy - Home",
          "status": "healthy",
          "response_time_ms": 185,
          "last_check": "2026-11-22T06:20:02",
          "error": false,
          "critical": true
        },
        {
          "name": "Learning Academy - All Courses",
          "status": "healthy",
          "response_time_ms": 216,
          "last_check": "2026-11-22T06:20:04",
          "error": false,
          "critical": false
        }
      ]
    },
    {
      "name": "Mizan Compass",
      "status": "healthy",
      "healthy_count": 3,
      "total": 3,
      "services": [
        {
          "name": "Mizan Compass - Home",
          "status": "healthy",
          "response_time_ms": 158,
          "last_check": "2026-11-22T06:20:04",
          "error": false,
          "critical": true
        },
        {
          "name": "Mizan Compass - Rankings",
          "status": "healthy",
          "response_time_ms": 136,
          "last_check": "2026-11-22T06:20:04",
          "error": false,
          "critical": false
        },
        {
          "name": "Mizan Compass - Criteria",
          "status": "healthy",
          "response_time_ms": 372,
          "last_check": "2026-11-22T06:20:05",
          "error": false,
          "critical": false
        }
      ]
    },
    {
      "name": "WriteToPower",
      "status": "healthy",
      "healthy_count": 2,
      "total": 2,
      "services": [
        {
          "name": "WriteToPower - Home",
          "status": "healthy",
          "response_time_ms": 127,
          "last_check": "2026-11-22T06:20:05",
          "error": false,
          "critical": true
        },
        {
          "name": "WriteToPower - Compose",
          "status": "healthy",
          "response_time_ms": 135,
          "last_check": "2026-11-22T06:20:06",
          "error": false,
          "critical": true
        }
      ]
    },
    {
      "name": "YourVoice",
      "status": "healthy",
      "healthy_count": 2,
      "total": 2,
      "services": [
        {
          "name": "YourVoice - Home",
          "status": "healthy",
          "response_time_ms": 137,
          "last_check": "2026-11-22T06:20:06",
          "error": false,
          "critical": true
        },
        {
          "name": "YourVoice - Ideas",
          "status": "healthy",
          "response_time_ms": 181,
          "last_check": "2026-11-22T06:20:06",
          "error": false,
          "critical": false
        }
      ]
    },
    {
      "name": "Org Finder",
      "status": "healthy",
      "healthy_count": 5,
      "total": 5,
      "services": [
        {
          "name": "Org Finder - Home",
          "status": "healthy",
          "response_time_ms": 680,
          "last_check": "2026-11-22T06:19:53",
          "error": false,
          "critical": true
        },
        {
          "name": "Org Finder - Map",
          "status": "healthy",
          "response_time_ms": 174,
          "last_check": "2026-11-22T06:20:01",
          "error": false,
          "critical": true
        },
        {
          "name": "Org Finder - Search",
          "status": "healthy",
          "response_time_ms": 731,
          "last_check": "2026-11-22T06:19:52",
          "error": false,
          "critical": false
        },
        {
          "name": "Org Finder - Services",
          "status": "healthy",
          "response_time_ms": 243,
          "last_check": "2026-11-22T06:20:01",
          "error": false,
          "critical": false
        },
        {
          "name": "Org Finder - Submit Org",
          "status": "healthy",
          "response_time_ms": 213,
          "last_check": "2026-11-22T06:20:01",
          "error": false,
          "critical": false
        }
      ]
    },
    {
      "name": "Events",
      "status": "healthy",
      "healthy_count": 3,
      "total": 3,
      "services": [
        {
          "name": "Events - Home",
          "status": "healthy",
          "response_time_ms": 131,
          "last_check": "2026-11-22T06:20:01",
          "error": false,
          "critical": true
        },
        {
          "name": "Events - Browse",
          "status": "healthy",
          "response_time_ms": 141,
          "last_check": "2026-11-22T06:20:03",
          "error": false,
          "critical": false
        },
        {
          "name": "Events - Calendar",
          "status": "healthy",
          "response_time_ms": 137,
          "last_check": "2026-11-22T06:20:05",
          "error": false,
          "critical": false
        }
      ]
    },
    {
      "name": "People Hub",
      "status": "healthy",
      "healthy_count": 1,
      "total": 1,
      "services": [
        {
          "name": "People Hub - Home",
          "status": "healthy",
          "response_time_ms": 138,
          "last_check": "2026-11-22T06:20:06",
          "error": false,
          "critical": false
        }
      ]
    },
    {
      "name": "AI Services",
      "status": "healthy",
      "healthy_count": 1,
      "total": 1,
      "services": [
        {
          "name": "askMCB",
          "status": "healthy",
          "response_time_ms": 3,
          "last_check": "2026-11-22T06:20:06",
          "error": false,
          "critical": false
        }
      ]
    },
    {
      "name": "Prayer Times",
      "status": "healthy",
      "healthy_count": 2,
      "total": 2,
      "services": [
        {
          "name": "Prayer Times - Home",
          "status": "healthy",
          "response_time_ms": 146,
          "last_check": "2026-11-22T06:20:06",
          "error": false,
          "critical": false
        },
        {
          "name": "Prayer Times - Search",
          "status": "healthy",
          "response_time_ms": 121,
          "last_check": "2026-11-22T06:20:06",
          "error": false,
          "critical": false
        }
      ]
    },
    {
      "name": "Jobs",
      "status": "healthy",
      "healthy_count": 1,
      "total": 1,
      "services": [
        {
          "name": "Jobs - Home",
          "status": "healthy",
          "response_time_ms": 160,
          "last_check": "2026-11-22T06:20:07",
          "error": false,
          "critical": false
        }
      ]
    },
    {
      "name": "Communications",
      "status": "healthy",
      "healthy_count": 2,
      "total": 2,
      "services": [
        {
          "name": "Messaging",
          "status": "healthy",
          "response_time_ms": 3,
          "last_check": "2026-11-22T06:20:07",
          "error": false,
          "critical": false
        },
        {
          "name": "Social Marketing",
          "status": "healthy",
          "response_time_ms": 3,
          "last_check": "2026-11-22T06:20:07",
          "error": false,
          "critical": false
        }
      ]
    },
    {
      "name": "Outreach",
      "status": "healthy",
      "healthy_count": 1,
      "total": 1,
      "services": [
        {
          "name": "Outreach Engine",
          "status": "healthy",
          "response_time_ms": 4,
          "last_check": "2026-11-22T06:20:07",
          "error": false,
          "critical": false
        }
      ]
    },
    {
      "name": "askMCB Chatbot",
      "status": "healthy",
      "healthy_count": 6,
      "total": 6,
      "services": [
        {
          "name": "askMCB - Error Rate (60min)",
          "status": "healthy",
          "response_time_ms": 40,
          "last_check": "2026-11-22T06:20:07",
          "error": false,
          "critical": false
        },
        {
          "name": "askMCB - p95 Latency",
          "status": "healthy",
          "response_time_ms": 47,
          "last_check": "2026-11-22T06:20:07",
          "error": false,
          "critical": false
        },
        {
          "name": "askMCB - Cost Budget (60-min window)",
          "status": "healthy",
          "response_time_ms": 42,
          "last_check": "2026-11-22T06:20:07",
          "error": false,
          "critical": false
        },
        {
          "name": "askMCB - WhatsApp Error Rate",
          "status": "healthy",
          "response_time_ms": 41,
          "last_check": "2026-11-22T06:20:07",
          "error": false,
          "critical": false
        },
        {
          "name": "askMCB - SMS Error Rate",
          "status": "healthy",
          "response_time_ms": 41,
          "last_check": "2026-11-22T06:20:08",
          "error": false,
          "critical": false
        },
        {
          "name": "askMCB - Telegram Error Rate",
          "status": "healthy",
          "response_time_ms": 43,
          "last_check": "2026-11-22T06:20:08",
          "error": false,
          "critical": false
        }
      ]
    },
    {
      "name": "askMCB Heartbeats",
      "status": "degraded",
      "healthy_count": 18,
      "total": 20,
      "services": [
        {
          "name": "askMCB L1 - Organization Finder",
          "status": "healthy",
          "response_time_ms": 5626,
          "last_check": "2026-11-22T06:10:52",
          "error": false,
          "critical": true
        },
        {
          "name": "askMCB L1 - Prayer Times",
          "status": "healthy",
          "response_time_ms": 2530,
          "last_check": "2026-11-22T06:14:46",
          "error": false,
          "critical": true
        },
        {
          "name": "askMCB L1 - Halal Restaurants",
          "status": "degraded",
          "response_time_ms": 59101,
          "last_check": "2026-11-22T05:46:05",
          "error": "No time left in this run to retry: HTTPSConnectionPool(host='chatbot-service-production-07e3.up.railway.app', port=443): Read timed out. (read timeout=58.99988929927349)",
          "critical": false
        },
        {
          "name": "askMCB L1 - Learning Academy Courses",
          "status": "healthy",
          "response_time_ms": 5360,
          "last_check": "2026-11-22T05:55:30",
          "error": false,
          "critical": false
        },
        {
          "name": "askMCB L1 - Events",
          "status": "healthy",
          "response_time_ms": 5334,
          "last_check": "2026-11-22T05:55:36",
          "error": false,
          "critical": false
        },
        {
          "name": "askMCB L1 - Legal Guidance (Ad'l)",
          "status": "healthy",
          "response_time_ms": 7703,
          "last_check": "2026-11-22T05:56:44",
          "error": false,
          "critical": true
        },
        {
          "name": "askMCB L1 - Blog Search",
          "status": "healthy",
          "response_time_ms": 28513,
          "last_check": "2026-11-22T05:57:20",
          "error": false,
          "critical": false
        },
        {
          "name": "askMCB L1 - Website Page Search",
          "status": "healthy",
          "response_time_ms": 3462,
          "last_check": "2026-11-22T05:57:57",
          "error": false,
          "critical": false
        },
        {
          "name": "askMCB L1 - YourVoice / WriteToPower",
          "status": "healthy",
          "response_time_ms": 18252,
          "last_check": "2026-11-22T05:58:16",
          "error": false,
          "critical": false
        },
        {
          "name": "askMCB L1 - Jobs / Recruitment",
          "status": "degraded",
          "response_time_ms": 8266,
          "last_check": "2026-11-22T06:00:24",
          "error": "reply missing expected pattern /Arabic\\ Language\\ Teacher|Chaplain\\ /\\ Imam|Community\\ Outreach\\ Manager|Digital\\ Marketing\\ Specialist|Finance\\ \\&\\ Admin\\ Officer|Fundraising\\ Manager|Graphic\\ Designer\\ \\(Freelance\\)|Islamic\\ Studies\\ Teacher|Mosque\\ Facilities\\ Manager|Volunteer\\ Coordinator|Youth\\ Program\\ Coordinator/i \u2014 reply preview: 'I checked the current job listings on the platform, and there are **no vacancies posted for the Muslim Council of Britain right now**.\\n\\nThat said, MCB does have'",
          "critical": false
        },
        {
          "name": "askMCB L1 - Mental Health Helper (ask_mh_helper)",
          "status": "healthy",
          "response_time_ms": 9531,
          "last_check": "2026-11-22T06:00:34",
          "error": false,
          "critical": false
        },
        {
          "name": "askMCB L1 - Crisis Floor",
          "status": "healthy",
          "response_time_ms": 40,
          "last_check": "2026-11-22T05:57:57",
          "error": false,
          "critical": true
        },
        {
          "name": "askMCB L1 - WhatsApp Brevity",
          "status": "healthy",
          "response_time_ms": 12591,
          "last_check": "2026-11-22T06:05:05",
          "error": false,
          "critical": false
        },
        {
          "name": "askMCB L1 - MCB Website RAG",
          "status": "healthy",
          "response_time_ms": 16571,
          "last_check": "2026-11-22T06:05:21",
          "error": false,
          "critical": false
        },
        {
          "name": "askMCB L2 - WhatsApp Org Finder (mail_channel)",
          "status": "healthy",
          "response_time_ms": 6099,
          "last_check": "2026-11-22T06:10:44",
          "error": false,
          "critical": true
        },
        {
          "name": "askMCB L2 - WhatsApp Prayer Times (mail_channel)",
          "status": "healthy",
          "response_time_ms": 2269,
          "last_check": "2026-11-22T06:10:46",
          "error": false,
          "critical": true
        },
        {
          "name": "askMCB L2 - WhatsApp Legal (mail_channel)",
          "status": "healthy",
          "response_time_ms": 5468,
          "last_check": "2026-11-22T05:50:12",
          "error": false,
          "critical": true
        },
        {
          "name": "askMCB L2 - SMS Org Finder (mail_channel)",
          "status": "healthy",
          "response_time_ms": 5897,
          "last_check": "2026-11-22T05:50:18",
          "error": false,
          "critical": false
        },
        {
          "name": "askMCB L2 - Telegram Org Finder (mail_channel)",
          "status": "healthy",
          "response_time_ms": 5064,
          "last_check": "2026-11-22T05:55:25",
          "error": false,
          "critical": false
        },
        {
          "name": "askMCB L2 - Web Widget Org Finder (mail_channel)",
          "status": "healthy",
          "response_time_ms": 7150,
          "last_check": "2026-11-22T05:56:51",
          "error": false,
          "critical": false
        }
      ]
    }
  ],
  "services": [
    {
      "name": "Community Dashboard",
      "status": "healthy",
      "response_time_ms": 3,
      "last_check": "2026-11-22T06:20:00",
      "error": false,
      "critical": true
    },
    {
      "name": "User DB Check",
      "status": "healthy",
      "response_time_ms": 1,
      "last_check": "2026-11-22T06:20:00",
      "error": false,
      "critical": true
    }
  ],
  "external_services": {
    "railway_microservices": [
      {
        "name": "Chatbot Service",
        "status": "healthy",
        "response_time_ms": 81,
        "url": "https://chatbot-service-production-07e3.up.railway.app/health",
        "last_check": "2026-11-22T06:20:08",
        "error": false,
        "critical": true,
        "description": "AI Chatbot for VMM (LangChain + OpenAI)"
      },
      {
        "name": "CV Parser Service",
        "status": "healthy",
        "response_time_ms": 105,
        "url": "https://cv-parser-production-3522.up.railway.app/health",
        "last_check": "2026-11-22T06:20:08",
        "error": false,
        "critical": false,
        "description": "CV/Resume parsing with ESCO taxonomy"
      },
      {
        "name": "Matching Service",
        "status": "healthy",
        "response_time_ms": 108,
        "url": "https://matching-service-production-c5a3.up.railway.app/health",
        "last_check": "2026-11-22T06:20:08",
        "error": false,
        "critical": false,
        "description": "AI job/candidate matching"
      },
      {
        "name": "Jobs API",
        "status": "healthy",
        "response_time_ms": 103,
        "url": "https://jobs-api-production-c07d.up.railway.app/health",
        "last_check": "2026-11-22T06:19:52",
        "error": false,
        "critical": false,
        "description": "Jobs aggregation API"
      },
      {
        "name": "Course Finder",
        "status": "healthy",
        "response_time_ms": 88,
        "url": "https://coursefinder-production.up.railway.app/health",
        "last_check": "2026-11-22T06:19:52",
        "error": false,
        "critical": false,
        "description": "Course search and discovery"
      },
      {
        "name": "MCB API Gateway",
        "status": "healthy",
        "response_time_ms": 90,
        "url": "https://mcb-api-gateway-production.up.railway.app/api/v1/health",
        "last_check": "2026-11-22T06:19:52",
        "error": false,
        "critical": true,
        "description": "FastAPI gateway exposing 99 endpoints + MCP server for external integrations"
      },
      {
        "name": "MCB Website RAG API",
        "status": "healthy",
        "response_time_ms": 88,
        "url": "https://mcb-website-rag-api-production.up.railway.app/health",
        "last_check": "2026-11-22T06:19:53",
        "error": false,
        "critical": false,
        "description": "OG-RAG service over mcb.org.uk content (powers askMCB search_mcb_website). Direct probe, independent of the /chat L1 heartbeat."
      },
      {
        "name": "OSRM Routing",
        "status": "healthy",
        "response_time_ms": 57,
        "url": "https://osrmproj-production.up.railway.app/route/v1/driving/0,51?overview=false",
        "last_check": "2026-11-22T06:19:53",
        "error": false,
        "critical": false,
        "description": "Routing and directions service"
      },
      {
        "name": "Document Processor",
        "status": "healthy",
        "response_time_ms": 97,
        "url": "https://document-processor-production-6888.up.railway.app/health",
        "last_check": "2026-11-22T06:20:01",
        "error": false,
        "critical": false,
        "description": "AI-powered document extraction for prayer timetables and events"
      }
    ],
    "thirdparty_apis": [
      {
        "name": "Mapbox",
        "status": "healthy",
        "response_time_ms": 48,
        "url": "https://api.mapbox.com/",
        "last_check": "2026-11-22T06:20:03",
        "error": false,
        "critical": true,
        "description": "Maps, geocoding, and address search"
      },
      {
        "name": "OpenAI",
        "status": "healthy",
        "response_time_ms": 202,
        "url": "https://api.openai.com/v1/models",
        "last_check": "2026-11-22T06:20:03",
        "error": false,
        "critical": true,
        "description": "AI email generation and chatbot"
      },
      {
        "name": "Google Gemini",
        "status": "healthy",
        "response_time_ms": 50,
        "url": "https://generativelanguage.googleapis.com/",
        "last_check": "2026-11-22T06:20:03",
        "error": false,
        "critical": false,
        "description": "AI enrichment for organizations"
      },
      {
        "name": "Google Places",
        "status": "healthy",
        "response_time_ms": 80,
        "url": "https://maps.googleapis.com/maps/api/place/nearbysearch/json",
        "last_check": "2026-11-22T06:20:04",
        "error": false,
        "critical": false,
        "description": "Mosque and venue verification"
      },
      {
        "name": "Twilio",
        "status": "healthy",
        "response_time_ms": 67,
        "url": "https://api.twilio.com/",
        "last_check": "2026-11-22T06:20:04",
        "error": false,
        "critical": true,
        "description": "SMS and WhatsApp messaging"
      },
      {
        "name": "Companies House",
        "status": "healthy",
        "response_time_ms": 71,
        "url": "https://api.company-information.service.gov.uk/",
        "last_check": "2026-11-22T06:20:04",
        "error": false,
        "critical": false,
        "description": "UK company information lookup"
      },
      {
        "name": "Charity Commission",
        "status": "healthy",
        "response_time_ms": 112,
        "url": "https://api.charitycommission.gov.uk/register/api/allcharitydetailsV2/0/1",
        "last_check": "2026-11-22T06:20:04",
        "error": false,
        "critical": false,
        "description": "UK charity data and verification"
      },
      {
        "name": "ONS Nomis",
        "status": "healthy",
        "response_time_ms": 6600,
        "url": "https://www.nomisweb.co.uk/api/v01/dataset/def.sdmx.json",
        "last_check": "2026-11-22T06:20:00",
        "error": false,
        "critical": false,
        "description": "Census 2021 demographic data"
      },
      {
        "name": "Serper",
        "status": "healthy",
        "response_time_ms": 176,
        "url": "https://google.serper.dev/",
        "last_check": "2026-11-22T06:20:05",
        "error": false,
        "critical": false,
        "description": "Web search and website discovery"
      },
      {
        "name": "AlAdhan",
        "status": "healthy",
        "response_time_ms": 116,
        "url": "https://api.aladhan.com/v1/currentTime?zone=Europe/London",
        "last_check": "2026-11-22T06:20:05",
        "error": false,
        "critical": false,
        "description": "Prayer times calculation API"
      }
    ],
    "railway_deployments": [
      {
        "name": "Railway Build: mcbplatform (production)",
        "status": "unknown",
        "response_time_ms": 236,
        "last_check": "2026-11-22T06:20:02",
        "error": "Railway API token not authorized: RAILWAY_API_KEY needs replacing",
        "critical": true,
        "description": "Latest production deployment of the Odoo platform. Alerts on FAILED/CRASHED.",
        "environment_id": "c7f9d990-1f39-4c1a-9030-4c1b881df8fd",
        "service_id": "c57f1ce4-b6bc-4335-b915-00b7431ac539"
      },
      {
        "name": "Railway Build: chatbot-service (production)",
        "status": "unknown",
        "response_time_ms": 225,
        "last_check": "2026-11-22T06:20:02",
        "error": "Railway API token not authorized: RAILWAY_API_KEY needs replacing",
        "critical": true,
        "description": "Latest production deployment of the chatbot sidecar.",
        "environment_id": "c7f9d990-1f39-4c1a-9030-4c1b881df8fd",
        "service_id": "5e6ef111-8b1b-458e-afb3-542c715c66ca"
      },
      {
        "name": "Railway Build: mcb-api-gateway (production)",
        "status": "unknown",
        "response_time_ms": 217,
        "last_check": "2026-11-22T06:20:03",
        "error": "Railway API token not authorized: RAILWAY_API_KEY needs replacing",
        "critical": true,
        "description": "Latest production deployment of the FastAPI gateway sidecar.",
        "environment_id": "c7f9d990-1f39-4c1a-9030-4c1b881df8fd",
        "service_id": "b17722b3-ae71-48a1-af7f-94c20ed81544"
      },
      {
        "name": "Railway Build: document-processor (production)",
        "status": "unknown",
        "response_time_ms": 232,
        "last_check": "2026-11-22T06:20:03",
        "error": "Railway API token not authorized: RAILWAY_API_KEY needs replacing",
        "critical": false,
        "description": "Latest production deployment of the document-processor sidecar.",
        "environment_id": "c7f9d990-1f39-4c1a-9030-4c1b881df8fd",
        "service_id": "da677cc0-1cd3-4e6d-bcd8-4fab12449f09"
      }
    ]
  },
  "active_incidents": []
}