MCPcopy Index your code
hub / github.com/PatchMon/PatchMon / DefaultSeverity

Function DefaultSeverity

server-source-code/internal/alerts/common.go:29–34  ·  view source on GitHub ↗

DefaultSeverity returns the severity to use, falling back to fallback if empty.

(severity, fallback string)

Source from the content-addressed store, hash-verified

27
28// DefaultSeverity returns the severity to use, falling back to fallback if empty.
29func DefaultSeverity(severity, fallback string) string {
30 if severity != "" {
31 return severity
32 }
33 return fallback
34}
35
36// CheckIntervalMinutes returns the configured check interval for an alert type, or the fallback.
37// This is used by the scheduler to dynamically set cron schedules for periodic alert checks.

Callers 6

ResolveSeverityFunction · 0.85
ProcessAgentUpdateFunction · 0.85
ProcessServerUpdateFunction · 0.85
ProcessHostStatusMonitorFunction · 0.85
OnDisconnectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected