summaryrefslogtreecommitdiff
path: root/ATRI/plugins/console/models.py
blob: 973d05d16cad3a2ed37bb913547f85b78557eddc (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
40
from pydantic import BaseModel


class AuthData(BaseModel):
    ip: str
    port: str
    token: str


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