pub struct AgentBinding {
pub agent_name: Option<String>,
pub bot_version: Option<String>,
pub created_time: Option<String>,
pub machine_id: Option<String>,
pub message: Option<String>,
pub name: Option<String>,
pub org: Option<String>,
pub owner: Option<String>,
pub provider: Option<String>,
pub public_ip: Option<String>,
pub status: Option<String>,
pub updated_time: Option<String>,
}Fields§
§agent_name: Option<String>AgentName is the cloud Agent (/v1/agents) this machine runs — the agent a message to the bot is actually run against. It is the one field that decides what the bot DOES.
bot_version: Option<String>BotVersion pins the @hanzo/bot runtime version the machine runs. Empty means the machine took the default in force when it was bound.
created_time: Option<String>CreatedTime is when the binding was first made.
machine_id: Option<String>MachineId is the bound machine as vm addresses it, owner-qualified ("
message: Option<String>Message is vm’s human-readable detail on Status ("machine provisioning; @hanzo/bot runtime not yet confirmed") — the reason behind the state, not a second state.
name: Option<String>Name is the binding’s own key, which is the machine’s id: a machine hosts at most one agent, so the binding is named for it. This is the key a bots list joins bindings onto machines by.
org: Option<String>Org is the Hanzo tenant the binding belongs to.
owner: Option<String>Owner is the tenant vm filed the binding under, resolved from the ?owner it was called with — which is the caller’s validated org and never a body field.
provider: Option<String>Provider is the cloud the bound machine runs on, carried here so a bindings list says where each bot lives without a second read per machine.
public_ip: Option<String>PublicIp is the bound machine’s public address as vm recorded it on the binding. Empty while the machine has none yet.
status: Option<String>Status is the binding’s lifecycle in VM’s OWN words — "Pending" while the machine provisions and the runtime is unconfirmed, "running" once vm has confirmed it. The vocabulary is vm’s and passes through unmapped, which is why its capitalization does not match the machine states beside it, and it is vm’s reconciled reading rather than anything asserted here.
updated_time: Option<String>UpdatedTime is when vm last reconciled it — the age of Status.
Implementations§
Source§impl AgentBinding
impl AgentBinding
pub fn new() -> AgentBinding
Trait Implementations§
Source§impl Clone for AgentBinding
impl Clone for AgentBinding
Source§fn clone(&self) -> AgentBinding
fn clone(&self) -> AgentBinding
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more