Returns the current operational status and baseline information for a specific machine. Requires that a baseline has been created for the machine via POST /v1/baseline.
The machine identifier to query.
Current regime: HEALTHY, ACTIVE, TRANSITION, or SHOCK.
Most recent energy score.
Most recent z-score relative to baseline.
Associated baseline identifier.
Whether an alert is currently active for this machine.
curl https://api.canaryedge.com/v1/status/pump-47 \
-H "X-Canary-Key: YOUR_API_KEY"
{
"machine_id": "pump-47",
"regime": "HEALTHY",
"last_energy": 0.034,
"last_z_score": 0.42,
"baseline_id": "bl_pump-47",
"alert_active": false
}
{
"code": "NotFound",
"message": "No baseline for machine 'pump-47'"
}