[wip] Change learn:modules to dictionary

This commit is contained in:
William Wernert
2021-07-29 11:58:58 -04:00
parent d53e989c55
commit 2560a9b78c
2 changed files with 6 additions and 6 deletions

View File

@@ -32,9 +32,9 @@ salt_proc: subprocess.CompletedProcess = None
# Temp store of modules, will likely be broken out into salt
def get_learn_modules():
return [
{ 'name': 'logscan', 'cpu_period': get_cpu_period(fraction=0.25), 'enabled': False, 'description': 'Scan log files against pre-trained models to alert on anomalies.' }
]
return {
'logscan': { 'cpu_period': get_cpu_period(fraction=0.25), 'enabled': False, 'description': 'Scan log files against pre-trained models to alert on anomalies.' }
}
def get_cpu_period(fraction: float):