diff --git a/awareness.el b/awareness.el index 1867d37..cebebf2 100644 --- a/awareness.el +++ b/awareness.el @@ -39,8 +39,11 @@ fn ise_post(content: String) -> Void { fn emit_heartbeat() -> Void { let pulse: String = state_get("soul.pulse") let boot: String = state_get("soul_boot_count") + let idle: String = int_to_str(idle_count()) let ts: Int = time_now() - let payload: String = "{\"event\":\"heartbeat\",\"pulse\":" + pulse + ",\"boot\":" + boot + ",\"ts\":" + int_to_str(ts) + "}" + let nc: Int = engram_node_count() + let ec: Int = engram_edge_count() + let payload: String = "{\"event\":\"heartbeat\",\"pulse\":" + pulse + ",\"boot\":" + boot + ",\"idle\":" + idle + ",\"node_count\":" + int_to_str(nc) + ",\"edge_count\":" + int_to_str(ec) + ",\"ts\":" + int_to_str(ts) + "}" ise_post(payload) }