Skip to main content

ResQ.Protocols

AlertSeverity Enum

Defines severity levels for alerts and events in the ResQ system.
public enum AlertSeverity

Fields

Low 0 Low severity - routine information or minor issues. Medium 1 Medium severity - notable events that may require attention. High 2 High severity - significant issues requiring prompt response. Critical 3 Critical severity - urgent issues requiring immediate action.

Example

// Create an alert with severity
var alert = new Alert
{
    Severity = AlertSeverity.High,
    Message = "Fire detected in sector 7"
};

// Convert from risk score
double riskScore = 0.85;
var severity = riskScore >= 0.9 ? AlertSeverity.Critical :
               riskScore >= 0.75 ? AlertSeverity.High :
               riskScore >= 0.6 ? AlertSeverity.Medium :
               AlertSeverity.Low;

Remarks

These severity levels are used throughout the system to classify the urgency and importance of alerts, incidents, and events. They map to protocol buffer enum values and are ordered from lowest (Low) to highest (Critical) severity. When converting from risk scores or confidence values, use the following thresholds:
  • Critical: Risk score >= 0.9 or confidence >= 0.95
  • High: Risk score >= 0.75 or confidence >= 0.85
  • Medium: Risk score >= 0.6 or confidence >= 0.7
  • Low: Risk score < 0.6 or confidence < 0.7