Skip to main content

events

Creates, updates, deletes, gets or lists an events resource.

Overview

Nameevents
TypeResource
Idvercel.user.events

Fields

The following fields are returned by SELECT queries:

Successful response.

NameDatatypeDescription
idstringThe unique identifier of the Event. (example: uev_bfmMjiMnXfnPbT97dGdpJbCN)
createdAtnumberTimestamp (in milliseconds) of when the event was generated.
entitiesarrayA list of "entities" within the event text. Useful for enhancing the displayed text with additional styling and links.
textstringThe human-readable text of the Event. (example: You logged in via GitHub)
userobjectMetadata for the User who generated the event.
userIdstringThe unique identifier of the User who generated the event. (example: zTuNVUXEAvvnNN3IaqinkyMw)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_user_eventsselectteamIdlimit, since, until, types, userIdRetrieves a list of "events" generated by the User on Vercel. Events are generated when the User performs a particular action, such as logging in, creating a deployment, and joining a Team (just to name a few). When the teamId parameter is supplied, then the events that are returned will be in relation to the Team that was specified.
_list_user_eventsexecteamIdlimit, since, until, types, userIdRetrieves a list of "events" generated by the User on Vercel. Events are generated when the User performs a particular action, such as logging in, creating a deployment, and joining a Team (just to name a few). When the teamId parameter is supplied, then the events that are returned will be in relation to the Team that was specified.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
teamIdstringThe Team identifier or slug to perform the request on behalf of.
limitnumberMaximum number of items which may be returned.
sincestringTimestamp to only include items created since then.
typesstringComma-delimited list of event "types" to filter the results by.
untilstringTimestamp to only include items created until then.
userIdstringWhen retrieving events for a Team, the userId parameter may be specified to filter events generated by a specific member of the Team.

SELECT examples

Retrieves a list of "events" generated by the User on Vercel. Events are generated when the User performs a particular action, such as logging in, creating a deployment, and joining a Team (just to name a few). When the teamId parameter is supplied, then the events that are returned will be in relation to the Team that was specified.

SELECT
id,
createdAt,
entities,
text,
user,
userId
FROM vercel.user.events
WHERE teamId = '{{ teamId }}' -- required
AND limit = '{{ limit }}'
AND since = '{{ since }}'
AND until = '{{ until }}'
AND types = '{{ types }}'
AND userId = '{{ userId }}'
;

Lifecycle Methods

Retrieves a list of "events" generated by the User on Vercel. Events are generated when the User performs a particular action, such as logging in, creating a deployment, and joining a Team (just to name a few). When the teamId parameter is supplied, then the events that are returned will be in relation to the Team that was specified.

EXEC vercel.user.events._list_user_events 
@teamId='{{ teamId }}' --required,
@limit='{{ limit }}',
@since='{{ since }}',
@until='{{ until }}',
@types='{{ types }}',
@userId='{{ userId }}'
;