it0/it0-web-admin/src/domain/entities/runbook.ts

24 lines
500 B
TypeScript

export interface Runbook {
id: string;
name: string;
description: string;
triggerType: 'manual' | 'alert' | 'scheduled';
promptTemplate: string;
allowedTools: string[];
maxRiskLevel: number;
autoApprove: boolean;
enabled: boolean;
createdAt: string;
updatedAt: string;
}
export interface RunbookExecution {
id: string;
runbookId: string;
status: 'running' | 'completed' | 'failed';
triggeredBy: string;
startedAt: string;
endedAt?: string;
durationMs?: number;
}