blob: 92371f8800d61ef8f8705127860043ff78553d1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
from pydantic import BaseModel
class AuthData(BaseModel):
token: str
dead_time: float
class PlatformRuntimeInfo(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
class ServiceInfo(BaseModel):
service_name: str
service_docs: str
is_enabled: bool
disable_user: list
disable_group: list
|