Skip to content
Functioncorev0.12.0Decorator

WebhookUrl

Declares the environment variable a WebhookLog reporter reads its webhook url from.

An unset variable disables the reporter with a boot warning. A set but malformed value throws at boot.

WebhookUrl(
    envKey: string
): <Keys extends SubscriptionKey>(
    constructor: Constructor<WebhookLog<Keys, CoreBase>>
) => void

envKey

envKey: string

The environment variable name holding the webhook url