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:
parent
aa6367d459
commit
266dca5af6
3 changed files with 102 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue