@misterhuydo/sentinel 1.5.58 → 1.5.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.5.
|
|
1
|
+
__version__ = "1.5.59"
|
package/python/sentinel/main.py
CHANGED
|
@@ -1857,7 +1857,14 @@ async def _execute_monitor(monitor: dict, cfg_loader: ConfigLoader, store: State
|
|
|
1857
1857
|
if done:
|
|
1858
1858
|
header += " _(final)_"
|
|
1859
1859
|
try:
|
|
1860
|
-
await slack_client.chat_postMessage(
|
|
1860
|
+
await slack_client.chat_postMessage(
|
|
1861
|
+
channel=channel,
|
|
1862
|
+
text=header, # plain-text fallback for notifications
|
|
1863
|
+
blocks=[{
|
|
1864
|
+
"type": "section",
|
|
1865
|
+
"text": {"type": "mrkdwn", "text": f"{header}\n{combined}"},
|
|
1866
|
+
}],
|
|
1867
|
+
)
|
|
1861
1868
|
except Exception as e:
|
|
1862
1869
|
logger.warning("Monitor %s: Slack post failed: %s", mon_id, e)
|
|
1863
1870
|
|