<br><br><div class="gmail_quote">On Wed, May 9, 2012 at 11:27 AM, Nick Barcet <span dir="ltr"><<a href="mailto:nick.barcet@canonical.com" target="_blank">nick.barcet@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 05/08/2012 08:27 AM, Nick Barcet wrote:<br>
[..]<br>
<br>
Thinking about this, I think we need to expend the API a bit to reflect<br>
the evolutions of the schema that we decided last week.  Here are my<br>
proposals:<br>
<div class="im"><br>
> * Requests allow to<br>
>   GET account_id list<br>
<br>
</div>change to: GET [user_id|project_id|source] list<br></blockquote><div><br></div><div>Does the [value|value] syntax mean "choose one" or "combine"? I assume "choose one" and you are using square brackets because parens are used in some of the other queries.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
>   GET list of counter_type<br>
>   GET list of events per account<br>
>     optional start and end for counter_datetime<br>
>     optional counter_type<br>
<br>
</div>change to: GET list of events per [user_id|project_id|source]<br>
<div class="im">    optional start and end for counter_datetime<br>
    optional counter_type<br></div></blockquote><div><br></div><div>Users may cross projects, so I'm not sure it makes sense to ask for the events generated by a user without restricting it by the project. At the very least we may need to allow them to specify user_id or project_id or both.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
>   GET sum of (counter_volume, counter_duration) for counter_type and<br>
> account_id<br>
>     optional start and end for counter_datetime<br>
<br>
   GET sum of (counter_volume, counter_duration) for counter_type and<br>
</div>[user_id|project_id|source]<br>
<div class="im">     optional start and end for counter_datetime<br>
<br>
</div>Hope this makes sense.<br>
<br>
Another item that we need to discuss is extensibility of this API.<br>
<span class="HOEnZb"><font color="#888888"><br>
Nick<br>
<br>
<br>
</font></span><br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br>