Skip to content

Commit

Permalink
Fix last_remote_check_delay option in Notifier config file
Browse files Browse the repository at this point in the history
  • Loading branch information
titusjaka committed Aug 27, 2018
1 parent c0c6a85 commit 1d5a872
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/notifier/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ type selfStateConfig struct {
// Max Checker checks perform delay to send alert when reached
LastCheckDelay string `yaml:"last_check_delay"`
// Max Remote triggers Checker checks perform delay to send alert when reached
LastRemoteCheckDelaySeconds int64 `yaml:"last_remote_check_delay"`
LastRemoteCheckDelay string `yaml:"last_remote_check_delay"`
// Contact list for Self state monitor alerts
Contacts []map[string]string `yaml:"contacts"`
// Self state monitor alerting interval
Expand Down Expand Up @@ -135,7 +135,7 @@ func (config *selfStateConfig) getSettings() selfstate.Config {
RedisDisconnectDelaySeconds: int64(to.Duration(config.RedisDisconnectDelay).Seconds()),
LastMetricReceivedDelaySeconds: int64(to.Duration(config.LastMetricReceivedDelay).Seconds()),
LastCheckDelaySeconds: int64(to.Duration(config.LastCheckDelay).Seconds()),
LastRemoteCheckDelaySeconds: int64(to.Duration(config.LastRemoteCheckDelaySeconds).Seconds()),
LastRemoteCheckDelaySeconds: int64(to.Duration(config.LastRemoteCheckDelay).Seconds()),
Contacts: config.Contacts,
NoticeIntervalSeconds: int64(to.Duration(config.NoticeInterval).Seconds()),
}
Expand Down

0 comments on commit 1d5a872

Please sign in to comment.