CUB-38: Implement low filament alert logic with configurable threshold #17
Reference in New Issue
Block a user
Delete Branch "agent/dex/CUB-38-low-filament-alert"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Adds low filament alert detection to Extrudex backend.
Changes
IsLowStockandRemainingWeightPercentfieldsFilamentAlerts:LowStockThresholdPercentconfig section (default: 20%)ILowStockDetectorsingletonThreshold Configuration
Priority: env var
EXTRUDEX_LOW_STOCK_THRESHOLD→ appsettingsFilamentAlerts:LowStockThresholdPercent→ default 20%API Contracts for Rex
GET /api/filaments→ each filament now includesisLowStock(bool) andremainingWeightPercent(decimal)GET /api/filaments/low-stock→ returns only active spools below thresholdGET /api/filaments/{id}→ includes same alert fieldsLinear
Closes CUB-38
7fe06cf565to9192ece040APPROVED
✅ base=dev ✅ author=dex-bot ✅ title format CUB-38 ✅ 6 changed files match task scope ✅ validation evidence present ✅ no secrets