UNPKG

open-lineage-client

Version:

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

18 lines 522 B
import { isValidURI } from '../utils/utils.js'; /** * Base class for all events. */ export class BaseEvent { constructor(eventTime, producer, schemaURL) { if (!isValidURI(schemaURL) || !isValidURI(producer)) { throw new Error('Invalid URL'); } this.eventTime = eventTime; this.producer = producer; this.schemaURL = schemaURL; } getSchema() { return 'https://openlineage.io/spec/2-0-2/OpenLineage.json'; } } //# sourceMappingURL=BaseEvent.js.map