Skip to main content
Version: 4.7.29

Pipelines - Get multiple

caution

We have limited support for pipeline CRUD operations at this time. We hope to expand this in the future.

Examples

typescript
import { init, getPipelines } from '@gentrace/core';
 
init({
apiKey: process.env.GENTRACE_API_KEY,
});
 
const pipelines = await getPipelines({
label: 'example-label',
slug: 'example-slug',
});
 
for (const pipeline of pipelines) {
console.log('Pipeline: ', pipeline.displayName, pipeline.slug);
}

Get the pipelines associated with a given organization (through the supplied API key) using getPipelines(). Filter the pipeline output by certain parameters.

Arguments

params

This object has the type PipelineParams to filter retrieved pipeline objects by certain parameters.

Return value

An array of Pipeline objects

Types

🛠️ `PipelineParams`

The PipelineParams type is used to define parameters related to a pipeline. Here are the properties that can be included in PipelineParams:

label?: string Label for filtering pipelines

slug?: string Slug for filtering pipelines

🛠️ `Pipeline`

The Pipeline type represents the structure of a pipeline in TypeScript. Below are the properties that define a Pipeline.

id: string (UUID)

createdAt: string (ISO 8601)

updatedAt: string (ISO 8601)

archivedAt?: string (ISO 8601)

labels: string[]

displayName?: string

slug: string

organizationId: string (UUID)

goldenDatasetId?: string (UUID)

branch?: string The reference branch that the pipeline is associated with.