pub trait EventApiResource {
    // Required methods
    fn event(
        &mut self,
        api_key: &str,
        event_type: ILertEventType,
        summary: Option<String>,
        alert_key: Option<String>
    ) -> Box<&dyn BaseRequestExecutor>;
    fn event_with_details(
        &mut self,
        api_key: &str,
        event_type: ILertEventType,
        summary: Option<String>,
        alert_key: Option<String>,
        details: Option<String>,
        priority: Option<ILertPriority>,
        images: Option<Vec<EventImage>>,
        links: Option<Vec<EventLink>>,
        custom_details: Option<Value>,
        routing_key: Option<String>
    ) -> Box<&dyn BaseRequestExecutor>;
    fn event_with_comment(
        &mut self,
        api_key: &str,
        alert_key: Option<String>,
        comments: Option<Vec<EventComment>>
    ) -> Box<&dyn BaseRequestExecutor>;
}

Required Methods§

source

fn event( &mut self, api_key: &str, event_type: ILertEventType, summary: Option<String>, alert_key: Option<String> ) -> Box<&dyn BaseRequestExecutor>

source

fn event_with_details( &mut self, api_key: &str, event_type: ILertEventType, summary: Option<String>, alert_key: Option<String>, details: Option<String>, priority: Option<ILertPriority>, images: Option<Vec<EventImage>>, links: Option<Vec<EventLink>>, custom_details: Option<Value>, routing_key: Option<String> ) -> Box<&dyn BaseRequestExecutor>

source

fn event_with_comment( &mut self, api_key: &str, alert_key: Option<String>, comments: Option<Vec<EventComment>> ) -> Box<&dyn BaseRequestExecutor>

Implementors§