This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets-examples.git


The following commit(s) were added to refs/heads/main by this push:
     new c28b132  Polished
c28b132 is described below

commit c28b1324ca60316e1f1fc1c669fc8557037b4651
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Sun Nov 13 11:46:30 2022 +0100

    Polished
---
 jbang/chaos-monkey/ChaosMonkey.java | 2 +-
 jbang/chaos-monkey/README.adoc      | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/jbang/chaos-monkey/ChaosMonkey.java 
b/jbang/chaos-monkey/ChaosMonkey.java
index f5d8b0b..d99cec6 100644
--- a/jbang/chaos-monkey/ChaosMonkey.java
+++ b/jbang/chaos-monkey/ChaosMonkey.java
@@ -20,7 +20,7 @@ public class ChaosMonkey extends 
org.apache.camel.impl.health.AbstractHealthChec
     @Override
     public void doCall(org.apache.camel.health.HealthCheckResultBuilder 
builder, java.util.Map<String, Object> options) {
         if (num < 4) {
-            builder.detail("chaos-number", num).down();
+            builder.detail("chaos-number", num).message("Chaos is 
here!!!").down();
         } else {
             builder.detail("chaos-number", num).up();    
         }
diff --git a/jbang/chaos-monkey/README.adoc b/jbang/chaos-monkey/README.adoc
index c681e45..fa6cd8a 100644
--- a/jbang/chaos-monkey/README.adoc
+++ b/jbang/chaos-monkey/README.adoc
@@ -65,6 +65,12 @@ $ camel run * --health
 Then you can browse: http://localhost:8080/q/health to introspect the health 
check
 of the running application. When the chaos moneky is causing problems then the 
check is DOWN otherwise its UP.
 
+You can also inspect the health-check from CLI via:
+
+[source,sh]
+----
+$ camel get health
+----
 
 === Help and contributions
 

Reply via email to