zabbix-super-vision/schemas/__init__.py

18 lines
393 B
Python
Raw Permalink Normal View History

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")