-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pull_count to artifact #21664
Comments
isn't it on the api level different? |
I'm sorry, but I'm not sure what do you mean. |
The pull_count is a cumulative value, can not indicate where this image is used or not now. maybe the pull time is more accurate. |
Yes, but I can make stronger assumption that image is unused if it hasn't been pulled in, say, one year with only few pulls, compared to artifact that hasn't been pulled in the same time, but has few hundred pulls. In second case it is much more likely that image is still used somewhere. |
No, we don't have it on the API level. I think we collect this metric only on repo level and not on the artifact level. |
Is your feature request related to a problem? Please describe.
I want to write some script to delete unneeded artifacts/images. Currently
harbor for artifacts only exposes
pull_time
, and I would like to removeartifacts that haven't been downloaded in long time and have few downloads.
Describe the solution you'd like
Add
pull_count
to Artifact.pull_count
is already present in Repository, but repository can contain many artifacts.The text was updated successfully, but these errors were encountered: