pub struct PagerDutyProvider {
pub url: String,
/* private fields */
}Expand description
Triggers a PagerDuty alert through the Events API v2. The signal’s
dedup_key becomes PagerDuty’s, so a repeat of the same signal adds
to the open alert instead of paging again.
Fields§
§url: StringImplementations§
Source§impl PagerDutyProvider
impl PagerDutyProvider
pub fn new(routing_key: String, url: Option<String>) -> Self
Sourcepub fn with_templates(self, templates: Option<Templates>) -> Self
pub fn with_templates(self, templates: Option<Templates>) -> Self
Uses templates for the parts they set; see crate::template.
Trait Implementations§
Source§impl Provider for PagerDutyProvider
impl Provider for PagerDutyProvider
Source§fn preview(&self, signal: &Signal) -> Option<Value>
fn preview(&self, signal: &Signal) -> Option<Value>
The routing key is a credential, so it is left out.
fn name(&self) -> &'static str
fn send<'life0, 'life1, 'async_trait>(
&'life0 self,
signal: &'life1 Signal,
) -> Pin<Box<dyn Future<Output = Result<(), SignalError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !Freeze for PagerDutyProvider
impl !RefUnwindSafe for PagerDutyProvider
impl !UnwindSafe for PagerDutyProvider
impl Send for PagerDutyProvider
impl Sync for PagerDutyProvider
impl Unpin for PagerDutyProvider
impl UnsafeUnpin for PagerDutyProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more