Users

Get end-user activity histogram

Changed on

Returns the end-user's per-bucket session activity across the range, oldest first. The range defaults to the trailing 30 days.

get/v1/projects/{projectSlug}/users/{userId}/activity

Request

  • Base URL
    https://api.latitude.so
  • Auth
    HTTP bearer

Path parameters

projectSlugstring required

Project slug (human-readable identifier)

Project slug (human-readable identifier). The CLI can also read this from the LATITUDE_PROJECT_SLUG environment variable.

userIdstring required

End-user identifier. URL-encode values containing special characters.

Query parameters

fromIsostring date-time

Lower bound (inclusive) of the time range. Defaults to 30 days before toIso.

toIsostring date-time

Upper bound (inclusive) of the time range. Defaults to now.

errorsOnly'true' | 'false'

When true, scope every aggregate to errored traces only.

Response

Activity histogram

bucketSecondsinteger required

Bucket width the buckets were computed with, in seconds.

fromIsostring required

ISO-8601 lower bound of the resolved range.

toIsostring required

ISO-8601 upper bound of the resolved range.

Changes