No description
|
|
||
|---|---|---|
| crates/litmus-services | ||
| end2end | ||
| forest/templates | ||
| public | ||
| readme.d/assets | ||
| src | ||
| style | ||
| .env | ||
| .gitignore | ||
| Cargo.toml | ||
| LICENSE | ||
| mise.toml | ||
| README.md | ||
| rust-toolchain.toml | ||
Litmus
A lightweight health check and status page application built with Leptos and nocontrol.
Requirements
- Rust (nightly)
- cargo-leptos
- mise (optional, for task running)
Getting Started
Development
mise run dev
# or
cargo leptos watch
Production
mise run run
# or
cargo leptos serve --release
The application will be available at http://localhost:3000.
API Endpoints
| Endpoint | Description |
|---|---|
GET /api/status |
Overview of all health checks with uptime stats |
GET /api/status/checks/{id} |
Detailed stats and recent results for a specific check |
Configuration
Health checks are configured via the nocontrol reconciler. Example configuration:
HealthCheck {
id: "example".to_string(),
name: "Example Service".to_string(),
url: "https://example.com/health".to_string(),
interval: Duration::from_secs(30),
timeout: Duration::from_secs(10),
}