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

#1338 in Web programming

Download history 150/week @ 2024-07-24 168/week @ 2024-07-31 125/week @ 2024-08-07 226/week @ 2024-08-14 268/week @ 2024-08-21 201/week @ 2024-08-28 302/week @ 2024-09-04 254/week @ 2024-09-11 185/week @ 2024-09-18 257/week @ 2024-09-25 276/week @ 2024-10-02 277/week @ 2024-10-09 447/week @ 2024-10-16 329/week @ 2024-10-23 323/week @ 2024-10-30 163/week @ 2024-11-06

1,306 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

~5–18MB
~273K SLoC