Skip to content
Functioncorev0.10.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
): <
    HandlerCtor extends Constructor<
        WebhookLog<SubscriptionKey, CoreBase>
    >
>(
    constructor: HandlerCtor
) => void

envKey

envKey: string

The environment variable name holding the webhook url