Skip to content

Commit

Permalink
Merge pull request #114 from moira-alert/hotfix/2.3.1
Browse files Browse the repository at this point in the history
Fix last_remote_check_delay option in Notifier config file
  • Loading branch information
titusjaka authored Aug 27, 2018
2 parents c0c6a85 + 1d5a872 commit 5311916
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 5311916

Please sign in to comment.