File tree 4 files changed +2
-8
lines changed
finish/src/main/java/io/openliberty/guides
4 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 1
1
// tag::copyright[]
2
2
/*******************************************************************************
3
- * Copyright (c) 2018, 2021 IBM Corporation and others.
3
+ * Copyright (c) 2018, 2022 IBM Corporation and others.
4
4
* All rights reserved. This program and the accompanying materials
5
5
* are made available under the terms of the Eclipse Public License v1.0
6
6
* which accompanies this distribution, and is available at
@@ -34,8 +34,6 @@ public HealthCheckResponse call() {
34
34
35
35
return HealthCheckResponse .named (
36
36
InventoryResource .class .getSimpleName () + " Liveness Check" )
37
- .withData ("memory used" , memUsed )
38
- .withData ("memory max" , memMax )
39
37
.status (memUsed < memMax * 0.9 ).build ();
40
38
}
41
39
}
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ public HealthCheckResponse call() {
34
34
String cpuUsage = String .valueOf (cpuUsed );
35
35
return HealthCheckResponse .named (InventoryResource .class
36
36
.getSimpleName () + " Startup Check" )
37
- .withData ("cpu used" , cpuUsage )
38
37
.status (cpuUsed < 0.95 ).build ();
39
38
}
40
39
}
Original file line number Diff line number Diff line change 1
1
// tag::copyright[]
2
2
/*******************************************************************************
3
- * Copyright (c) 2018, 2021 IBM Corporation and others.
3
+ * Copyright (c) 2018, 2022 IBM Corporation and others.
4
4
* All rights reserved. This program and the accompanying materials
5
5
* are made available under the terms of the Eclipse Public License v1.0
6
6
* which accompanies this distribution, and is available at
@@ -35,8 +35,6 @@ public HealthCheckResponse call() {
35
35
36
36
return HealthCheckResponse .named (
37
37
SystemResource .class .getSimpleName () + " Liveness Check" )
38
- .withData ("memory used" , memUsed )
39
- .withData ("memory max" , memMax )
40
38
.status (memUsed < memMax * 0.9 ).build ();
41
39
}
42
40
}
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ public HealthCheckResponse call() {
34
34
String cpuUsage = String .valueOf (cpuUsed );
35
35
return HealthCheckResponse .named (SystemResource .class
36
36
.getSimpleName () + " Startup Check" )
37
- .withData ("cpu used" , cpuUsage )
38
37
.status (cpuUsed < 0.95 ).build ();
39
38
}
40
39
}
You can’t perform that action at this time.
0 commit comments