← Documentation
ADS-IDAC Engine 5.0.0
Notification.h
Go to the documentation of this file.
1
3
4#pragma once
5#include <string>
6
8struct RunSummary {
9 std::string project;
10 int sequences = 0;
11 double wall_seconds = 0.0;
12 int ranks = 1;
13 std::string solver; // "relap" or "mock"
14 double truncation_time = 0.0;
15};
16
18extern std::string notify_ntfy_topic;
19extern std::string notify_discord_webhook;
20
23void send_completion_notification(const RunSummary& summary);
24
27std::string auto_ntfy_topic();
void send_completion_notification(const RunSummary &summary)
Send completion notifications to all configured targets. Non-fatal: prints a warning if curl fails,...
std::string notify_discord_webhook
std::string auto_ntfy_topic()
Generate a default ntfy topic name: "ads" + 4 hex chars from hostname hash. Example: "ads7f3a".
std::string notify_ntfy_topic
Global notification targets (set by Scheduler::parseOptions).
Summary of a completed simulation run.
Definition: Notification.h:8
std::string solver
Definition: Notification.h:13
std::string project
Definition: Notification.h:9
double truncation_time
Definition: Notification.h:14
double wall_seconds
Definition: Notification.h:11