This enhancement request is to have the number of unique downloads based on the origination email address or IP address.
At a minimum we need one aggregate download metric like how Dockerhub gives. Below is an example of how the DockerHub API for this can be leverage:
for repository in repositories:
# Make the API request to get the repository information
api_url = f'https://hub.docker.com/v2/repositories/{repository}/'
response = requests.get(api_url)
# Check if the request was successful (status code 200)
if response.status_code == 200:
data = response.json()
pull_count = data['pull_count']
print(f"DH pulls for {repository}: {pull_count}")
writer.writerow([today, "DockerHub",f"\\{repository}", f"\\{pull_count}"])
else:
print(f"Failed to retrieve pull information for {repository}.")
For such a metric to reflect customer downloads we need a way to filter out Dell's own dev/test and CI/CD pulls.
- duplicates
-
PROJQUAY-7176 Image pull activity tracking
-
- Planning
-