WebhookConfig
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| EventSourceConfig evented_config.configs Base configuration for event sources. |
⋔ Inheritance diagram¶
graph TD
4245672194["configs.WebhookConfig"]
711273161["configs.EventSourceConfig"]
330168112["schema.Schema"]
3879467795["main.BaseModel"]
2751680898["builtins.object"]
711273161 --> 4245672194
330168112 --> 711273161
3879467795 --> 330168112
2751680898 --> 3879467795
🛈 DocStrings¶
Bases: EventSourceConfig
Webhook event source.
Source code in src/evented_config/configs.py
host
class-attribute
instance-attribute
¶
Interface to bind to. Loopback by default; set a secret when binding a public one.
path
class-attribute
instance-attribute
¶
URL path to handle requests.
port
class-attribute
instance-attribute
¶
Port to listen on.
secret
class-attribute
instance-attribute
¶
secret: SecretStr | None = Field(
default=None, examples=["webhook_secret_123", "github_webhook_key"], title="Validation secret"
)
Optional secret for request validation (HMAC signature, see the docs).
type
class-attribute
instance-attribute
¶
webhook-based event.
get_event_source
¶
get_event_source() -> WebhookEventSource