Artifacts
Record an artifacts cache usage event
Records 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.
Authorization
AuthorizationRequiredBearer <token>Default authentication mechanism
In: header
Request Body
application/jsonOptionalbodyarray<object>Query Parameters
teamIdstringThe Team identifier to perform the request on behalf of.
slugstringThe Team slug to perform the request on behalf of.
Header Parameters
x-artifact-client-cistringThe continuous integration or delivery environment where this artifact is downloaded.
Maximum length:
50x-artifact-client-interactiveinteger1 if the client is an interactive shell. Otherwise 0
Minimum:
0Maximum: 1Success. Event recorded.