UNPKG

open-lineage-client

Version:

TypeScript/JavaScript client for creating and sending OpenLineage standard events.

26 lines (25 loc) 873 B
import { Run } from '../entities/Run.js'; import { Job } from '../entities/Job.js'; import { RunEvent } from '../events/RunEvent.js'; import { InputDataset } from '../entities/InputDataset.js'; import { OutputDataset } from '../entities/OutputDataset.js'; import { EventType } from '../types/EventTypes.js'; /** * Builder for creating RunEvent instances. */ export declare class RunEventBuilder { private eventTime; private producer; private schemaURL; private eventType; private run?; private job?; private inputs?; private outputs?; constructor(eventTime: string, producer: string, schemaURL: string, eventType: EventType); setRun(run: Run): this; setJob(job: Job): this; setInputs(inputs: InputDataset[] | OutputDataset[]): this; setOutputs(outputs: InputDataset[] | OutputDataset[]): this; build(): RunEvent; }