Hi Guys,
I think the most important thing here is that we develop this API
together with whoever is going to be writing the UI code that will be
using this API. I.e. as long as this API works well for the people
writing the application code, I'm fine with it.
That said, a few things stood up when looking over this API:
* The names "find" and "slice" aren't very descriptive. As far as I
can tell, the two functions do exactly the same thing except one uses
database indexes to set start and end, whereas the other uses dates.
Is that correct? In general using indexes doesn't seem very useful to
me. If you want to display all history, couldn't you simply set the
start to a very old date? Or make the start optional?
* How is the start/end specified for addUsageAlarm? Using Date objects?
* Please coordinate with Hsin-Yi for the multi-sim stuff. I take it
that we want to store the data per-simcard and not per-simslot or
similar?
/ Jonas
On Thu, Apr 4, 2013 at 6:04 AM, Salvador de la Puente González
<
s...@tid.es> wrote:
> Hello everybody
>
> Here is the new IDL proposal for NetworkStats API [1] that allows the user
> to recover information about transmitted and received bytes per interface.
> We are trying to enrich the current interface with those features detected
> while developing Usage / Cost Control application [2]. Furthermore, we need
> feedback for those in charge of the per-application data usage [3] to see if
> we can merge both APIs.<
https://bugzilla.mozilla.org/show_bug.cgi?id=746073>
>
> Main changes are:
>
> * Support for multiple mobile statistics for each SIM in such a way it is
> transparent to the API's user.
> * Support for multi-SIM scenarios. We propose the NetworkInterface
> concept.
> * Support for back-end usage alarms.
> * Samples are now stored taking in count clock changes by using an
> always-increasing reference timestamp and storing the user timestamp
> separately.
> * Returned samples includes now total rx / tx bytes transmitted until
> date to always provide accurate information even when some samples has been
> deleted from DB due to size control mechanisms.
> * Now it is possible to query the database as it were an array by using a
> similar syntax to Array.slice() parameters.
>
> Users stories are provided in the etherpad [1] to support each new feature.
> Most of them are reflected in the interaction document [4] and others are
> only proposals.
>
> Please, feel free to provide any feedback you think is valuable.
>
> Thanks for your time and cheers!
>
> [1]
https://etherpad.mozilla.org/network-statistics-api-2
> [2]
https://bugzilla.mozilla.org/show_bug.cgi?id=858003
> [3]
https://bugzilla.mozilla.org/show_bug.cgi?id=746073
> [4]
>
https://www.dropbox.com/sh/z4aomhu09c1k4hu/yn-RrhgQtO/_Production/Interaction/Apps/Cost%20Control/OWD%20Data%20Usage%20V15%2020130212%20updated.pdf
>
> ________________________________
>
> Este mensaje se dirige exclusivamente a su destinatario. Puede consultar
> nuestra política de envío y recepción de correo electrónico en el enlace
> situado más abajo.
> This message is intended exclusively for its addressee. We only send and
> receive email on the basis of the terms set out at:
>
http://www.tid.es/ES/PAGINAS/disclaimer.aspx
> _______________________________________________
> dev-webapi mailing list
>
dev-w...@lists.mozilla.org
>
https://lists.mozilla.org/listinfo/dev-webapi