MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / liveness

Method liveness

atomic-agent/src/hook_health.rs:316–318  ·  view source on GitHub ↗

Describe the age of the last success relative to the current time.

(&self)

Source from the content-addressed store, hash-verified

314impl AgentHookSummary {
315 /// Describe the age of the last success relative to the current time.
316 pub fn liveness(&self) -> String {
317 self.liveness_at(&chrono::Utc::now().to_rfc3339())
318 }
319
320 fn liveness_at(&self, now: &str) -> String {
321 match (&self.last_fired, &self.last_ok) {

Callers

nothing calls this directly

Calls 1

liveness_atMethod · 0.80

Tested by

no test coverage detected