Aller au contenu

AsyncAPI Protocol Spec

Ce contenu n’est pas encore disponible dans votre langue.

The DAIMON kernel broadcasts all outbound events using the event-driven protocol described in the AsyncAPI specification. This allows SIEM logs, operators, and audit collectors to ingest state changes.

The raw specification is hosted at: 👉 asyncapi.yaml

  • audit/events: Append-only transaction feed. Broadcasts signed state mutations conforming to the Audit Event Schema.
  • lifecycle/module: Real-time notifications of loaded, unloaded, failed, or rolled-back WASM business modules.
  • health: Periodic heartbeat telemetry showing head sequence ID and memory metrics.

Example Ingestion Client (gRPC stream wrapper)

Section titled “Example Ingestion Client (gRPC stream wrapper)”
// Subscribing to the audit/events channel defined in asyncapi.yaml
let mut client = DaimonAuditClient::connect("http://localhost:50051").await?;
let mut stream = client.subscribe_audit(AuditSubscriptionRequest::default()).await?.into_inner();
while let Some(event) = stream.message().await? {
println!("Ingested event {} (Seq: {})", event.event_id, event.sequence);
}