pub struct AgentLocalWork {
pub recorded_at: String,
pub gateway_sequence: i64,
pub standing: Vec<AgentLocalStandingWork>,
pub one_shot: Vec<AgentLocalOneShotWork>,
pub local_inputs: Vec<AgentLocalTask>,
pub metrics_interval_seconds: Option<i64>,
}Expand description
agentd 上报的本机工作视图。
Fields§
§recorded_at: String这份视图是什么时候算出来的(本机时钟)。
gateway_sequence: i64溯源:本视图对应网关的授权序号。不是授权副本 —— 只用来把本机视图与网关那一版对上号。
standing: Vec<AgentLocalStandingWork>手里生效或暂停的常驻工作。
one_shot: Vec<AgentLocalOneShotWork>手里未了结的一次性工作。
local_inputs: Vec<AgentLocalTask>本机配置里手工加的日志输入(运维逃生舱):不来自任何采集面,网关无从得知。
metrics_interval_seconds: Option<i64>汇总:指标上送周期(秒);None = 不上送。
Trait Implementations§
Source§impl Clone for AgentLocalWork
impl Clone for AgentLocalWork
Source§fn clone(&self) -> AgentLocalWork
fn clone(&self) -> AgentLocalWork
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentLocalWork
impl Debug for AgentLocalWork
Source§impl<'de> Deserialize<'de> for AgentLocalWork
impl<'de> Deserialize<'de> for AgentLocalWork
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentLocalWork, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentLocalWork, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AgentLocalWork
Source§impl JumoItem for AgentLocalWork
impl JumoItem for AgentLocalWork
Source§fn jumo_id() -> Option<&'static str>
fn jumo_id() -> Option<&'static str>
稳定身份:模型条目的全名(如
"Control.Gateway.Management.GatewayHealth")。 Read moreSource§fn jumo_kind() -> &'static str
fn jumo_kind() -> &'static str
.mju item kind:
"struct", "state", "enum", "variant",
"event", "message", "failure", "cap", "actor", "module",
"interface", "storage", "command", "dataflow", "lifecycle",
"layer", "dependency_rule", "decision", "failure_policy",
"flow", "verify", "target". Read moreSource§fn jumo_domain() -> &'static str
fn jumo_domain() -> &'static str
Domain name, e.g.
"Business", "Storage".Source§fn jumo_module() -> Option<&'static str>
fn jumo_module() -> Option<&'static str>
Module name, e.g.
"Design.JumoCore".Source§fn jumo_role() -> Option<&'static str>
fn jumo_role() -> Option<&'static str>
Message role, if kind is
"message": "command", "query", "response".Source§fn jumo_identity() -> Option<&'static str>
fn jumo_identity() -> Option<&'static str>
Failure identity path, if kind is
"failure", e.g. "payment.timeout".Source§fn jumo_storage_kind() -> Option<&'static str>
fn jumo_storage_kind() -> Option<&'static str>
Storage kind, if kind is
"storage":
"table", "document", "key_value", "queue", "object",
"search", "graph", "cache".Source§fn jumo_durability() -> Option<&'static str>
fn jumo_durability() -> Option<&'static str>
Storage durability, if kind is
"storage":
"transient", "persistent", "derived".Source§fn jumo_parent() -> Option<&'static str>
fn jumo_parent() -> Option<&'static str>
Actor parent name, if kind is
"actor", e.g. "User".Source§fn jumo_description() -> Option<&'static str>
fn jumo_description() -> Option<&'static str>
Failure description text, if kind is
"failure".Source§fn jumo_unique_fields() -> &'static [&'static str]
fn jumo_unique_fields() -> &'static [&'static str]
Field names marked
#[jumo(unique)].Source§impl PartialEq for AgentLocalWork
impl PartialEq for AgentLocalWork
Source§impl Serialize for AgentLocalWork
impl Serialize for AgentLocalWork
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AgentLocalWork
Auto Trait Implementations§
impl Freeze for AgentLocalWork
impl RefUnwindSafe for AgentLocalWork
impl Send for AgentLocalWork
impl Sync for AgentLocalWork
impl Unpin for AgentLocalWork
impl UnsafeUnpin for AgentLocalWork
impl UnwindSafe for AgentLocalWork
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more