ostra events send
Ce contenu n’est pas encore disponible dans votre langue.
Send an event (single or batch)
Synopsis
Section titled “Synopsis”Send an event to a trigger. The argument is a trigger UUID or an alias (ostra config set alias.<slug> <uuid>, or --aliases-file).
Metadata: --meta-json sets a JSON object ('-' reads stdin); --meta k=v adds keys (a value that parses as JSON is sent typed, otherwise as a string); --meta-str k=v forces a string. --meta and --meta-str keys win over --meta-json.
Hook mode (--hook) is for fire-and-forget senders: quiet, always exit 0, failures appended to a capped log, send detached in the background. --sync keeps the semantics in the foreground, --strict restores real exit codes.
ostra events send <trigger-or-alias> [flags]Options
Section titled “Options” --aliases-file string External {slug: uuid} map (JSON or YAML) --batch string Batch file path (JSON), '-' reads stdin --fail-log string With --hook: failure log path (default $XDG_STATE_HOME/ostra/failed.log) --fail-log-max-lines int With --hook: failure log line cap (default 200) -h, --help help for send --hook Fire-and-forget: quiet, exit 0, failures logged, sent in the background --max-body int With --hook: body size cap in bytes before truncation (default 4096) --meta stringArray Metadata key=value (typed when the value is JSON, repeatable) --meta-json string Metadata as a JSON object ('-' reads stdin) --meta-str stringArray Metadata key=value forced to a string (repeatable) --strict With --hook: foreground, real exit codes (failures still logged) --sync With --hook: run in the foregroundOptions inherited from parent commands
Section titled “Options inherited from parent commands” --api-key string API key for authentication --api-key-file string File holding the API key (keeps it off argv) --connect-timeout duration Connect timeout (0 disables) (default 5s) --endpoint string API endpoint URL -o, --output string Output format: json, table, csv -q, --quiet Minimal output --timeout duration Request timeout (0 disables) (default 10s)SEE ALSO
Section titled “SEE ALSO”- ostra events - Manage events