mirror of
https://github.com/outscale/zabbix-super-vision.git
synced 2024-11-14 20:35:47 +01:00
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")
|