Create Slack webhook exporter.
(webhook_url: str, min_severity: str = "medium")
| 262 | def create_slack_webhook(webhook_url: str, min_severity: str = "medium") -> WebhookExporter: |
| 263 | """Create Slack webhook exporter.""" |
| 264 | return WebhookExporter( |
| 265 | url=webhook_url, |
| 266 | format="slack", |
| 267 | min_severity=min_severity, |
| 268 | ) |
| 269 | |
| 270 | |
| 271 | def create_discord_webhook(webhook_url: str, min_severity: str = "medium") -> WebhookExporter: |
| 272 | """Create Discord webhook exporter.""" |
| 273 | return WebhookExporter( |
nothing calls this directly
no test coverage detected