pub struct PatchTargetIn {
pub capacity: Option<String>,
pub host: Option<String>,
pub id: Option<String>,
pub kind: Option<String>,
pub label: Option<String>,
pub metrics: Option<Box<Metrics>>,
pub spec: Option<Box<Spec>>,
pub status: Option<String>,
}Fields§
§capacity: Option<String>Capacity rewrites the human summary, up to 256 characters. "" clears it.
host: Option<String>Host re-points the hostname sessions are matched by. Moving it moves the load: the session counts follow the new name from the next read.
id: Option<String>ID is the target to update, from the path.
kind: Option<String>Kind re-files it under laptop | cloud | gpu | cluster | machine.
label: Option<String>Label renames the machine, up to 128 characters. Empty STRING is refused — a target with no name is a row nobody can pick out of a fleet.
metrics: Option<Box<Metrics>>Metrics replaces the live sample, and sending one IS A HEARTBEAT: the server stamps the time and appends the point to the fleet series. Sending an all-zero sample CLEARS the heartbeat — the machine goes back to having no liveness fact at all, and its stored status is taken at face value again.
spec: Option<Box<Spec>>Spec replaces the static capability whole, sanitized and clamped the same way a register’s is.
status: Option<String>Status sets operator INTENT: online | offline | draining. Draining is how a machine is taken out of dispatch without ending what is already on it. What comes back may still read offline, because the heartbeat outranks the intent.
Implementations§
Source§impl PatchTargetIn
impl PatchTargetIn
pub fn new() -> PatchTargetIn
Trait Implementations§
Source§impl Clone for PatchTargetIn
impl Clone for PatchTargetIn
Source§fn clone(&self) -> PatchTargetIn
fn clone(&self) -> PatchTargetIn
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more