[RTFACT-9561] To have the ability to check using the PAPI the remote downloads stats Created: 14/Mar/16  Updated: 14/Nov/17  Resolved: 29/Jun/16

Status: Resolved
Project: Artifactory Binary Repository
Component/s: Plugins
Affects Version/s: None
Fix Version/s: 4.9.0

Type: New Feature Priority: High
Reporter: Alexei Vainshtein Assignee: Dan Feldman (Inactive)
Resolution: Fixed Votes: 5
Labels: None

Issue Links:
relates to RTFACT-9987 File Statistics "remoteDownloadCount"... Resolved
relates to RTFACT-9562 AQL does not returns the last remote ... Resolved


Currently the artifactsNotDownloadedSince method checks the downloaded only and not the remote downloaded when using the smart remote repository. There should be a method to check the remote download stats also

Comment by Klaus Foerschl [ 12/Apr/16 ]

Please prioritize this request.
We have implemented retention period - cleanup/archiving plugins, relying on those methods. Since the remote downloads are obviously not honored we are cleaning items still in use.

Best regards

Comment by Dan Feldman (Inactive) [ 27/Jun/16 ]

2 fixes here:
1. PAPI method artifactsNotDownloadedSince now searches for both remote and local download stats - if an artifact matches any of the criteria (downloaded before or remote downloaded before) it is returned.
2. The search endpoint (which uses the exact same search eventually) has been modified to return both local and remote download statistics, i.e:

curl "http://localhost:8080/artifactory/api/search/usage?notUsedSince=1466936580000&repos=local-that-has-smart-remote-pointing-to-it"
  "results" : [ {
    "uri" : "http://localhost:8080/artifactory/api/storage/local-that-has-smart-remote-pointing-to-it/test.artifact",
    "downloadCount" : 0,
    "lastDownloaded" : "1970-01-01T02:00:00.000+02:00",
    "remoteDownloadCount" : 2,
    "remoteLastDownloaded" : "2016-06-26T13:19:31.751+03:00"
  } ]

The search api endpoint also searches for both local and remote stats on an artifact - if any of them match the time specified it will be returned with both stats.

Generated at Wed Aug 12 01:55:42 UTC 2020 using Jira 8.5.3#805003-sha1:b4933e02eaff29a49114274fe59e1f99d9d963d7.