@@ -77,6 +77,9 @@ public class DaprContainer extends GenericContainer<DaprContainer> {
7777 private String appName ;
7878 private Integer appPort ;
7979 private String appHealthCheckPath ;
80+ private Integer appHealthCheckProbeInterval = 5 ; //default from docs
81+ private Integer appHealthCheckProbeTimeout = 500 ; //default from docs
82+ private Integer appHealthCheckThreshold = 3 ; //default from docs
8083 private boolean shouldReusePlacement ;
8184 private boolean shouldReuseScheduler ;
8285
@@ -133,6 +136,21 @@ public DaprContainer withAppHealthCheckPath(String appHealthCheckPath) {
133136 return this ;
134137 }
135138
139+ public DaprContainer withAppHealthCheckProbeInterval (Integer appHealthCheckProbeInterval ) {
140+ this .appHealthCheckProbeInterval = appHealthCheckProbeInterval ;
141+ return this ;
142+ }
143+
144+ public DaprContainer withAppHealthCheckProbeTimeout (Integer appHealthCheckProbeTimeout ) {
145+ this .appHealthCheckProbeTimeout = appHealthCheckProbeTimeout ;
146+ return this ;
147+ }
148+
149+ public DaprContainer withAppHealthCheckThreshold (Integer appHealthCheckThreshold ) {
150+ this .appHealthCheckThreshold = appHealthCheckThreshold ;
151+ return this ;
152+ }
153+
136154 public DaprContainer withConfiguration (Configuration configuration ) {
137155 this .configuration = configuration ;
138156 return this ;
@@ -311,6 +329,16 @@ protected void configure() {
311329 cmds .add ("--enable-app-health-check" );
312330 cmds .add ("--app-health-check-path" );
313331 cmds .add (appHealthCheckPath );
332+
333+ cmds .add ("--app-health-probe-interval" );
334+ cmds .add (Integer .toString (appHealthCheckProbeInterval ));
335+
336+ cmds .add ("--app-health-probe-timeout" );
337+ cmds .add (Integer .toString (appHealthCheckProbeTimeout ));
338+
339+ cmds .add ("--app-health-threshold" );
340+ cmds .add (Integer .toString (appHealthCheckThreshold ));
341+
314342 }
315343
316344 if (configuration != null ) {
@@ -385,6 +413,22 @@ public Integer getAppPort() {
385413 return appPort ;
386414 }
387415
416+ public String getAppHealthCheckPath () {
417+ return appHealthCheckPath ;
418+ }
419+
420+ public Integer getAppHealthCheckProbeInterval () {
421+ return appHealthCheckProbeInterval ;
422+ }
423+
424+ public Integer getAppHealthCheckProbeTimeout () {
425+ return appHealthCheckProbeTimeout ;
426+ }
427+
428+ public Integer getAppHealthCheckThreshold () {
429+ return appHealthCheckThreshold ;
430+ }
431+
388432 public String getAppChannelAddress () {
389433 return appChannelAddress ;
390434 }
0 commit comments