<div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 21, 2013 at 2:37 PM, Gordon Chung <span dir="ltr"><<a href="mailto:chungg@ca.ibm.com" target="_blank">chungg@ca.ibm.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><tt><font><br>
> In all cases, these are free string fields. `user_id' and `project_id'<br>
> map to Keystone _most of the time_,</font></tt>
<br></div><font face="sans-serif"><br>
i'm sort of torn between the two -- which is why i brought it up i guess.
i like the flexibility of having resource as a free string field but the
difference between resource and project/user fields is that we can query
directly on Resources. when we get a Resource, we get a list of associated
Meters and if we don't set resource_id in a consistent manner, i worry
we may be losing some relational information between Meters that groupings
based off consistent resource_id can provide.<br></font></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">The tuple (project id, source, resource id) is expected to be unique so that those values combined with a specific meter provide useful information about the resource. Beyond that unique constraint, I'm not sure we apply any rules, although check the SQL schema to make sure the resource id field isn't a short VARCHAR.</div>
<div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Doug</div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<font face="sans-serif">
</font><div class="HOEnZb"><div class="h5">
<br><font face="sans-serif">cheers,<br>
gordon chung<br>
<br>
openstack, ibm software standards<br>
email: chungg [at] <a href="http://ca.ibm.com" target="_blank">ca.ibm.com</a></font></div></div><br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div></div>