Skip to content

Latest commit

 

History

History
33 lines (28 loc) · 3.5 KB

recordeventsrequest.md

File metadata and controls

33 lines (28 loc) · 3.5 KB

RecordEventsRequest

Example Usage

import { RecordEventsRequest } from "@vercel/sdk/models/recordeventsop.js";

let value: RecordEventsRequest = {
  xArtifactClientCi: "VERCEL",
  xArtifactClientInteractive: 0,
  teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
  slug: "my-team-url-slug",
  requestBody: [
    {
      sessionId: "<id>",
      source: "LOCAL",
      event: "HIT",
      hash: "12HKQaOmR5t5Uy6vdcQsNIiZgHGB",
      duration: 400,
    },
  ],
};

Fields

Field Type Required Description Example
xArtifactClientCi string The continuous integration or delivery environment where this artifact is downloaded. VERCEL
xArtifactClientInteractive number 1 if the client is an interactive shell. Otherwise 0 0
teamId string The Team identifier to perform the request on behalf of. team_1a2b3c4d5e6f7g8h9i0j1k2l
slug string The Team slug to perform the request on behalf of. my-team-url-slug
requestBody models.RequestBody[] ✔️ N/A