collapse success/severity/done into status

This commit is contained in:
Paul Fitzpatrick
2024-05-23 16:24:38 -04:00
parent 307334e8dd
commit fc4e43785e
4 changed files with 45 additions and 38 deletions

View File

@@ -13,9 +13,12 @@ export type BootProbeIds =
export interface BootProbeResult {
verdict?: string;
success?: boolean;
done?: boolean;
severity?: 'fault' | 'warning' | 'hmm';
// Result of check.
// "success" is a positive outcome.
// "none" means no fault detected (but that the test is not exhaustive
// enough to claim "success").
// "fault" is a bad error, "warning" a ... warning, "hmm" almost a debug message.
status: 'success' | 'fault' | 'warning' | 'hmm' | 'none';
details?: Record<string, any>;
}