Added health check to api definition
@@ -28,6 +28,12 @@ type Definition struct {
Active bool `bson:"active" json:"active"`
Proxy *proxy.Definition `bson:"proxy" json:"proxy"`
Plugins []Plugin `bson:"plugins" json:"plugins"`
+ HealthCheck HealthCheck `bson:"health_check" json:"health_check" mapstructure:"health_check"`
+}
+
+// HealthCheck represents the health check configs
+type HealthCheck struct {
+ URL string `bson:"url" json:"url" valid:"url"`
}
// NewDefinition creates a new API Definition with default values
