ProblemSeverity: {
    Critical: "critical";
    High: "high";
    Low: "low";
    Medium: "medium";
} = ...

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 operations
  • Medium - Issues that should be addressed but aren't urgent
  • High - Important issues requiring prompt attention
  • Critical - Severe issues that need immediate action

Example

Setting severity when creating a problem

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
};

Example

Filtering problems by severity

const criticalProblems = await provider.getProblems({
severity: ProblemSeverity.Critical
});

const urgentProblems = await provider.getProblems({
severity: [ProblemSeverity.High, ProblemSeverity.Critical]
});

Type declaration

  • Critical: "critical"
  • High: "high"
  • Low: "low"
  • Medium: "medium"