zabgrab.model.server
A server chosen for a run.
Classes
Server(name, config)
|
A Zabbix server: a configured one (with a name) or a literal URL. |
-
class zabgrab.model.server.Server(name, config)[source]
Bases: object
A Zabbix server: a configured one (with a name) or a literal URL.
- Parameters:
-
-
name
The name in the config ([servers.NAME]), or None for a URL given
directly.
- Type:
str or None
-
config
The server’s settings (defaults for a URL given directly).
- Type:
ServerConfig
-
property url: str
The server’s API URL, as configured or given.
-
property label: str
How to refer to the server in messages.
-
property display: str
a quoted name, or the URL.
- Type:
How to refer to the server in sentences
-
property frontend_url: str
The web frontend’s base URL (without api_jsonrpc.php).
-
property token_page: str
The frontend page where users create API tokens.