Skip to content
Console
Menu

Getting Started

Authentication

KV Store

List analytics events

Lists the environment's raw events in a time range, newest first.

Lists the environment's raw events in a time range, newest first.

Not available yet. Sylphx Analytics is declared in the registry but no backend serves it: every call answers 501 with the problem code UNIMPLEMENTED.

  • Path GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/analytics_events
  • Scope analytics:read
  • Effect read — nothing is written.
  • Collection analytics_events
  • Query start_time, end_time, event_name, subject_id, page_size, page_token
  • Pagination the answer carries analytics_events and, when there is more, next_page_token

#Request

FieldTypeWhat it is
parentstringThe parent to list in. Required.
start_timetimestampThe interval start; required, at most 31 days before end_time. Required.
end_timetimestampThe interval end; default now.
event_namestringOnly events with this name.
subject_idstringOnly events of this subject (the user id, else the anon id).
page_sizeint32At most this many; default 100, clamped to 1000.
page_tokenstringnext_page_token of the previous page; bound to the tenant, interval and filters.

#Response

FieldTypeWhat it is
analytics_eventsAnalyticsEvent[]The page.
next_page_tokenstringThe token of the next page; empty on the last page.

#AnalyticsEvent

FieldTypeWhat it is
namestringorgs/{org}/projects/{project}/envs/{env}/analytics_events/{event_id}.
uidstringThe event id again, so a client can hold it without parsing the name. Output only.
metaResourceMetaResource metadata.
event_namestringThe event name, for example $pageview. Output only.
event_timetimestampWhen it happened, on the sender's clock (corrected by sent_time). Output only.
received_timetimestampWhen the service received it. Output only.
anon_idstringThe device- or install-scoped id from the SDK. Output only.
user_idstringThe signed-in end user, when known. Output only.
session_idstringThe SDK session, when there is one. Output only.
propertiesstructThe event's properties. Output only.
contextEventContextThe sender's context, plus the platform and browser family the service parsed from the request. No IP address and no user agent string is kept. Output only.
sourceEventSourceWhere the event came from. Output only. One of client, server.

#ResourceMeta

FieldTypeWhat it is
generationint64Increases by one on every change to spec. Output only.
etagstringStrong ETag (AIP-154): changes on any change to spec, status, or metadata. Send it back as If-Match or etag to make Update and Delete conditional; a mismatch fails with ABORTED / 409 ETAG_MISMATCH. Output only.
create_timetimestampWhen the Resource was created. Output only.
update_timetimestampWhen the Resource last changed. Output only.
delete_timetimestampSet while the Resource is being deleted. Output only.
labelsmap<string, string>Caller-writable, indexed labels (AIP-122 label rules).
annotationsmap<string, string>Caller-writable, unindexed annotations.
display_namestringCaller-writable human-readable name.
creatorstringThe principal that created the Resource. Output only.

#EventContext

FieldTypeWhat it is
sdk_namestringThe SDK, for example @sylphx/sdk.
sdk_versionstringThe SDK version.
platformstringweb, ios, android, unity, server,...
app_versionstringThe app's own version.
localestringA BCP 47 locale, for example zh-HK.
browserstringThe browser family, for example Chrome; filled by the service from the request, and ignored when a client sends it. Output only.
osstringThe operating system family, for example Windows; filled by the service. Output only.
experimentsmap<string, string>The experiments the subject is in when the event happens: experiment key to variant key, at most 20 entries.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/analytics_events" \
  -H "Authorization: Bearer $SYLPHX_API_KEY"