Add admin settings for interval and table cleanup.

Interval is used as the default in the editRuleflow page.
table cleanup works as a setting, but doesn't do anything yet.
This commit is contained in:
Colin Kuskie 2009-02-09 13:36:52 -08:00 committed by Patrick Donelan
parent aa6367d459
commit 266dca5af6
3 changed files with 102 additions and 1 deletions

View file

@ -35,6 +35,7 @@ installPassiveAnalyticsRule($session);
installPassiveAnalyticsConfig($session);
installWorkflow($session);
#addAdminGroup($session);
addPassiveAnalyticsSettings($session);
finish($session);
@ -93,6 +94,17 @@ sub installPassiveAnalyticsRule {
print "DONE!\n";
}
#----------------------------------------------------------------------------
# Add the PassiveAnalytics Rule table
sub addPassiveAnalyticsSettings {
my $session = shift;
print "\tInstall Passive Analytics settings... ";
# and here's our code
$session->setting->add('passiveAnalyticsInterval', 300);
$session->setting->add('passiveAnalyticsDeleteDelta', 0);
print "DONE!\n";
}
#----------------------------------------------------------------------------
# Add the Passive Analytics config file entry
# for the adminConsole and the content handler