Mailinglist Archive: opensuse-buildservice (206 mails)

< Previous Next >
Re: [opensuse-buildservice] Download statistics of a specific project?
  • From: Carsten Hoeger <choeger@xxxxxxxxxxxx>
  • Date: Thu, 5 Mar 2009 09:47:47 +0100
  • Message-id: <20090305084747.GH4187@xxxxxxxxxxxx>
On Thu, Mar 05, Petit Eric wrote:

is it possible to fetch download statistics of a specific project only
using
the OBS API?

I don't see anything in https://api.opensuse.org/apidocs/
Globaly, no i asked it few time :-)

As obs already HAS counters internally, it should not to difficult to query
them.

Now that I did some queries and had a look at the counters, they seem to be
very low.

E.g.:

<count package="wine" architecture="i586" version="0.9.37" filetype="rpm"
 filename="wine" release="12.1" project="Emulators:Wine"
repository="SLE-10">
691
</count>

what is the GET REST query you used to get this xml outpu ?
(https://api.opensuse.org/............ ?)

curl -u USERNAME:PASSWORD \
'https://api.opensuse.org/statistics/download_counter'

or

curl -u USERNAME:PASSWORD \
'https://api.opensuse.org/statistics/download_counter?limit=NNN'

--
With best regards,

Carsten Hoeger
< Previous Next >