sylphx analytics analytics_events
Every sylphx analytics analytics_events command: its argument, its flags and a run line.
The analytics_events commands of Sylphx Analytics, as the CLI spells them: the same
calls as the analytics_events API page, typed for the
shell. Install, sign in and the grammar are on the CLI index.
batch
Records a batch of events. Each event is judged alone: a bad event is reported in results and the rest are stored. A duplicate event_id (in this or an earlier batch) is counted once. The response is sent only after the store holds the accepted events.
NAME — the resource's name; a bare id is enough below the linked
project.
CLI
sylphx analytics analytics-events batch orgs/acme/projects/shop/envs/productionPOST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/analytics_events:batch · scope analytics:ingest · effect write · Request, response and examples
Flags
| Flag | Type | What it does |
|---|---|---|
--events | json | The events, 1 to 500. Required. Repeat the flag for each value. |
--sent-time | timestamp | When the sender built the batch, on its clock. When it differs from the receive time by more than 10 minutes, every event time is shifted by the difference. |
--consent | enum | The app's current analytics consent; events are stored only when GRANTED. A publishable-key batch that is not GRANTED has every event rejected consent_not_granted (still 200, nothing stored). A secret-key batch with UNSPECIFIED counts as granted (the tenant's server attests); DENIED is always refused. One of granted, denied. |
list
Lists the environment's raw events in a time range, newest first.
PARENT — optional: the CLI fills it from the linked project or the
key's scope when it is left out.
CLI
sylphx analytics analytics-events list orgs/acme/projects/shop/envs/productionGET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/analytics_events · scope analytics:read · effect read · Request, response and examples
Flags
| Flag | Type | What it does |
|---|---|---|
--start-time | timestamp | The interval start; required, at most 31 days before end_time. Required. |
--end-time | timestamp | The interval end; default now. |
--event-name | string | Only events with this name. |
--subject-id | string | Only events of this subject (the user id, else the anon id). |
--page-size | int | At most this many; default 100, clamped to 1000. |
--page-token | string | next_page_token of the previous page; bound to the tenant, interval and filters. |
query
Aggregates deduplicated events in the environment over a bounded interval.
NAME — the resource's name; a bare id is enough below the linked
project.
CLI
sylphx analytics analytics-events query orgs/acme/projects/shop/envs/productionPOST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/analytics_events:query · scope analytics:read · effect read · Request, response and examples
Flags
| Flag | Type | What it does |
|---|---|---|
--start-time | timestamp | Inclusive start of the interval, at most 31 days before end_time. Required. |
--end-time | timestamp | Exclusive end of the interval; defaults to now. |
--rollup | json | Time buckets, counts, and an optional property sum. Set exactly one of rollup, funnel, retention, active_users, sessions, or paths. |
--funnel | json | Ordered conversion steps. |
--retention | json | Calendar cohorts and exact or unbounded subject retention by period. |
--active-users | json | Exact distinct active subjects in calendar or daily trailing windows. |
--sessions | json | Session count and exact median duration by session start day. |
--time-zone | string | Case-sensitive IANA reporting time zone for calendar buckets; defaults to UTC. Bucket starts are UTC instants; the query interval, funnels, and paths are unchanged. |
--paths | json | Ranked event sequences before or after an anchor in each session. |
--traffic-filter | enum | Applies to every query leg. Default exclude_internal_qa retains customer and unknown traffic. Use all to include QA, or verified_customer_only to include only server-attested customer traffic. One of all, exclude_internal_qa, verified_customer_only. |