Skip to main content

artifacts

Overview

Nameartifacts
TypeResource
Idvercel.artifacts.artifacts

Fields

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource and then invoke a supported method using the EXEC command

Methods

NameAccessible byRequired ParamsDescription
artifact_existsEXEChash, teamIdCheck that a cache artifact with the given hash exists. This request returns response headers only and is equivalent to a GET request to this endpoint where the response contains no body.
artifact_queryEXECteamId, data__hashesQuery information about an array of artifacts.
download_artifactEXEChash, teamIdDownloads a cache artifact indentified by its hash specified on the request path. The artifact is downloaded as an octet-stream. The client should verify the content-length header and response body.
record_eventsEXECteamIdRecords an artifacts cache usage event. The body of this request is an array of cache usage events. The supported event types are HIT and MISS. The source is either LOCAL the cache event was on the users filesystem cache or REMOTE if the cache event is for a remote cache. When the event is a HIT the request also accepts a number duration which is the time taken to generate the artifact in the cache.
statusEXECteamIdCheck the status of Remote Caching for this principal. Returns a JSON-encoded status indicating if Remote Caching is enabled, disabled, or disabled due to usage limits.
upload_artifactEXECContent-Length, hash, teamIdUploads a cache artifact identified by the hash specified on the path. The cache artifact can then be downloaded with the provided hash.