Const AlphaReadonlyCritical: "critical"ReadonlyHigh: "high"ReadonlyLow: "low"ReadonlyMedium: "medium"import { Problem, ProblemSeverity } from '@limetech/lime-web-components';
const problem: Problem = {
id: 'email-123',
providerId: 'email-integration',
type: 'delivery-failed',
description: 'Email could not be delivered to recipient',
createdAt: new Date().toISOString(),
severity: ProblemSeverity.High,
};
import {
PlatformServiceName,
ProblemSeverity,
} from '@limetech/lime-web-components';
const repository = platform.get(PlatformServiceName.ProblemRepository);
const criticalProblems = await repository.getProblems('email-integration', {
severity: ProblemSeverity.Critical,
});
const urgentProblems = await repository.getProblems('email-integration', {
severity: [ProblemSeverity.High, ProblemSeverity.Critical],
});
Available severity levels for problems.
Severity indicates the urgency and impact of a problem, helping users prioritize which issues need attention first. The levels are:
Low- Minor issues that don't significantly impact operationsMedium- Issues that should be addressed but aren't urgentHigh- Important issues requiring prompt attentionCritical- Severe issues that need immediate action