Server¶
Server ¶
The connected Driverless AI server.
Example
client = driverlessai.Client(
address="http://localhost:12345",
username="py",
password="py",
)
client.server.address
client.server.username
client.server.version
configurations
property
¶
cpu_usages
property
¶
disk_usage
property
¶
gpu_usages
property
¶
memory_usage
property
¶
storage_enabled
property
¶
storage_enabled: bool
Whether the Driverless AI server is connected to H2O.ai Storage or not.
Returns:
-
bool
–
username
property
¶
username: str
Name the current user connected to the Driverless AI server.
Returns:
-
str
–
workers
property
¶
Statistics for each worker node of the Driverless AI server.
Returns:
Beta API
A beta API that is subject to future changes.
License ¶
Version ¶
A version of H2O Driverless AI.
Compatible with ==
, !=
, <
, <=
, >
, >=
operators.
Example: Comparing the Driverless AI server version
client.server.version == "1.10.5"
client.server.version < "1.10.5"
client.server.version > "1.10.5"
major
property
¶
major: int
The first part of the version or 0
if unavailable.
Examples:
>>> Version("1.10.5.1").major
1
Returns:
-
int
–
micro
property
¶
micro: int
The third part of the version or 0
if unavailable.
Examples:
>>> Version("1.10.5.1").micro
5
Returns:
-
int
–