<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 20, 2015, at 12:03 PM, mike thompson &lt;<a href="mailto:mithomps@redhat.com" class="">mithomps@redhat.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline">On 20 Mar 2015, at 08:19, Lukas Krejci &lt;<a href="mailto:lkrejci@redhat.com" class="">lkrejci@redhat.com</a>&gt; wrote:<br class=""><br class="">I think the "metrics" should actually be dropped instead of "numeric”.<br class=""></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">The only thing about ‘numeric’ is that it is not very specific. Numeric just means number — every metric is a number so its really not adding anything. Even availability data is numeric.</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""></div></blockquote><div><br class=""></div><div>Metrics might not just be numeric. Right now we have simple numeric and availability. We will probably have events at in the future. We might also have multi-value numeric metrics, e.g., call time in RHQ. And I could also see multi-value metrics consisting of numeric and text data.</div><br class=""><blockquote type="cite" class=""><div class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="">Hawk metrics will never deal with anything else than some kind of metric, so<span class="Apple-converted-space">&nbsp;</span><br class="">way have it in the path? On the other hand having the type of the metric in<span class="Apple-converted-space">&nbsp;</span><br class="">the path is IMHO more useful.<br class=""><br class="">It is the context root of the metrics rest web app that should be called<span class="Apple-converted-space">&nbsp;</span><br class="">"metrics", IMHO.<br class=""><br class="">So the paths in metrics would look like:<br class=""><br class="">/{tenantId}/numeric/data<br class="">/{tenantId}/availability/data<br class=""><br class="">and the REST API user would reach those on the URLs like:<br class=""><br class=""><a href="http://asdf.com/hawkular/metrics/tenant1/numeric/{id}/data" class="">http://asdf.com/hawkular/metrics/tenant1/numeric/{id}/data</a><br class=""><br class="">conversely, inventory could be reached on the same host like:<br class=""><br class="">http://asdf.com/hawkular/inventory/tenant1/production/resources/{id}<br class=""><br class=""><br class="">On Friday, March 20, 2015 11:00:22 John Sanda wrote:<br class=""><blockquote type="cite" class="">There has been some good discussion around availability lately. I want to<br class="">add one more to the mix, but hopefully this one is not as in-depth as some<br class="">of the other topics. Right in metrics we have endpoints like,<br class=""><br class="">POST &nbsp;&nbsp;/metrics/numeric/data<br class="">GET &nbsp;&nbsp;&nbsp;&nbsp;/metrics/numeric/{id}/data<br class="">POST &nbsp;/metrics/availability/data<br class="">GET &nbsp;&nbsp;&nbsp;/metrics/availability/{id}/data<br class=""><br class="">I would like to change these to,<br class=""><br class="">POST &nbsp;&nbsp;/metrics/data<br class="">GET &nbsp;&nbsp;&nbsp;&nbsp;/metrics/{id}/data<br class="">POST &nbsp;/availability/data<br class="">GET &nbsp;&nbsp;&nbsp;/availability/{id}/data<br class=""><br class="">I think the “metrics” prefix is awkward and unnecessary. I think that it is<br class="">intuitive enough that metrics on its own refers to numeric data. Thoughts?<br class=""><br class=""><br class="">- John<br class="">_______________________________________________<br class="">hawkular-dev mailing list<br class="">hawkular-dev@lists.jboss.org<br class="">https://lists.jboss.org/mailman/listinfo/hawkular-dev<br class=""></blockquote><br class=""><br class="">_______________________________________________<br class="">hawkular-dev mailing list<br class="">hawkular-dev@lists.jboss.org<br class="">https://lists.jboss.org/mailman/listinfo/hawkular-dev<br class=""></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">hawkular-dev mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:hawkular-dev@lists.jboss.org" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">hawkular-dev@lists.jboss.org</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="https://lists.jboss.org/mailman/listinfo/hawkular-dev" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">https://lists.jboss.org/mailman/listinfo/hawkular-dev</a></div></blockquote></div><br class=""></body></html>