🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
feat(insights): send scanner options
Deluan453873fa26e0
diff --git a/core/metrics/insights.go b/core/metrics/insights.goindex 27d154f1e..6076be0a5 100644--- a/core/metrics/insights.go+++ b/core/metrics/insights.go@@ -187,7 +187,6 @@ var staticData = sync.OnceValue(func() insights.Data {data.Config.EnablePrometheus = conf.Server.Prometheus.Enableddata.Config.TranscodingCacheSize = conf.Server.TranscodingCacheSizedata.Config.ImageCacheSize = conf.Server.ImageCacheSize- data.Config.ScanSchedule = conf.Server.ScanScheduledata.Config.SessionTimeout = uint64(math.Trunc(conf.Server.SessionTimeout.Seconds()))data.Config.SearchFullString = conf.Server.SearchFullStringdata.Config.RecentlyAddedByModTime = conf.Server.RecentlyAddedByModTime@@ -195,6 +194,10 @@ var staticData = sync.OnceValue(func() insights.Data {data.Config.BackupSchedule = conf.Server.Backup.Scheduledata.Config.BackupCount = conf.Server.Backup.Countdata.Config.DevActivityPanel = conf.Server.DevActivityPanel+ data.Config.ScannerEnabled = conf.Server.Scanner.Enabled+ data.Config.ScanSchedule = conf.Server.Scanner.Schedule+ data.Config.ScanWatcherWait = uint64(math.Trunc(conf.Server.Scanner.WatcherWait.Seconds()))+ data.Config.ScanOnStartup = conf.Server.Scanner.ScanOnStartupreturn data})diff --git a/core/metrics/insights/data.go b/core/metrics/insights/data.goindex cf28c43a3..9df547b4a 100644--- a/core/metrics/insights/data.go+++ b/core/metrics/insights/data.go@@ -43,7 +43,10 @@ type Data struct {LogLevel string `json:"logLevel,omitempty"`LogFileConfigured bool `json:"logFileConfigured,omitempty"`TLSConfigured bool `json:"tlsConfigured,omitempty"`+ ScannerEnabled bool `json:"scannerEnabled,omitempty"`ScanSchedule string `json:"scanSchedule,omitempty"`+ ScanWatcherWait uint64 `json:"scanWatcherWait,omitempty"`+ ScanOnStartup bool `json:"scanOnStartup,omitempty"`TranscodingCacheSize string `json:"transcodingCacheSize,omitempty"`ImageCacheSize string `json:"imageCacheSize,omitempty"`EnableArtworkPrecache bool `json:"enableArtworkPrecache,omitempty"`