Cloud Event List
The following is a list of all of the CloudEvents emitted by wasmCloud hosts in a lattice. The events are published to wasmbus.evt.{lattice-id}.{event-type}, and so will publish to wasmbus.evt.default.> by default.
All of the events in the table below are namespaced by the prefix com.wasmcloud.lattice, so the component_started event has the Cloud Event type of com.wasmcloud.lattice.component_started. These event types do not include the lattice identifier.
All fields indicated in the tables below are included in the data payload of the Cloud Events 1.0 specification JSON encoding.
Unless otherwise noted, the source field of the CloudEvent is the public key of the host from which the event originated.
| Type | Fields | Description |
|---|---|---|
component_start_failed | component_referror | Indicates a failed attempt to start a component |
component_stopped | public_keyinstance_idannotations | Indicates a single component instance stopped on a host |
component_started | public_keyimage_refapi_versioninstance_idannotations(map)claims(map) | A single component instance started |
component_updated | public_keyrevisioninstance_id | a component "live update" operation completed successfully |
component_update_failed | public_keyrevisioninstance_idreason | A live update operation failed |
components_started | public_keyimage_refannotationshost_idcountclaims(map) | A batch of component instances successfully started. host_id is the same as the envelope's source |
components_start_failed | public_keyimage_refannotationshost_iderror | A batch of component instances failed to start. host_id is the same as the envelope's source |
components_stopped | host_idpublic_keycountremainingannotations | A batch of component instances stopped. host_id is the same as the envelope's source |
provider_started | public_keyimage_reflink_namecontract_idinstance_idannotationsclaims(map) | A capability provider succesfully started |
provider_start_failed | provider_reflink_nameerror | A capability provider failed to start |
provider_stopped | public_keylink_namecontract_idinstance_idannotationsreason | A capability provider stopped |
host_started | labelsfriendly_nameuptime_secondsversion | Announced by a host after completing initialization |
host_stopped | labels | Announced by a host just prior to final termination |
host_heartbeat | componentsproviderslabelsfriendly_nameversionuptime_secondsuptime_human | Periodically emitted by hosts to advertise inventory and status |
health_check_passed | public_keycontract_idlink_name | A provider health check passed |
health_check_failed | public_keycontract_idlink_name | A provider health check failed |
health_check_status | public_keycontract_idlink_name | Provider health status unchanged |
refmap_set | oci_urlpublic_key | Event advertising a reference mapping being cached |
linkdef_set | idcomponent_idprovider_idlink_namecontract_idvalues(map) | Event advertising a link definition being cached |
linkdef_deleted | idcomponent_idprovider_idlink_namecontract_idvalues(map) | Event advertising link definition being deleted from cache |
The following events are emitted on a special topic, wasmbus.rpcevt.{lattice-id} to keep the relatively chatty RPC notifications separate from the other events.
| Type | Fields | Description |
|---|---|---|
invocation_failed | source (public_key, contract_id, link_name)dest (public_key, contract_id, link_name) operationbytes (payload len) | An RPC failure notification |
invocation_suceeded | Same as above | An RPC success notification |