mongoose.forward.discord
- class mongoose.forward.discord.DiscordFormatter[source]
Bases:
BaseFormatterFormats network events into Discord webhook payloads with embed size enforcement.
The formatter tries to create informative embeds while respecting Discord’s size limits. When an object contains many fields, only the most important are used, and long values are truncated.
- class mongoose.forward.discord.DiscordForwarder(config)[source]
Bases:
BaseForwarderSends payloads to Discord webhooks using the DiscordForwarderConfiguration.
This class follows the project’s forwarder retry semantics but customizes the retry logic: HTTP 4xx responses are considered non-retryable, 5xx and network errors are retryable according to the configured retry_count/retry_delay.