-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
Parent Issue
Part of #119 - Implement Custom Health Probes and Dependency Health Checks
Overview
Apply the proven health check pattern from #136 (Weight API) to the Sleep API service.
Scope
src/Biotrackr.Sleep.Api/infra/apps/sleep-api/main.bicep
Tasks
1. Install Health Check Packages
Add to Biotrackr.Sleep.Api.csproj:
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks" Version="9.0.0" />
<PackageReference Include="AspNetCore.HealthChecks.CosmosDb" Version="8.0.1" />
<PackageReference Include="AspNetCore.HealthChecks.AzureKeyVault" Version="8.0.1" />2. Implement Health Check Endpoints
Apply proven pattern from #136:
- Health checks for self, Cosmos DB (lightweight), Key Vault
- Reuse
FitbitApiHealthCheckimplementation - Configure
/health/live,/health/ready,/health/startupendpoints
3. Update Bicep Configuration
Update infra/apps/sleep-api/main.bicep:
- Apply same probe configuration as Weight API
4. Add Integration Tests
- Verify health endpoints return correct status codes
- Test dependency failure scenarios
Acceptance Criteria
- Health check packages installed
-
/health/live,/health/ready,/health/startupendpoints implemented - Cosmos DB, Key Vault, Fitbit API health checks configured
- Bicep probe configuration updated
- Integration tests pass
- Deployed to dev environment and validated
Dependencies
- Depends on Implement Health Checks for Weight API #136 (Weight API) - Pattern must be established first
References
Reactions are currently unavailable