Struct tk_cantal::Peer
[−]
[src]
pub struct Peer { pub id: String, pub hostname: String, pub name: String, pub primary_addr: Option<String>, pub addresses: Vec<String>, pub known_since: SystemTime, pub last_report: Option<SystemTime>, pub probe_time: Option<SystemTime>, pub last_report_direct: Option<SystemTime>, // some fields omitted }
Info about the peer
We currently include only a subset of data reported by cantal here. Mostly things that are unlikely to change in future. This will be fixed when cantal grows stable API.
Fields
id: String
Host identifier (machine-id)
hostname: String
Hostname of the host
name: String
Name of the host, usually FQDN
primary_addr: Option<String>
Primary IP address (which works of pings, etc)
addresses: Vec<String>
The list of all IP addresses of the host
known_since: SystemTime
Time when peer became known to this host
last_report: Option<SystemTime>
Time of last report across the network
probe_time: Option<SystemTime>
Last time probe (ping) sent
This is useful to check if last_report is too outdated
last_report_direct: Option<SystemTime>
Last report directly to this host