prune system stats

This commit is contained in:
mbecker20
2023-01-04 08:22:02 +00:00
parent c90e91d78b
commit 3dfeb65aab
6 changed files with 36 additions and 2 deletions

View File

@@ -35,6 +35,10 @@ pub struct CoreConfig {
#[serde(default)]
pub daily_offset_hours: u8,
// number of days to keep stats, or 0 to disable pruning. stats older than this number of days are deleted on a daily cycle
#[serde(default)]
pub keep_stats_for_days: u64,
// used to verify validity from github webhooks
pub github_webhook_secret: String,