# Functions
FetchRuleContent - fetching content for particular rule Return values: - Structure with rules and content - return true if the rule has been filtered by OSDElegible field.
GetAllContentV1 returns content for all the loaded rules.
GetAllContentV2 returns content for api v2.
GetContentForRecommendation returns content for rule with provided composite rule ID.
GetExternalRuleIDs returns a list of composite rule IDs ("| format") of external rules.
GetExternalRuleSeverities returns a map of rule IDs and their severity (total risk), along with a list of unique severities.
GetExternalRulesManagedInfo returns a map of rule IDs and the information whether a rule is managed (has osd_customer tag) or not.
GetInternalRuleIDs returns a list of composite rule IDs ("| format") of internal rules.
GetRuleContentV1 returns content for rule with provided `rule id` Caching is done under the hood, don't worry about it.
GetRuleContentV2 provides single rule for api v2.
GetRuleIDs returns a list of rule IDs (rule modules).
GetRuleWithErrorKeyContent returns content for rule with provided `rule id` and `error key`.
IsRuleInternal tries to look for the word "internal" in the ruleID / rule module, because it's currently not specified anywhere on it's own.
LoadRuleContent loads the parsed rule content into the storage.
RuleContentToV1 parses insights-results-types.RuleContent to RuleContentV1.
RuleContentToV2 parses insights-results-types.RuleContent to RuleContentV2.
RunUpdateContentLoop runs loop which updates rules content by ticker.
SetContentDirectoryTimeout sets the maximum duration for which the smart proxy waits if the content directory is empty.
SetRuleContentDirectory is made for easy testing fake rules etc.
StopUpdateContentLoop stops the loop.
UpdateContent function updates rule content.
WaitForContentDirectoryToBeReady ensures the rule content directory is safe to read/write.
# Structs
RuleContentDirectoryTimeoutError is used, when the content directory is empty for too long time.
RulesWithContentStorage is a key:value structure to store processed rules.