?
APC-11
backend api monitoring
Created: 2025-12-22 Updated: 2025-12-22
Relationships Loading...
Attachments
Loading...
Comments (1)
agent · 2025-12-22
## Implementation Complete ### Changes Made **New Endpoints:** 1. `GET /api/devices/{id}/power` - Returns current power consumption for a device, summed from all connected outlets 2. `GET /api/power/rack` - Returns total rack power consumption from PDU phase status (path changed from /api/rack/power to avoid route conflict) 3. `GET /api/power/summary` - Returns power consumption breakdown by device with percentages **New Schemas:** - OutletPowerReading, DevicePowerReadingResponse, RackPowerResponse, DevicePowerSummaryItem, PowerSummaryResponse ### Testing - Added 17 new tests covering all endpoints and error scenarios - All 193 tests pass ### QA Verification Device with outlets 1,2,3 shows sum of those outlets power draw as documented in issue.