← Documentation
ADS-IDAC Engine 5.0.0
Notification.h File Reference

Send completion notifications via ntfy.sh or Discord webhooks. More...

#include <string>
Include dependency graph for Notification.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  RunSummary
 Summary of a completed simulation run. More...
 

Functions

void send_completion_notification (const RunSummary &summary)
 Send completion notifications to all configured targets. Non-fatal: prints a warning if curl fails, never throws. More...
 
std::string auto_ntfy_topic ()
 Generate a default ntfy topic name: "ads" + 4 hex chars from hostname hash. Example: "ads7f3a". More...
 

Variables

std::string notify_ntfy_topic
 Global notification targets (set by Scheduler::parseOptions). More...
 
std::string notify_discord_webhook
 

Detailed Description

Send completion notifications via ntfy.sh or Discord webhooks.

Definition in file Notification.h.

Function Documentation

◆ auto_ntfy_topic()

std::string auto_ntfy_topic ( )

Generate a default ntfy topic name: "ads" + 4 hex chars from hostname hash. Example: "ads7f3a".

Definition at line 101 of file Notification.cpp.

◆ send_completion_notification()

void send_completion_notification ( const RunSummary &  summary)

Send completion notifications to all configured targets. Non-fatal: prints a warning if curl fails, never throws.

Definition at line 111 of file Notification.cpp.

References notify_discord_webhook, notify_ntfy_topic, send_discord(), and send_ntfy().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ notify_discord_webhook

std::string notify_discord_webhook
extern

Definition at line 14 of file Notification.cpp.

◆ notify_ntfy_topic

std::string notify_ntfy_topic
extern

Global notification targets (set by Scheduler::parseOptions).

Definition at line 13 of file Notification.cpp.