je_load_density.utils.notifier.slack
Slack notifier.
Builds a Block Kit payload from the LoadDensity summary and POSTs it to
an incoming-webhook URL. Network I/O can be swapped via the poster
parameter so tests don’t hit the network.
Functions
|
|
|
Build a Slack Block Kit message from |
- je_load_density.utils.notifier.slack.build_slack_summary(summary: Dict[str, Any], title: str = 'LoadDensity run') Dict[str, Any]
- je_load_density.utils.notifier.slack.post_slack_summary(webhook_url: str, summary: ~typing.Dict[str, ~typing.Any] | None = None, title: str = 'LoadDensity run', timeout: float = 5.0, poster: ~typing.Callable[[str, bytes, float], int] = <function _default_poster>) int
Build a Slack Block Kit message from
summary(defaults tobuild_summary()) and POST it. Returns the HTTP status.