Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Commit

Permalink
added the ability to register an application-level check - a check th…
Browse files Browse the repository at this point in the history
…at is bound to a service. This kind of check only affects the availability of the service instead of the entire Consul instance
  • Loading branch information
Amir Kibbar committed Jun 12, 2015
1 parent d165784 commit 6e6e1ea
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.travis.yml eol=lf
.git* text eol=lf
gradlew text oel=lf
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'java'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven'

version = '0.9.3'
version = '0.9.4-SNAPSHOT'
group = 'com.orbitz.consul'

repositories {
Expand Down
11 changes: 11 additions & 0 deletions src/main/java/com/orbitz/consul/model/agent/Check.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ public class Check {
@JsonProperty("HTTP")
private String http;

@JsonProperty("Service_id")
private String serviceId;

public String getServiceId() {
return serviceId;
}

public void setServiceId(String serviceId) {
this.serviceId = serviceId;
}

public String getId() {
return id;
}
Expand Down

0 comments on commit 6e6e1ea

Please sign in to comment.