joshuar-go-hass-agent/internal/linux/system/preferences.go

40 lines
1.2 KiB
Go

// Copyright 2024 Joshua Rich <joshua.rich@gmail.com>.
// SPDX-License-Identifier: MIT
package system
import "github.com/joshuar/go-hass-agent/internal/components/preferences"
const (
basePreferencesID = "system_sensors"
)
// HWMonPrefs are the preferences for the hwmon sensor worker.
type HWMonPrefs struct {
preferences.CommonWorkerPrefs
UpdateInterval string `toml:"update_interval" comment:"Time between updates of hwmon sensors (default 1m)."`
}
// ProblemsPrefs are the preferences for the abrt problems sensor worker.
type ProblemsPrefs struct {
preferences.CommonWorkerPrefs
UpdateInterval string `toml:"update_interval" comment:"Time between checking for new problems."`
}
// ChronyPrefs are the preferences for the chrony sensor worker.
type ChronyPrefs struct {
preferences.CommonWorkerPrefs
UpdateInterval string `toml:"update_interval" comment:"Time between checking chrony status."`
}
// UptimePrefs are the preferences for the system uptime sensor.
type UptimePrefs struct {
preferences.CommonWorkerPrefs
UpdateInterval string `toml:"update_interval" comment:"Time between sending uptime sensor."`
}
// UserSessionsPrefs are the preferences for the user sessions worker.
type UserSessionsPrefs struct {
preferences.CommonWorkerPrefs
}