add per-agent url to host.sock agent status rows
This commit is contained in:
parent
29c94ea9e6
commit
4fae3f13cb
2 changed files with 53 additions and 1 deletions
|
|
@ -83,6 +83,16 @@ pub struct AgentStatusRow {
|
|||
/// `None`.
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pub status_set_at: Option<DateTime<Utc>>,
|
||||
/// This agent's own web UI, behind the gateway
|
||||
/// (`https://<hive-domain>/agent/<name>/`) — the same URL the operator
|
||||
/// dashboard's "open" action uses. `None` when the hive's domain isn't
|
||||
/// configured (`HYPERHIVE_HIVE_DOMAIN` unset), same condition
|
||||
/// `HostRequest::Urls`'s `HiveUrls::home` is `None` under. Present here
|
||||
/// (not just derivable from `HiveUrls`) so a client never has to build
|
||||
/// this path itself — see `hive-c0re/container_view.rs`'s `agent_url`
|
||||
/// for why a client deriving it is the wrong shape to depend on.
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pub url: Option<String>,
|
||||
}
|
||||
|
||||
/// One matrix identity an agent can act as, surfaced in `GetAgentMeta`'s
|
||||
|
|
|
|||
Loading…
Reference in a new issue