List all deploy events
Query parameters
Parameters to control offset-based pagination
The (zero-based) offset of the first entity returned in the collection (defaults to 0)
The maximum number of entities to return (defaults to 30, maximum is 500)
Attributes to filter
IDs to fetch, comma separated
"42,554"
The type of activity
"response_success"
Build requested successfully
Build request failed
Successful build notification
Failed build notification
Build request aborted by user
Received notification is not valid
Fields used to order results
"created_at_desc"
Returns
Returns an array of resource objects of type build_event
Examples
import { buildClient } from "@datocms/cma-client-node";
async function run() { const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
// iterates over every page of results for await (const buildEvent of client.buildEvents.listPagedIterator()) { // Check the 'Returned output' tab for the result ☝️ console.log(buildEvent); }}
run();