ay events (Alias: sub)
Subscribed via WebSocket auf den aYOUne Customer-Event-Bus und filtert die Events auf der Client-Seite. Output formatiert als JSON, YAML oder Tabelle.
Syntax
ay events [flags]
Flags
| Flag | Default | Zweck |
|---|---|---|
-f, --format <fmt> |
json |
json / yaml / table |
-c, --category <cat> |
* |
Event-Category (z.B. sales, crm) |
-a, --action <act> |
* |
Action (z.B. create, update, delete) |
-l, --label <label> |
* |
Label-Filter |
-V, --value <val> |
* |
Value-Filter |
* = match-all. Filter werden client-seitig ausgewertet — Server sendet alle Events des aktiven Customers.
Beispiele
# Alle Events
ay events
# CRM-Events als YAML
ay sub -c crm -f yaml
# Sales-Creates in Tabellenform
ay events -c sales -a create -f table
# Nur Errors
ay events -c errors -f json
# Notification-Worker im Blick behalten
ay events -c notifications -f yaml
Schema
Jedes Event hat:
{
category: string,
action: string,
label: string,
value: string,
evt_data: { …payload }
}
Hinweis
Die WebSocket-Connection bleibt offen bis Ctrl+C. Auto-Reconnect ist eingebaut (mit Customer-Room-Rejoin). Für strukturierte Long-Term-Logs siehe monitor logs.