mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2026-04-22 23:57:20 +08:00
feat(api): add system resource monitoring functionality
- implement getSystemInfo to gather CPU and memory usage - add platform-specific implementations for memory and CPU usage - enhance OpenAPI documentation to include system resource metrics
This commit is contained in:
@@ -129,6 +129,12 @@ paths:
|
||||
properties:
|
||||
listen: { type: string, example: ":8554" }
|
||||
default_query: { type: string, example: "video&audio" }
|
||||
system:
|
||||
type: object
|
||||
properties:
|
||||
cpu_usage: { type: number, format: float, example: 23.5, description: "CPU usage percent (0-100)" }
|
||||
mem_total: { type: integer, format: int64, example: 17179869184, description: "Total physical memory in bytes" }
|
||||
mem_used: { type: integer, format: int64, example: 8589934592, description: "Used memory in bytes" }
|
||||
version: { type: string, example: "1.9.12" }
|
||||
|
||||
/api/exit:
|
||||
|
||||
Reference in New Issue
Block a user