Class StatsOptions
Periodic server-stats report settings, bound from the "Stats" config section (env override:
Stats__Enabled etc.). When enabled, a background job periodically snapshots server
activity, logs it as pretty-printed JSON, and persists it to the database.
public sealed class StatsOptions
- Inheritance
-
StatsOptions
- Inherited Members
Constructors
StatsOptions()
public StatsOptions()
Properties
Enabled
Master switch for the periodic stats report job.
public bool Enabled { get; set; }
Property Value
IntervalHours
How often a report is generated, in hours. Default: every 6 hours.
public double IntervalHours { get; set; }
Property Value
RetentionDays
How long persisted reports are kept before being pruned, in days. Set to 0 to keep reports indefinitely. Default: 90 days.
public int RetentionDays { get; set; }