[Hawkular-dev] Availability metrics: aggregate stats series

Joel Takvorian jtakvori at redhat.com
Fri Sep 2 09:27:48 EDT 2016


On the client side, if I need to know have a UP/DOWN/Mixed as in legacy
use, it's as easy as that:

List<DataPoint<(Up/Down/Mixed enum)>> l =
ratioMapSeries.stream().map(ratioMap -> ratioMap.get(UP) == 1d ? UP :
(ratioMap.get(DOWN) == 1d ? DOWN : MIXED)).collect...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hawkular-dev/attachments/20160902/3efeecc8/attachment.html 


More information about the hawkular-dev mailing list