drive-health/lib/config/config.go

20 lines
533 B
Go
Raw Normal View History

package config
type DHConfig struct {
DiskFetchFrequency int `json:"diskFetchFrequency" comment:"How often should a snapshot be taken of the current state of the disks"`
MemoryDumpFrequency int `json:"memoryDumpFrequency" comment:"How often should we save the snapshots from memory to disk"`
MaxHistoryAge int
}
func GetConfiguration() DHConfig {
// TODO: Read from os.environment or simply load the defaults
return DHConfig{
DiskFetchFrequency: 5,
2024-01-20 01:29:57 +02:00
MemoryDumpFrequency: 16,
MaxHistoryAge: 2592000,
}
}