From 995c3d9487dd41bc9795fbf8fc5978c8d93d9201 Mon Sep 17 00:00:00 2001 From: Jeff Bryner Date: Wed, 25 Mar 2015 09:00:03 -0700 Subject: [PATCH] update sample config.py to match new alert dict format --- alerts/lib/config.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/alerts/lib/config.py b/alerts/lib/config.py index c9f6b6aa..3b99277a 100644 --- a/alerts/lib/config.py +++ b/alerts/lib/config.py @@ -8,16 +8,16 @@ # Contributors: # Anthony Verez averez@mozilla.com -from celery.schedules import crontab +from celery.schedules import crontab, timedelta import time import logging ALERTS = { - 'bro_intel.AlertBroIntel': crontab(minute='*/1'), - 'bro_notice.AlertBroNotice': crontab(minute='*/1'), - 'bruteforce_ssh.AlertBruteforceSsh': crontab(minute='*/1'), - 'cloudtrail.AlertCloudtrail': crontab(minute='*/1'), - 'fail2ban.AlertFail2ban': crontab(minute='*/1'), + 'bro_intel.AlertBroIntel': {'schedule': crontab(minute='*/1')}, + 'bro_notice.AlertBroNotice': {'schedule': crontab(minute='*/1')}, + 'bruteforce_ssh.AlertBruteforceSsh': {'schedule': crontab(minute='*/1')}, + 'cloudtrail.AlertCloudtrail': {'schedule': crontab(minute='*/1')}, + 'fail2ban.AlertFail2ban': {'schedule': crontab(minute='*/1')}, }