[ 
https://issues.apache.org/jira/browse/FELIX-6117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16838601#comment-16838601
 ] 

Georg Henzler commented on FELIX-6117:
--------------------------------------

Yes I also tried http://localhost:8080/system/health/*.json and it worked fine. 
The root cause is really the type conversion in [1] in previous comment - it's 
easy to fix to also deal with collections (and not only String arrays), but out 
of interest: How did you create the configuration exactly?

> 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.core 2.0.0, healthcheck.generalchecks 2.0.0
>            Reporter: Stefan Bischof
>            Assignee: Georg Henzler
>            Priority: Minor
>         Attachments: tags-in-html-rendering.png
>
>
> 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)

Reply via email to