Skip to content

Commit 656d05c

Browse files
authored
Merge pull request #267 from OpenLiberty/staging
Merge staging to prod - Remove unnecessary data for health check (#266)
2 parents e019f7c + aa41364 commit 656d05c

3 files changed

Lines changed: 4 additions & 9 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
run: bash ./tools/pr-checker/checker.sh ${{ github.repository }} ${{ github.event.pull_request.number }} | tee checker.log
2424
- id: Lint-Code-Base
2525
if: always()
26-
uses: github/super-linter@v3
26+
uses: github/super-linter@v3.17.0
2727
env:
2828
VALIDATE_ALL_CODEBASE: false
2929
VALIDATE_JAVASCRIPT_STANDARD: false

README.adoc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2018, 2021 IBM Corporation and others.
1+
// Copyright (c) 2018, 2022 IBM Corporation and others.
22
// Licensed under Creative Commons Attribution-NoDerivatives
33
// 4.0 International (CC BY-ND 4.0)
44
// https://creativecommons.org/licenses/by-nd/4.0/
@@ -307,10 +307,7 @@ This time you see the overall status of your server and the aggregated data of t
307307
"status":"UP"
308308
},
309309
{
310-
"data":{
311-
"memory used":40434888,
312-
"memory max":4294967296
313-
},
310+
"data":{},
314311
"name":"SystemResource Liveness Check",
315312
"status":"UP"
316313
}

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// tag::copyright[]
22
/*******************************************************************************
3-
* Copyright (c) 2019, 2021 IBM Corporation and others.
3+
* Copyright (c) 2019, 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
SystemResource.class.getSimpleName() + " Liveness Check")
37-
.withData("memory used", memUsed)
38-
.withData("memory max", memMax)
3937
.status(memUsed < memMax * 0.9).build();
4038
}
4139

0 commit comments

Comments
 (0)