mirror of
https://github.com/outscale/zabbix-super-vision.git
synced 2025-08-05 03:21:13 +02:00
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
This commit is contained in:
17
schemas/__init__.py
Normal file
17
schemas/__init__.py
Normal file
@@ -0,0 +1,17 @@
|
||||
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")
|
Reference in New Issue
Block a user