Merge pull request #1743 from RichardScothern/tcp-bug

Correct yaml key names in configuration
This commit is contained in:
Derek McGowan 2016-05-24 11:09:10 -07:00
commit 0bd7e971b0

View file

@ -221,7 +221,7 @@ type FileChecker struct {
// HTTPChecker is a type of entry in the health section for checking HTTP URIs. // HTTPChecker is a type of entry in the health section for checking HTTP URIs.
type HTTPChecker struct { type HTTPChecker struct {
// Timeout is the duration to wait before timing out the HTTP request // Timeout is the duration to wait before timing out the HTTP request
Timeout time.Duration `yaml:"interval,omitempty"` Timeout time.Duration `yaml:"timeout,omitempty"`
// StatusCode is the expected status code // StatusCode is the expected status code
StatusCode int StatusCode int
// Interval is the duration in between checks // Interval is the duration in between checks
@ -238,7 +238,7 @@ type HTTPChecker struct {
// TCPChecker is a type of entry in the health section for checking TCP servers. // TCPChecker is a type of entry in the health section for checking TCP servers.
type TCPChecker struct { type TCPChecker struct {
// Timeout is the duration to wait before timing out the TCP connection // Timeout is the duration to wait before timing out the TCP connection
Timeout time.Duration `yaml:"interval,omitempty"` Timeout time.Duration `yaml:"timeout,omitempty"`
// Interval is the duration in between checks // Interval is the duration in between checks
Interval time.Duration `yaml:"interval,omitempty"` Interval time.Duration `yaml:"interval,omitempty"`
// Addr is the TCP address to check // Addr is the TCP address to check