Expand description
Performance Mode API handlers
Provides HTTP endpoints for performance mode:
- Start/stop performance simulation
- Configure RPS profiles
- Add/remove bottlenecks
- Get performance metrics and snapshots
Structs§
- AddBottleneck
Request - Request to add bottleneck
- Performance
Response - Response for performance operations
- Performance
State - State for performance mode handlers
- Start
Performance Request - Request to start performance mode
- Update
RpsRequest - Request to update RPS
Functions§
- add_
bottleneck - Add bottleneck POST /api/performance/bottlenecks
- clear_
bottlenecks - Remove all bottlenecks DELETE /api/performance/bottlenecks
- get_
performance_ snapshot - Get current performance snapshot GET /api/performance/snapshot
- get_
performance_ status - Get performance status GET /api/performance/status
- performance_
router - Create the Axum router for performance mode API
- start_
performance - Start performance mode POST /api/performance/start
- stop_
performance - Stop performance mode POST /api/performance/stop
- update_
rps - Update target RPS POST /api/performance/rps