Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
ProGet Package Usage API?
-
Hi There,
I noticed there is a new "Package Usage" function in ProGet V5.3.5:
I'm using this on my Chocolatey feed, how is this usage information meant to be added? (the two rows in the screenshot above where added manually)
Is there an API for adding this usage information? I'm currently using the "Package deployment API" to record this same information but would be nice to record this info under "Package Usage" instead.
Thanks
Simon
-
hi Simon,
This records are maintained via Package Usage Scanning, which is something that routinely scans external resources for packages, and updates the status when a package is or isn't installed.
It's a little different from deployment records, in that deployment records are historic data and package usage is current data.
While you could write your own
PackageContainerScanner
by using theInedo.SDK
, Otter can collect the packages that are actually installed on various servers; the Otter-usage scanner (buitl in) simply queries to Otter about the status of those scans.