<div dir="ltr">Hi,<br><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 10, 2015 at 4:07 PM, John Mazzitelli <span dir="ltr">&lt;<a href="mailto:mazz@redhat.com" target="_blank">mazz@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Correct me if I&#39;m wrong, but doesn&#39;t the agent store the resource &quot;name&quot; in the inventory&#39;s properties? I thought each resource has a set of properties associated with it and the agent will populate a &quot;name&quot; property with the name of the resource in there. If so, you could use that to display the name of the resource. </blockquote><div><br></div><div>So we can refer to the resource by &quot;name,&quot; in the Alert center summary view? <br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Of course, you would need to query inventory for those properties and you&#39;d need to do the same query for each ancestor (parent, grandparent, etc) if you want to show the names in an ancestry field.<br></blockquote><div><br></div><div>And the details view would/could show the path, or the name:value for each item in the path?<br><br></div><div>Thanks,<br></div><div>Liz<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
----- Original Message -----<br>
&gt; Now that we have switched to Resource Paths (canonical paths from Inventory)<br>
&gt; it has come up that displaying the resource path is not very readable and<br>
&gt; requires parsing to make sense of it.<br>
&gt;<br>
&gt; Please see the current use case as example:<br>
&gt; <a href="https://issues.jboss.org/secure/attachment/12392747/AlertCenter2.jpg" rel="noreferrer" target="_blank">https://issues.jboss.org/secure/attachment/12392747/AlertCenter2.jpg</a><br>
&gt; <a href="https://issues.jboss.org/secure/attachment/12392582/Alert-detailsnu.jpg" rel="noreferrer" target="_blank">https://issues.jboss.org/secure/attachment/12392582/Alert-detailsnu.jpg</a><br>
&gt;<br>
&gt;<br>
&gt; An example resource path:<br>
&gt; /t;28026b36-8fe4-4332-84c8-524e173a68bf/e;test/f;localhost/r;localhost~Local~~<br>
&gt;<br>
&gt; To further break the above example into its pieces:<br>
&gt; tenantId : /t;28026b36-8fe4-4332-84c8-524e173a68bf<br>
&gt; environment : test<br>
&gt; feed : localhost<br>
&gt; resourceId : localhost<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; The following snippet explaining the resource path was extracted from:<br>
&gt; <a href="http://www.hawkular.org/docs/components/inventory/index.html" rel="noreferrer" target="_blank">http://www.hawkular.org/docs/components/inventory/index.html</a><br>
&gt;<br>
&gt; Canonical Paths<br>
&gt;<br>
&gt; A canonical path follows the contains relationships from a tenant down to the<br>
&gt; entity in question.<br>
&gt;<br>
&gt;<br>
&gt; The canonical path has a form illustrated by the following example:<br>
&gt; /t; tenant-id /e; env-id /r; resource-id<br>
&gt;<br>
&gt;<br>
&gt; The above example is a canonical path to a resource with ID resource-id which<br>
&gt; is located in environment env-id which is inside a tenant tenant-id .<br>
&gt;<br>
&gt;<br>
&gt; The type specifiers in the individual path segments can be these:<br>
&gt;<br>
&gt;<br>
&gt;     *<br>
&gt; t - tenant<br>
&gt;<br>
&gt;     *<br>
&gt; e - environment<br>
&gt;<br>
&gt;     *<br>
&gt; rt - resource type<br>
&gt;<br>
&gt;     *<br>
&gt; mt - metric type<br>
&gt;<br>
&gt;     *<br>
&gt; f - feed<br>
&gt;<br>
&gt;     *<br>
&gt; r - resource<br>
&gt;<br>
&gt;     *<br>
&gt; m - metric<br>
&gt;<br>
&gt; And as I understand it, the resource path also contains the parent resource<br>
&gt; prepended to this. So one can always figure out where the resource came from<br>
&gt; and can uniquely identify a resource.<br>
&gt; A resource path is just one kind of canonical path (the others are given in<br>
&gt; the above except).<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; What fields should we parse out and display in the UI as individual fields?<br>
&gt;<br>
&gt; I’ll start this conversation by assuming that the environment and tenant are<br>
&gt; not very useful to display. Then what about feed? And since resource is what<br>
&gt; we are after that one is obvious as needed.<br>
&gt; WDYT?<br>
&gt;<br>
&gt; And then there is the question of how Ancestry path should be viewed — but<br>
&gt; for now lets just stick to the above question of how should resources be<br>
&gt; viewed in the UI?<br>
&gt; Ancestry Path is another topic for later.<br>
&gt;<br>
&gt;<br>
&gt; Please refer to Jira: <a href="https://issues.jboss.org/browse/HAWKULAR-605" rel="noreferrer" target="_blank">https://issues.jboss.org/browse/HAWKULAR-605</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; hawkular-dev mailing list<br>
&gt; <a href="mailto:hawkular-dev@lists.jboss.org">hawkular-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/hawkular-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/hawkular-dev</a><br>
&gt;<br>
<br>
_______________________________________________<br>
hawkular-dev mailing list<br>
<a href="mailto:hawkular-dev@lists.jboss.org">hawkular-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/hawkular-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/hawkular-dev</a><br>
</blockquote></div><br></div></div></div>