blob: cbc110d45ffa3289ab55d182d926d7fd897e1697 (
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
|
from pydantic import BaseModel
class PlatformRuntimeInfo(BaseModel):
cpu_percent: str
mem_percent: str
disk_percent: str
net_sent: str
net_recv: str
boot_time: str
class BotRuntimeInfo(BaseModel):
cpu_percent: str
mem_percent: str
run_time: str
class RuntimeInfo(BaseModel):
status_message: str
platform_info: PlatformRuntimeInfo
bot_info: BotRuntimeInfo
class ServiceInfo(BaseModel):
service: str
docs: str
permission: list
cmd_list: dict
enabled: bool
only_admin: bool
disable_user: list
disable_group: list
class BlockInfo(BaseModel):
user: dict
group: dict
|