pub struct UsageEvent {
pub id: String,
pub name: String,
pub detail: Option<String>,
pub occurred_at: String,
}Expand description
One anonymous usage event — a milestone or an action on an install,
stamped when it happened. See Client::install_usage_events_with.
Fields§
§id: StringClient-generated UUID; the platform’s de-duplication key, so a retried batch never double-counts.
name: StringEvent name — snake_case, ^[a-z][a-z0-9_]{1,63}$. Free text by
contract, not an enum: the platform stores whatever arrives so a
new event can ship in the daemon without a server release. The
daemon owns the catalogue (and its privacy page lists it).
detail: Option<String>Optional qualifier from the same small vocabulary — e.g.
"inbound" / "outbound" on a connected-call event. Same
pattern and length rule as name. Never free text, never a
number, never anything the user typed.
occurred_at: StringISO-8601 timestamp of when the event happened on the client — not when it was sent, since batches are flushed later.