()
| 57 | _monitoring_service = None |
| 58 | |
| 59 | def _get_monitoring_service(): |
| 60 | nonlocal _monitoring_service |
| 61 | if _monitoring_service is None: |
| 62 | if store is None: |
| 63 | raise HTTPException( |
| 64 | status_code=503, |
| 65 | detail="Monitoring service is not available: no FeatureStore configured", |
| 66 | ) |
| 67 | from feast.monitoring.monitoring_service import MonitoringService |
| 68 | |
| 69 | _monitoring_service = MonitoringService(store) |
| 70 | return _monitoring_service |
| 71 | |
| 72 | def _get_store(): |
| 73 | if store is None: |
no test coverage detected