Skip to main content

deployment_events

Creates, updates, deletes, gets or lists a deployment_events resource.

Overview​

Namedeployment_events
TypeResource
Idvercel.deployments.deployment_events

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectid_or_urldirection, follow, limit, name, since, until, status_code, delimiter, builds, team_id, slugGet the build logs of a deployment by deployment ID and build ID. It can work as an infinite stream of logs or as a JSON endpoint depending on the input parameters.

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
id_or_urlstringThe unique identifier or hostname of the deployment.
buildsnumber
delimiternumber
directionstringOrder of the returned events based on the timestamp.
follownumberWhen enabled, this endpoint will return live events as they happen.
limitnumberMaximum number of events to return. Provide -1 to return all available logs.
namestringDeployment build ID.
sincenumberTimestamp for when build logs should be pulled from.
slugstringThe Team slug to perform the request on behalf of.
status_codeHTTP status code range to filter events by. (wire: statusCode)
team_idstringThe Team identifier to perform the request on behalf of. (wire: teamId)
untilnumberTimestamp for when the build logs should be pulled up until.

SELECT examples​

Get the build logs of a deployment by deployment ID and build ID. It can work as an infinite stream of logs or as a JSON endpoint depending on the input parameters.

SELECT
*
FROM vercel.deployments.deployment_events
WHERE id_or_url = '{{ id_or_url }}' -- required
AND direction = '{{ direction }}'
AND follow = '{{ follow }}'
AND limit = '{{ limit }}'
AND name = '{{ name }}'
AND since = '{{ since }}'
AND until = '{{ until }}'
AND status_code = '{{ status_code }}'
AND delimiter = '{{ delimiter }}'
AND builds = '{{ builds }}'
AND team_id = '{{ team_id }}'
AND slug = '{{ slug }}'
;