diff --git a/health.go b/health.go index 11c68e6..9dc5d78 100644 --- a/health.go +++ b/health.go @@ -27,6 +27,7 @@ type HealthCheck struct { GracePeriodSeconds int `json:"gracePeriodSeconds,omitempty"` IntervalSeconds int `json:"intervalSeconds,omitempty"` TimeoutSeconds int `json:"timeoutSeconds,omitempty"` + DelaySeconds int `json:"delaySeconds,omitempty"` IgnoreHTTP1xx *bool `json:"ignoreHttp1xx,omitempty"` } @@ -80,6 +81,7 @@ func NewDefaultHealthCheck() *HealthCheck { GracePeriodSeconds: 30, IntervalSeconds: 10, TimeoutSeconds: 5, + DelaySeconds: 15, } } diff --git a/tests/app-definitions/TestApplicationString-output.json b/tests/app-definitions/TestApplicationString-output.json index dc4f433..2b1de08 100644 --- a/tests/app-definitions/TestApplicationString-output.json +++ b/tests/app-definitions/TestApplicationString-output.json @@ -38,7 +38,8 @@ "protocol": "HTTP", "gracePeriodSeconds": 30, "intervalSeconds": 5, - "timeoutSeconds": 5 + "timeoutSeconds": 5, + "delaySeconds": 15 } ], "instances": 2, diff --git a/tests/rest-api/methods.yml b/tests/rest-api/methods.yml index 7768818..a2c4a0c 100644 --- a/tests/rest-api/methods.yml +++ b/tests/rest-api/methods.yml @@ -51,7 +51,8 @@ "path": "/", "portIndex": 0, "protocol": "HTTP", - "timeoutSeconds": 5 + "timeoutSeconds": 5, + "delaySeconds": 15 } ], "id": "/fake-app", @@ -117,7 +118,8 @@ "path": "/", "portIndex": 0, "protocol": "HTTP", - "timeoutSeconds": 20 + "timeoutSeconds": 20, + "delaySeconds": 15 } ], "id": "/fake-app", @@ -180,7 +182,8 @@ "path": "/", "portIndex": 0, "protocol": "HTTP", - "timeoutSeconds": 20 + "timeoutSeconds": 20, + "delaySeconds": 15 } ], "id": "/fake-app-broken", @@ -324,7 +327,8 @@ "path": "/health", "portIndex": 0, "protocol": "HTTP", - "timeoutSeconds": 10 + "timeoutSeconds": 10, + "delaySeconds": 15 } ], "id": "/fake-app", @@ -440,7 +444,8 @@ "path": "/health", "portIndex": 0, "protocol": "HTTP", - "timeoutSeconds": 10 + "timeoutSeconds": 10, + "delaySeconds": 15 } ], "id": "/fake-app", @@ -569,7 +574,8 @@ "path": "/health", "portIndex": 0, "protocol": "HTTP", - "timeoutSeconds": 10 + "timeoutSeconds": 10, + "delaySeconds": 15 } ], "id": "/fake-app-broken", @@ -793,7 +799,8 @@ "intervalSeconds": 10, "portIndex": 0, "timeoutSeconds": 10, - "maxConsecutiveFailures": 3 + "maxConsecutiveFailures": 3, + "delaySeconds": 15 } ], "id": "apache", @@ -830,7 +837,8 @@ "gracePeriodSeconds": 10, "intervalSeconds": 10, "timeoutSeconds": 5, - "maxConsecutiveFailures": 2 + "maxConsecutiveFailures": 2, + "delaySeconds": 15 } ], "id": "mysql", @@ -867,7 +875,8 @@ "gracePeriodSeconds": 10, "intervalSeconds": 10, "timeoutSeconds": 5, - "maxConsecutiveFailures": 2 + "maxConsecutiveFailures": 2, + "delaySeconds": 15 } ], "id": "caching", @@ -1227,7 +1236,8 @@ "path": "/", "portIndex": 0, "protocol": "HTTP", - "timeoutSeconds": 20 + "timeoutSeconds": 20, + "delaySeconds": 15 } ], "id": "/fake-app", @@ -1290,7 +1300,8 @@ "path": "/", "portIndex": 0, "protocol": "HTTP", - "timeoutSeconds": 20 + "timeoutSeconds": 20, + "delaySeconds": 15 } ], "id": "/fake-app-broken", @@ -1327,7 +1338,8 @@ "path": "/health", "portIndex": 0, "protocol": "HTTP", - "timeoutSeconds": 10 + "timeoutSeconds": 10, + "delaySeconds": 15 } ], "id": "/no-health-check-results-app",