Overview
Returns the current system lifecycle state along with validation metrics and fault injection parameters. Use this endpoint to monitor system transitions and track model performance during calibration and fault injection phases.Endpoint
System States
The system operates in one of four states:| State | Description |
|---|---|
IDLE | System ready. Click ‘Calibrate’ to begin. |
CALIBRATING | Generating healthy data, building baseline, training ML models. |
MONITORING_HEALTHY | Calibration complete. Monitoring healthy operation with batch-feature detection. |
FAULT_INJECTION | Injecting faulty sensor data with specified fault type and severity. |
Response
Current system state enum:
IDLE, CALIBRATING, MONITORING_HEALTHY, or FAULT_INJECTIONHuman-readable status message describing current operation
ISO 8601 timestamp when current state was entered (UTC)
Active fault type during
FAULT_INJECTION state: SPIKE, DRIFT, JITTER, or DEFAULTActive fault severity:
MILD, MEDIUM, or SEVERENumber of samples used for baseline training (1000 during calibration)
Percentage of healthy points classified as LOW risk (target: ≥95%)
Percentage of faulty points classified as HIGH+ risk (target: ≥90%)
Example Request
cURL
Python
Example Response
Validation Metrics
Healthy Stability
Measures the false positive rate during healthy monitoring:- ≥95%: Excellent baseline (low false alarms)
- 85-94%: Acceptable (minor noise)
- 85%: Baseline needs recalibration
Fault Capture Rate
Measures the true positive rate during fault injection:- ≥90%: Strong anomaly detection
- 70-89%: Moderate detection (consider severity tuning)
- 70%: Weak detection (model may need retraining)
State Transitions
The system follows this lifecycle:Use Cases
Dashboard Polling
Poll every 1-2 seconds to update UI state indicators and progress messages
Model Validation
Monitor
healthy_stability and fault_capture_rate to verify baseline qualityAutomation Scripts
Check state before triggering calibration or fault injection workflows
Debugging
Inspect
message field for detailed status during long-running operationsError Responses
This endpoint does not return errors under normal operation. It always returns the current system state.Related Endpoints
- POST /system/calibrate - Start baseline calibration
- POST /system/inject-fault - Inject faults for testing
- POST /system/purge - Deep system reset