FleetApi.Machine
Defines a FleetApi.Machine
struct, representing a host in the Fleet
cluster. It uses the host’s machine-id
as a unique identifier.
The following fields are public:
id
- unique identifier of Machine entity.primaryIP
- IP address that should be used to communicate with this host.metadata
- dictionary of key-value data published by the machine.
Summary↑
from_map(machine_map) | |
reachable?(machine, port \\ 7002) | Checks if this machine is responding to requests by attempting to access the API discovery endpoint of the Fleet API |
Types ↑
t :: %FleetApi.Machine{id: term, metadata: term, primaryIP: term}
Functions
Specs:
- from_map(%{String.t => any}) :: FleetApi.Machine.t
Specs:
- reachable?(FleetApi.Machine.t, integer) :: boolean
Checks if this machine is responding to requests by attempting to access the API discovery endpoint of the Fleet API.