https://dev.kronoz.win/r/marzneshin.git
| 1 |
a47eb4c |
Dawsh |
2y ago |
from pydantic import BaseModel |
| 2 |
a47eb4c |
Dawsh |
2y ago |
|
| 3 |
a47eb4c |
Dawsh |
2y ago |
|
| 4 |
a47eb4c |
Dawsh |
2y ago |
class SystemStats(BaseModel): |
| 5 |
a47eb4c |
Dawsh |
2y ago |
version: str |
| 6 |
a47eb4c |
Dawsh |
2y ago |
mem_total: int |
| 7 |
a47eb4c |
Dawsh |
2y ago |
mem_used: int |
| 8 |
a47eb4c |
Dawsh |
2y ago |
cpu_cores: int |
| 9 |
a47eb4c |
Dawsh |
2y ago |
cpu_usage: float |
| 10 |
a47eb4c |
Dawsh |
2y ago |
total_user: int |
| 11 |
a47eb4c |
Dawsh |
2y ago |
users_active: int |
| 12 |
a47eb4c |
Dawsh |
2y ago |
incoming_bandwidth: int |
| 13 |
a47eb4c |
Dawsh |
2y ago |
outgoing_bandwidth: int |
| 14 |
a47eb4c |
Dawsh |
2y ago |
incoming_bandwidth_speed: int |
| 15 |
a47eb4c |
Dawsh |
2y ago |
outgoing_bandwidth_speed: int |