zabbix-super-vision/schemas/__init__.py
sylvain.chateau f2235d4b45 New supervision
- using fastAPI
- offline/online working
- warning if ZABBIX API is too long
- showing settings
- showing last ack message
- showing procedure
- menu split by SU team
2024-02-05 15:47:38 +01:00

18 lines
393 B
Python

from typing import Dict
from pydantic import BaseModel, Field, RootModel
class ZabbixServer(BaseModel):
ip: str
port: int
ServerStatuses = RootModel[Dict[str, bool]]
class HostGroupRequest(BaseModel):
output: str = "extend"
search: dict = Field(default_factory=lambda: {"name": ""})
searchWildcardsEnabled: bool = Field(default=True, alias="searchWildcardsEnabled")