Stefan Bischof created FELIX-6117:
-------------------------------------
Summary: generalchecks - json does not show tags
Key: FELIX-6117
URL: https://issues.apache.org/jira/browse/FELIX-6117
Project: Felix
Issue Type: Bug
Components: Health Checks
Affects Versions: healthcheck.generalchecks 2.0.0, healthcheck.core 2.0.0
Reporter: Stefan Bischof
Hi,
i configured a generalchecks.DiskSpaceCheck with tags
{code:java}
//config
org.apache.felix.hc.generalchecks.DiskSpaceCheck~test2:
hc.name: myTest222
hc.tags: [system,system_memory,dings]
diskPaths: [.]
diskUsedThresholdWarn: 15
diskUsedThresholdCritical: 10
{code}
filtering by these tags works ans shows the corrent results.
http://localhost:8080/system/health/*.json
[http://localhost:8080/system/health/system.json]
but ins the result json the attribute "tags" isn't set properly.
{code:java}
{
"overallResult": "CRITICAL",
"results": [
{
"name": "myTest222",
"status": "CRITICAL",
"timeInMs": 2,
"finishedAt": "2019-05-02T15:22:18.646",
"tags": [],
"messages": [
{
"status": "CRITICAL",
"message": "Disk Usage /home/name/dev/git/fooo/health/.: 11.3% of
166.2GB used / 147.5GB free"
}
]
}
]
}
{code}
With my own implementations of healthcheck this works.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)