# Functions
Take a string representation of Lacework severity and return whether it properly maps to a valid severity (not unknown).
Initialize a severity from string.
Normalize takes a string representation of Lacework severity and returns it's normalized integer and string values.
Returns true if the first severity not as critical as the second severity
For instance:
- "info" is not as crtical as "low" (true) - "medium" is as critical as "medium" (false) - "high" is more critical than "medium" (false) - "unknown" is more critical than "medium" (false) - "medium" is not as critical as "unknown" (true).
Returns true if the threshold is proper and the severity is greater than or equal to the threshold
For instance:
- "medium" severity should be filtered for "high" threshold - "critical" severity should NOT be filtered for "high" threshold - "info" severity should NOT be filtered for "info" threshold - invalid (unknown) severity should NOT be filtered for * threshold - all severities should NOT be filtered for an invalid (unknown) threshold.
Sort a slice of Severity interfaces from critical -> info.
Sort a slice of Severity interfaces from info -> critical.
# Variables
A list of valid Lacework severities (critical, high, medium, low, info).
# Interfaces
No description provided by the author