Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions bin/core/src/alert/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ use crate::{config::core_config, state::db_client};

mod discord;
mod ntfy;
mod pinglet;
mod pushover;
mod slack;

Expand Down Expand Up @@ -148,6 +149,17 @@ pub async fn send_alert_to_alerter(
)
})
}
AlerterEndpoint::Pinglet(PingletAlerterEndpoint {
url,
token,
}) => pinglet::send_alert(url, token.as_deref(), alert)
.await
.with_context(|| {
format!(
"Failed to send alert to Pinglet Alerter {}",
alerter.name
)
}),
}
}

Expand Down
Loading