get_agent_meta: include hive_name + swarm_name in response (#710)
This commit is contained in:
parent
09c1abe5b4
commit
a91cf4493f
6 changed files with 69 additions and 1 deletions
|
|
@ -574,6 +574,17 @@ pub enum AgentResponse {
|
|||
status_text: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
status_set_at: Option<i64>,
|
||||
/// Hive display name (#701 / #710) — e.g. `"pr1ma"`. Host
|
||||
/// reads from its own `HYPERHIVE_HIVE_NAME` env (set by
|
||||
/// `services.hyperhive.hiveName`); `None` when the option
|
||||
/// isn't configured.
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
hive_name: Option<String>,
|
||||
/// Swarm display name (#701 / #710) — e.g. `"constellat1on"`.
|
||||
/// Source mirrors `hive_name` (`HYPERHIVE_SWARM_NAME` env /
|
||||
/// `services.hyperhive.swarmName`).
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
swarm_name: Option<String>,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
@ -1119,5 +1130,14 @@ pub enum ManagerResponse {
|
|||
status_text: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
status_set_at: Option<i64>,
|
||||
/// Hive display name (#701 / #710), same source + semantics
|
||||
/// as on `AgentResponse::AgentMeta`. Read from the host's
|
||||
/// `HYPERHIVE_HIVE_NAME` env so manager + agent surfaces
|
||||
/// return the same view.
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
hive_name: Option<String>,
|
||||
/// Swarm display name (#701 / #710), mirror of `hive_name`.
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
swarm_name: Option<String>,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue