Documentation ¶
Index ¶
Constants ¶
View Source
const ( Memory = "memory" Redis = "redis" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertPersistConfig ¶
type AlertPersistConfig struct {
ElkData ELKPersistConfig `json:"elk"` //only used for PersistType ELK
}
type AlertStoreConfig ¶
type AlertStoreConfig struct { Persist PersistConfig `json:"persist"` Caches []CacheConfig `json:"caches"` }
func GetConfig ¶
func GetConfig() AlertStoreConfig
type CacheConfig ¶
type ELKPersistConfig ¶
type ELKPersistConfig struct {
IndexPattern string `json:"index"`
}
type PersistConfig ¶
type PersistConfig struct { PersistResolvedAlerts AlertPersistConfig `json:"persist-resolved-alerts"` PersistActiveAlerts AlertPersistConfig `json:"persist-active-alerts"` //User, Address, and Pass can be passed as a env variable by prepending the environment-variable name with ENV: Address string `json:"addr"` User string `json:"user"` Pass string `json:"pass"` UpdateInterval string `json:"update-interval"` //expected in the golang duration format }
type PersistType ¶
type PersistType string
Click to show internal directories.
Click to hide internal directories.