From 7f468dea320bf00a84c7115b0a55b1b28997a47f Mon Sep 17 00:00:00 2001 From: langinteger <709091988@qq.com> Date: Fri, 18 Jun 2021 01:47:59 +0800 Subject: [PATCH] feat - add support for name attribute of check when register new service --- .../ecwid/consul/v1/agent/model/NewService.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/ecwid/consul/v1/agent/model/NewService.java b/src/main/java/com/ecwid/consul/v1/agent/model/NewService.java index 353586b..107c404 100644 --- a/src/main/java/com/ecwid/consul/v1/agent/model/NewService.java +++ b/src/main/java/com/ecwid/consul/v1/agent/model/NewService.java @@ -13,6 +13,9 @@ public class NewService { public static class Check { + @SerializedName("Name") + private String name; + @SerializedName("Script") private String script; @@ -58,6 +61,14 @@ public static class Check { @SerializedName("GRPCUseTLS") private Boolean grpcUseTLS; + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + public String getScript() { return script; } @@ -173,7 +184,8 @@ public void setStatus(String status) { @Override public String toString() { return "Check{" + - "script='" + script + '\'' + + "name='" + name + '\'' + + ", script='" + script + '\'' + ", dockerContainerID='" + dockerContainerID + '\'' + ", shell='" + shell + '\'' + ", interval='" + interval + '\'' +