import { Vercel } from "@vercel/sdk";
const vercel = new Vercel({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await vercel.checks.getAllChecks({
deploymentId: "dpl_2qn7PZrx89yxY34vEZPD31Y9XVj6",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
console.log(result);
}
run();{
"checks": [
{
"createdAt": 123,
"id": "<string>",
"integrationId": "<string>",
"name": "<string>",
"rerequestable": true,
"blocking": true,
"status": "registered",
"updatedAt": 123,
"completedAt": 123,
"conclusion": "canceled",
"detailsUrl": "<string>",
"output": {
"metrics": {
"FCP": {
"value": 123,
"source": "web-vitals",
"previousValue": 123
},
"LCP": {
"value": 123,
"source": "web-vitals",
"previousValue": 123
},
"CLS": {
"value": 123,
"source": "web-vitals",
"previousValue": 123
},
"TBT": {
"value": 123,
"source": "web-vitals",
"previousValue": 123
},
"virtualExperienceScore": {
"value": 123,
"source": "web-vitals",
"previousValue": 123
}
}
},
"path": "<string>",
"startedAt": 123
}
]
}List all of the checks created for a deployment.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await vercel.checks.getAllChecks({
deploymentId: "dpl_2qn7PZrx89yxY34vEZPD31Y9XVj6",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
console.log(result);
}
run();{
"checks": [
{
"createdAt": 123,
"id": "<string>",
"integrationId": "<string>",
"name": "<string>",
"rerequestable": true,
"blocking": true,
"status": "registered",
"updatedAt": 123,
"completedAt": 123,
"conclusion": "canceled",
"detailsUrl": "<string>",
"output": {
"metrics": {
"FCP": {
"value": 123,
"source": "web-vitals",
"previousValue": 123
},
"LCP": {
"value": 123,
"source": "web-vitals",
"previousValue": 123
},
"CLS": {
"value": 123,
"source": "web-vitals",
"previousValue": 123
},
"TBT": {
"value": 123,
"source": "web-vitals",
"previousValue": 123
},
"virtualExperienceScore": {
"value": 123,
"source": "web-vitals",
"previousValue": 123
}
}
},
"path": "<string>",
"startedAt": 123
}
]
}Default authentication mechanism
The deployment to get all checks for
"dpl_2qn7PZrx89yxY34vEZPD31Y9XVj6"
The Team identifier to perform the request on behalf of.
"team_1a2b3c4d5e6f7g8h9i0j1k2l"
The Team slug to perform the request on behalf of.
"my-team-url-slug"
Show child attributes
registered, running, completed canceled, failed, neutral, succeeded, skipped, stale Show child attributes
Show child attributes