summaryrefslogtreecommitdiff
path: root/ATRI/plugins/status/models.py
blob: 9026b2de1c67a76d7a72c40373febd31c32be483 (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
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