Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add units (nanoseconds) to HealthCheck.
  • Loading branch information
SLG committed Aug 21, 2023
commit e917ae9a709c695c1938c17f3c1fb955e8987bb8
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ public class HealthCheck extends DockerObject implements Serializable {
private static final long serialVersionUID = 1L;

@JsonProperty("Interval")
private Long interval;
private Long interval; // in nanoseconds
Comment thread
eddumelendez marked this conversation as resolved.
Outdated

@JsonProperty("Timeout")
private Long timeout;
private Long timeout; // in nanoseconds
Comment thread
eddumelendez marked this conversation as resolved.
Outdated

/**
* @since 1.26
Expand All @@ -53,7 +53,7 @@ public class HealthCheck extends DockerObject implements Serializable {
* @since 1.26
*/
@JsonProperty("StartPeriod")
private Long startPeriod;
private Long startPeriod; // in nanoseconds
Comment thread
eddumelendez marked this conversation as resolved.
Outdated

public Long getInterval() {
return interval;
Expand All @@ -63,11 +63,19 @@ public Long getTimeout() {
return timeout;
}

/***
Comment thread
eddumelendez marked this conversation as resolved.
Outdated
* Set interval in nanoseconds
* @return this
Comment thread
eddumelendez marked this conversation as resolved.
Outdated
*/
public HealthCheck withInterval(Long interval) {
this.interval = interval;
return this;
}

/***
Comment thread
eddumelendez marked this conversation as resolved.
Outdated
* Set timeout in nanoseconds
* @return this
Comment thread
eddumelendez marked this conversation as resolved.
Outdated
*/
public HealthCheck withTimeout(Long timeout) {
this.timeout = timeout;
return this;
Expand Down Expand Up @@ -95,6 +103,10 @@ public Long getStartPeriod() {
return startPeriod;
}

/***
Comment thread
eddumelendez marked this conversation as resolved.
Outdated
* Set startPeriod in nanoseconds
* @return this
Comment thread
eddumelendez marked this conversation as resolved.
Outdated
*/
public HealthCheck withStartPeriod(Long startPeriod) {
this.startPeriod = startPeriod;
return this;
Expand Down