mirror of
https://github.com/outscale/zabbix-super-vision.git
synced 2024-11-14 12:25:47 +01:00
f2235d4b45
- 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
18 lines
393 B
Python
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")
|