Skip to content

Commit e987186

Browse files
authored
Merge pull request #169 from OpenLiberty/staging
Merge staging to prod - update health checks (#168)
2 parents 68e3ec0 + aa24c6c commit e987186

File tree

4 files changed

+2
-8
lines changed

4 files changed

+2
-8
lines changed

finish/src/main/java/io/openliberty/guides/inventory/InventoryLivenessCheck.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// tag::copyright[]
22
/*******************************************************************************
3-
* Copyright (c) 2018, 2021 IBM Corporation and others.
3+
* Copyright (c) 2018, 2022 IBM Corporation and others.
44
* All rights reserved. This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License v1.0
66
* which accompanies this distribution, and is available at
@@ -34,8 +34,6 @@ public HealthCheckResponse call() {
3434

3535
return HealthCheckResponse.named(
3636
InventoryResource.class.getSimpleName() + " Liveness Check")
37-
.withData("memory used", memUsed)
38-
.withData("memory max", memMax)
3937
.status(memUsed < memMax * 0.9).build();
4038
}
4139
}

finish/src/main/java/io/openliberty/guides/inventory/InventoryStartupCheck.java

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public HealthCheckResponse call() {
3434
String cpuUsage = String.valueOf(cpuUsed);
3535
return HealthCheckResponse.named(InventoryResource.class
3636
.getSimpleName() + " Startup Check")
37-
.withData("cpu used", cpuUsage)
3837
.status(cpuUsed < 0.95).build();
3938
}
4039
}

finish/src/main/java/io/openliberty/guides/system/SystemLivenessCheck.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// tag::copyright[]
22
/*******************************************************************************
3-
* Copyright (c) 2018, 2021 IBM Corporation and others.
3+
* Copyright (c) 2018, 2022 IBM Corporation and others.
44
* All rights reserved. This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License v1.0
66
* which accompanies this distribution, and is available at
@@ -35,8 +35,6 @@ public HealthCheckResponse call() {
3535

3636
return HealthCheckResponse.named(
3737
SystemResource.class.getSimpleName() + " Liveness Check")
38-
.withData("memory used", memUsed)
39-
.withData("memory max", memMax)
4038
.status(memUsed < memMax * 0.9).build();
4139
}
4240
}

finish/src/main/java/io/openliberty/guides/system/SystemStartupCheck.java

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public HealthCheckResponse call() {
3434
String cpuUsage = String.valueOf(cpuUsed);
3535
return HealthCheckResponse.named(SystemResource.class
3636
.getSimpleName() + " Startup Check")
37-
.withData("cpu used", cpuUsage)
3837
.status(cpuUsed < 0.95).build();
3938
}
4039
}

0 commit comments

Comments
 (0)