Charm series in API URL

Martin Hilton martin.hilton at canonical.com
Tue Jun 26 15:46:08 UTC 2018


Hi Tim,

The statistics are based on the name of the charm itself. Once upon a time
all charms contained the series in their name. Using your example above
cs:~bigdata-charmers/trusty/hadoop-plugin-5 (
https://jujucharms.com/u/bigdata-charmers/hadoop-plugin/trusty/5) is a
different charm from cs:~bigdata-charmers/xenial/hadoop-plugin-5 (
https://jujucharms.com/u/bigdata-charmers/hadoop-plugin/xenial/5). Later
charms are generally multi-series where the series is not included in the
name. For example cs:~bigdata-charmers/hadoop-plugin-35 (
https://jujucharms.com/u/bigdata-charmers/hadoop-plugin/35). You'll notice
that to get the statistics for the later version of the charm are not
accessible at https://api.jujucharms.com/charmstore/v5/stats/counter/
archive-download:xenial:hadoop-plugin:bigdata-charmers:35?by=day&start=2016-
04-01&end=2018-06-20&include=promulgated, but can be found at
https://api.jujucharms.com/charmstore/v5/stats/counter/archive-download::
hadoop-plugin:bigdata-charmers:35?by=day&start=2016-
04-01&end=2018-06-20&include=promulgated.

cs:~spiculecharms/apache-drill is considered a multi-series charm in this
respect as there is no series in the name.

I hope that clarifies things.
​
Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20180626/5d89b4ef/attachment.html>


More information about the Juju mailing list