|
|
||
|---|---|---|
| .. | ||
| README.md | ||
| dockerhub_webhooks.go | ||
| dockerhub_webhooks_mocks.go | ||
| dockerhub_webhooks_models.go | ||
| dockerhub_webhooks_test.go | ||
README.md
Docker Hub Webhook
Docker Hub can be configured to send events to Webhooks. The page describes the JSON format of the events:
https://docs.docker.com/docker-hub/webhooks/
Webhooks are configured by repository:
https://hub.docker.com/r/User/[Repository]]/~/settings/webhooks/
Events
An event is generated by Docker Hub as the result of a docker push to the repository.
dockerhub_event
The measurement is called "dockerhub"
Tags:
-
'description' =
repository.descriptionstring -
'name' =
repository.namestring -
'namespace' =
repository.namespacestring -
'owner' =
repository.ownerstring -
'repo_name' =
repository.repo_namestring -
'repo_url' =
repository.repo_urlstring -
'status' =
repository.statusstring -
'pusher' =
push_data.pusherstring -
'tag' =
push_data.tagstring
Fields:
-
'comment_count' =
repository.comment_countint -
'date_created' =
repository.date_createdint64 -
'is_official' =
repository.is_officialbool -
'is_private' =
repository.is_privatebool -
'is_trusted' =
repository.is_trustedbool -
'star_count' =
repository.stat_countint -
'pushed_at' =
push_data.psuhed_atint64