HaemmerElectronics.SeppPenner.PagerDutyClient
1.0.13
Prefix Reserved
dotnet add package HaemmerElectronics.SeppPenner.PagerDutyClient --version 1.0.13
NuGet\Install-Package HaemmerElectronics.SeppPenner.PagerDutyClient -Version 1.0.13
<PackageReference Include="HaemmerElectronics.SeppPenner.PagerDutyClient" Version="1.0.13" />
<PackageVersion Include="HaemmerElectronics.SeppPenner.PagerDutyClient" Version="1.0.13" />
<PackageReference Include="HaemmerElectronics.SeppPenner.PagerDutyClient" />
paket add HaemmerElectronics.SeppPenner.PagerDutyClient --version 1.0.13
#r "nuget: HaemmerElectronics.SeppPenner.PagerDutyClient, 1.0.13"
#:package HaemmerElectronics.SeppPenner.PagerDutyClient@1.0.13
#addin nuget:?package=HaemmerElectronics.SeppPenner.PagerDutyClient&version=1.0.13
#tool nuget:?package=HaemmerElectronics.SeppPenner.PagerDutyClient&version=1.0.13
PagerDutyClient
PagerDutyClient is a library to send alarms to PagerDuty. Use the API at https://developer.pagerduty.com/docs/events-api-v2/trigger-events/.
Available for
- Net 8.0
- Net 10.0
Net Core and Net latest and LTS versions
Basic usage
Sending an alarm goes through the events API. It needs no API token, the routing key of the integration identifies the caller.
using PagerDutyClient;
using PagerDutyClient.Enumeration;
var logger = Log.ForContext<SomeContext>();
var pagerDutyClient = new PagerDutyClientV2(logger);
await pagerDutyClient.TriggerAlert(
"78e9279b9fa84b7b8e9f1ec7b9b85fef",
Severity.Critical,
"MyService",
"Some error.");
AcknowledgeAlert and ResolveAlert take the same arguments plus the deduplication key of the
alert that is being acknowledged or resolved.
Reading incidents and acknowledging or resolving them goes through the REST API, which needs an API token. That client has the same name as its namespace, so it needs a using alias or its full name.
using PagerDutyClient.Enumeration;
using RestClient = PagerDutyClient.PagerDutyClient;
var logger = Log.ForContext<SomeContext>();
var pagerDutyClient = new RestClient(logger, "y_NbAkKc66ryYTWUXYEu");
var incidents = await pagerDutyClient.GetIncidentsForService("PIJ90N7");
await pagerDutyClient.AcknowledgeAlert("PT4KHLK", "someone@example.com");
The project can be found on nuget.
Install
dotnet add package HaemmerElectronics.SeppPenner.PagerDutyClient
Change history
See the Changelog.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Newtonsoft.Json (>= 13.0.4)
- NJsonSchema (>= 11.6.1)
- Serilog (>= 4.4.0)
-
net8.0
- Newtonsoft.Json (>= 13.0.4)
- NJsonSchema (>= 11.6.1)
- Serilog (>= 4.4.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.13 | 100 | 8/15/2026 |
| 1.0.12 | 273 | 11/24/2024 |
| 1.0.11 | 232 | 5/16/2024 |
| 1.0.10 | 380 | 12/7/2023 |
| 1.0.9 | 254 | 11/13/2023 |
| 1.0.8 | 370 | 4/7/2023 |
| 1.0.7 | 505 | 11/20/2022 |
| 1.0.6 | 573 | 10/30/2022 |
| 1.0.5 | 656 | 2/16/2022 |
| 1.0.4 | 547 | 11/11/2021 |
| 1.0.3 | 529 | 8/9/2021 |
| 1.0.2 | 576 | 7/25/2021 |
| 1.0.1 | 562 | 2/21/2021 |
| 1.0.0 | 620 | 1/20/2021 |
Version 1.0.13.0 (2026-08-15): Removed support for Net9.0 as it is out of support, added support for Net10.0, updated NuGet packages, fixed the authorization header of the REST API client that made every call fail with 401, fixed the service identifier query parameter that was sent as a comma separated list, a trigger no longer sends an empty deduplication key, fixed the usage sample in the readme, added a test project.