How can I get count of downloaded artifacts in specified time period?

How can I get count of downloaded artifacts in specified time period?

AuthorFullName__c
JFrog Support
articleNumber
000001451
ft:sourceType
Salesforce
FirstPublishedDate
2016-10-06T13:35:46Z
lastModifiedDate
2024-03-10T07:48:50Z
VersionNumber
5

You can use the “File Statistics” REST query the get the file statistics, however, you cannot filter by date using this query.

 

A solution for this can be by writing a user plugin that will implement a beforeDownload execution point and save the download information in a local file or in a DB schema (e.g. add raw with download by, date, user etc...). Once you have the relevant information, you can have another execution point that will take a start date, stop date, and path as parameters and return the relevant information based on the local file/db information that you generated and saved earlier.