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

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

The spec at [1] says "Multiple values for the same key are supported with 
arrays ([]) and Collection objects" - hence I think this is a valid bug.

[1] 
https://osgi.org/specification/osgi.core/7.0.0/framework.service.html#framework.service.serviceproperties

> 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.api 2.0.0
>            Reporter: Stefan Bischof
>            Assignee: Georg Henzler
>            Priority: Minor
>             Fix For: healthcheck.api 2.0.2
>
>         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