diff options
author | Kyomotoi <[email protected]> | 2022-05-04 16:07:18 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2022-05-04 16:07:18 +0800 |
commit | 7042d94213532191a0c72d34d7c85193184c079f (patch) | |
tree | 0ec3c458f828889f92719e7010bf0a031a627de7 /ATRI/plugins/status/models.py | |
parent | 18302364230e5f7898b3c2da56284e89d86d1947 (diff) | |
download | ATRI-7042d94213532191a0c72d34d7c85193184c079f.tar.gz ATRI-7042d94213532191a0c72d34d7c85193184c079f.tar.bz2 ATRI-7042d94213532191a0c72d34d7c85193184c079f.zip |
✨ 为前端页面打基础, 更新命令及API
Diffstat (limited to 'ATRI/plugins/status/models.py')
-rw-r--r-- | ATRI/plugins/status/models.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/ATRI/plugins/status/models.py b/ATRI/plugins/status/models.py new file mode 100644 index 0000000..9026b2d --- /dev/null +++ b/ATRI/plugins/status/models.py @@ -0,0 +1,32 @@ +from pydantic import BaseModel + + +class ForAuthData(BaseModel): + ip: str + port: str + token: str + + +class PlatfromRuntimeInfo(BaseModel): + stat_msg: str + cpu_percent: str + mem_percent: str + disk_percent: str + inte_send: str + inte_recv: str + boot_time: str + + +class BotRuntimeInfo(BaseModel): + cpu_percent: str + mem_percent: str + bot_run_time: str + + +class MessageDealerInfo(BaseModel): + recv_msg: str + deal_msg: str + failed_deal_msg: str + total_r_m: str + total_d_m: str + total_f_m: str |