mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-14 06:45:18 +00:00
19 lines
636 B
Python
19 lines
636 B
Python
from dataclasses import dataclass, field
|
|
from typing import Optional
|
|
|
|
from alt_utils import NestedDeserializableDataclass
|
|
|
|
|
|
@dataclass
|
|
class NetInterfaceConfig:
|
|
warning_threshold_sent_bytes: Optional[int] = None
|
|
critical_threshold_sent_bytes: Optional[int] = None
|
|
warning_threshold_recv_bytes: Optional[int] = None
|
|
critical_threshold_recv_bytes: Optional[int] = None
|
|
warning_threshold_comb_bytes: Optional[int] = None
|
|
critical_threshold_comb_bytes: Optional[int] = None
|
|
|
|
|
|
@dataclass
|
|
class NetCheckConfig(NestedDeserializableDataclass):
|
|
interfaces: dict[str, NetInterfaceConfig] = field(default_factory=dict)
|