API Download Counts By Revision

Ryan McDonagh ryan at spicule.co.uk
Wed Jun 27 15:04:01 UTC 2018


Hello all! Adding on to Tim's messages yesterday, I'm working on the same
project with Spicule and I've noted a further point that would be worth
getting some clarification on. Sorry to have to use Tengu's Mattermost
charm as an example again!

When I attempt to get a list of all of Tengu's charms, it returns both a
promulgated version of Mattermost, as well as an unpromulgated version:

{"Id": "cs:mattermost-0"},
{"Id": "cs:~tengu-team/mattermost-2"}

I'm feeding these lists into further scripts to prod the Stats endpoint in
the same way Tim was doing yesterday, and dynamically generating API
requests using this information.

Doing a search on cs:mattermost-0 returns 0 downloads... (
https://api.jujucharms.com/v5/stats/counter/archive-download::mattermost:tengu-team:0?by=day&start=2018-06-17&list=0
)

As does doing a search on cs:mattermost-2...
(
https://api.jujucharms.com/v5/stats/counter/archive-download::mattermost:tengu-team:2?by=day&start=2018-06-17&list=0
)

However, doing a search on all revisions returns five downloads...
(
https://api.jujucharms.com/v5/stats/counter/archive-download::mattermost:tengu-team:*?by=day&start=2018-06-17&list=0
)

We've figured out that those five downloads are attributed to revision
number 3 (
https://api.jujucharms.com/v5/stats/counter/archive-download::mattermost:tengu-team:3?by=day&start=2018-06-17&list=0),
which isn't currently available on the Charm store - at least, we can't see
it. We've only been spinning up the revision number 0 Charm, and when we
search specificly for that revision, no results show up.

So, after all that, I'm basically looking to see if there's any
understanding as to why this is? If I search by all revisions, I can't
achieve the finer details as revision-specific numbers aren't returned. And
revision 3, where the downloads are being attributed, isn't showing up on
the Charm Store nor on the list endpoint. Any help would be massively
appreciated!

Many thanks,

Ryan McDonagh

-- 


Spicule Limited is registered in England & Wales. Company Number: 
09954122. Registered office: First Floor, Telecom House, 125-135 Preston 
Road, Brighton, England, BN1 6AF. VAT No. 251478891.




All engagements 
are subject to Spicule Terms and Conditions of Business. This email and its 
contents are intended solely for the individual to whom it is addressed and 
may contain information that is confidential, privileged or otherwise 
protected from disclosure, distributing or copying. Any views or opinions 
presented in this email are solely those of the author and do not 
necessarily represent those of Spicule Limited. The company accepts no 
liability for any damage caused by any virus transmitted by this email. If 
you have received this message in error, please notify us immediately by 
reply email before deleting it from your system. Service of legal notice 
cannot be effected on Spicule Limited by email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20180627/35d221f8/attachment.html>


More information about the Juju mailing list