8 releases

0.1.6 Mar 3, 2022
0.1.5 Feb 4, 2022
0.1.4 Dec 23, 2021
0.1.1 Jan 5, 2021
0.0.1 Dec 2, 2020

#2 in #pager-duty

Download history 321/week @ 2024-06-17 246/week @ 2024-06-24 242/week @ 2024-07-01 189/week @ 2024-07-08 167/week @ 2024-07-15 176/week @ 2024-07-22 176/week @ 2024-07-29 92/week @ 2024-08-05 208/week @ 2024-08-12 206/week @ 2024-08-19 293/week @ 2024-08-26 242/week @ 2024-09-02 307/week @ 2024-09-09 161/week @ 2024-09-16 254/week @ 2024-09-23 263/week @ 2024-09-30

990 downloads per month
Used in 2 crates

Apache-2.0

35KB
651 lines

Build Status

pagerduty-rs

A PagerDuty Events V2 API Client Library in Rust.

Using the API

Complete API examples are provided as integration tests.

With feature sync:

use pagerduty_rs::eventsv2sync::*;
use pagerduty_rs::types::*;

// ....

// Create an API client with an Integration Key
let ev2 = EventsV2::new(String::from("IntegrationKey"), Some("Optional pagerduty-rs user agent".to_owned())).unwrap();

// Then send an event (which might be a change, alert trigger/acknowledge/resolve)...
ev2.event(Event::AlertTrigger(AlertTrigger{
    // ...
}));

With feature async:

use pagerduty_rs::eventsv2async::*;
use pagerduty_rs::types::*;

// ....

// Create an API client with an Integration Key
let ev2 = EventsV2::new(String::from("IntegrationKey"), Some("Optional pagerduty-rs user agent".to_owned())).unwrap();

// Then send an event (which might be a change, alert trigger/acknowledge/resolve)...
ev2.event(Event::AlertTrigger(AlertTrigger{
    // ...
})).await;

Dependencies

~4–18MB
~268K SLoC