Hi Ramzi,

I have uploaded one sample file at
https://s3-ap-southeast-1.amazonaws.com/praveenamazonbucket/usage.xml in
XML format.
Please let me know if this file works for you or not.

Thanks,
Praveen

On Sun, Apr 5, 2015 at 2:38 PM, Ramzi Youssefi <ryouss...@gmail.com> wrote:

> Hi Praveen,
>
> thank you for your reply!
> I was checking in the database for usage data and I realised that all usage
> tables are empty. I think this is because I'm using the simulator, which
> only mocks some virtual machines and storage devices (among others).
>
> It would be great if I could at least have a json file with some data
> examples. Do you know where I can find something like this?
>
> Thanks!
>
> On Sun, Apr 5, 2015 at 4:53 AM, Praveen B <pbprave...@gmail.com> wrote:
>
> > Hi Ramzi,
> >
> > A couple of checks for troubleshooting your usage data issue
> >     1) Check whether  usage data is generated for the selective range
> >             - You can validate this by going through usage log located in
> > /var/log/cloudstack/usage/usage.log file OR check data in usage
> >                DB tables. To make it simple, always check for latest
> data.
> >
> >     2) If you have an other cloudstack instance, execute same API call on
> > it to confirm whether API parameters are correct or not.
> >         I am not sure about simulator whether it can generate and show
> > usage data or not. Give us the API call that you used.
> >
> > listUsageRecords API is programmed in a way that it can be executed by
> only
> > admins. Users may not be able to execute it.
> > Since you are calling this API through billing module, can you try to use
> > admin's keys for all users in the code and see if normal users also can
> > list usage data?
> >
> > Thanks,
> > Praveen
> >
> > On Sun, Apr 5, 2015 at 1:31 AM, Ramzi Youssefi <ryouss...@gmail.com>
> > wrote:
> >
> > > Hello dear developers,
> > >
> > > I'm developing a billing module for Cloudstack and I'm having troubles
> in
> > > two points:
> > > 1.- When I call the API I just a receive a response without data (maybe
> > > because I'm using the simulator?). Maybe I'm using the wrong call?
> > > (startdate and enddate are set)
> > >
> > > 2.- The idea is that the client can query their usage data but the API
> > > won't work for users. Only root and domain admin. Is there any way to
> > make
> > > possible that the users can call the API?
> > >
> > > Thanks for your help!
> > > --
> > > Ramzi Youssefi
> > > Görlitzer Str. 49
> > > 01099 Dresden, Germany.
> > > Cell: +49 173 1965465
> > > Email: ryouss...@gmail.com
> > >
> >
>
>
>
> --
> Ramzi Youssefi
> Görlitzer Str. 49
> 01099 Dresden, Germany.
> Cell: +49 173 1965465
> Email: ryouss...@gmail.com
>

Reply via email to