From 588692f6c4037616518a5d61be19600627e2a610 Mon Sep 17 00:00:00 2001 From: Richard Scothern Date: Tue, 24 May 2016 10:42:29 -0700 Subject: [PATCH] Correct yaml key names in configuration Signed-off-by: Richard Scothern --- configuration/configuration.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configuration/configuration.go b/configuration/configuration.go index 90fd422c..eee83f8a 100644 --- a/configuration/configuration.go +++ b/configuration/configuration.go @@ -221,7 +221,7 @@ type FileChecker struct { // HTTPChecker is a type of entry in the health section for checking HTTP URIs. type HTTPChecker struct { // 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 int // 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. type TCPChecker struct { // 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 time.Duration `yaml:"interval,omitempty"` // Addr is the TCP address to check