Event Types
Event types categorize events sent to Hook0. An event type consists of three dot-separated parts: service name, resource type, and verb.
Naming Conventions
Event types follow a dot-separated format: service.resource.verb
- Service: The system or domain generating the event (e.g.,
iam,billing,storage) - Resource: The entity being acted upon (e.g.,
user,invoice,file) - Verb: The action in past tense (e.g.,
created,updated,deleted)
Good Examples
iam.user.created- IAM service, user resource, creation actionbilling.invoice.paid- Billing service, invoice resource, payment actionstorage.file.removed- Storage service, file resource, removal actionapi.application.created- API service, application resource, creation action
Bad Examples
IAM_USER_CREATED- Uses uppercase and underscores instead of lowercase dot-separated formatUserCreated- Missing service context and uses PascalCaseuser-created- Missing service context and uses dashes instead of dotsiam_user_created- Uses underscores instead of dots
Key Functions
Event types serve two primary purposes:
-
Payload Structure: Events with the same event type are expected to have the same payload structure, making it simpler for webhook receivers to process data.
-
Subscription Filtering: Users creating subscriptions can choose which event types they want to hear about, allowing Hook0 to forward only matching events for specific subscriptions.