Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultFailCountAlertThreshold = 1
View Source
const DefaultRepeatFailAlerts = false
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CheckRecord ¶
type CheckRecord struct {
ID string `db:"id"`
Name string `db:"name"`
Type string `db:"type"`
SendAlerts []string `db:"send_alerts"`
Backoff backoffs.Config `db:"backoff"`
Config json.RawMessage `db:"config"`
Assertions []assertions.Config `db:"assertions"`
}
type DBStore ¶
func NewDBStore ¶
func (*DBStore) Preferences ¶
func (c *DBStore) Preferences() (Preferences, error)
type FileStore ¶
type FileStore struct {
// contains filtered or unexported fields
}
func NewFileStore ¶
func (*FileStore) Preferences ¶
func (f *FileStore) Preferences() (Preferences, error)
type FileStoreData ¶
type FileStoreData struct {
Checks []checks.Config `json:"checks"`
Notifications []notifiers.Config `json:"notifications"`
Preferences Preferences `json:"preferences"`
}
type NotificationPreferences ¶
type NotificationRecord ¶
type Preferences ¶
type Preferences struct {
Notifications NotificationPreferences `json:"notifications"`
}
type PreferencesRecord ¶
type PreferencesRecord struct {
ID int `db:"id"`
Preferences json.RawMessage `db:"preferences"`
}
type TypeConverter ¶
type TypeConverter struct{}
func (TypeConverter) FromDb ¶
func (t TypeConverter) FromDb(target interface{}) (gorp.CustomScanner, bool)
func (TypeConverter) ToDb ¶
func (t TypeConverter) ToDb(val interface{}) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.