@kestra-io/libs
Version:
Kestra is an infinitely scalable orchestration and scheduling platform, creating, running, scheduling, and monitoring millions of complex pipelines.
15 lines (12 loc) • 483 B
text/typescript
import { Logger } from './logging.mjs';
interface KestraFunction {
(): void;
format(map: Record<string, any>): string;
_send(map: Record<string, any>): void;
_metrics(name: string, type: string, value: any, tags: any): void;
outputs(outputs: any): void;
counter(name: string, value: any, tags: any): void;
timer(name: string, duration: number | ((callback: () => void) => void), tags: any): void;
logger(): Logger;
}
export type { KestraFunction };