HaemmerElectronics.SeppPenner.PagerDutyClient
1.0.14
Prefix Reserved
dotnet add package HaemmerElectronics.SeppPenner.PagerDutyClient --version 1.0.14
NuGet\Install-Package HaemmerElectronics.SeppPenner.PagerDutyClient -Version 1.0.14
<PackageReference Include="HaemmerElectronics.SeppPenner.PagerDutyClient" Version="1.0.14" />
<PackageVersion Include="HaemmerElectronics.SeppPenner.PagerDutyClient" Version="1.0.14" />
<PackageReference Include="HaemmerElectronics.SeppPenner.PagerDutyClient" />
paket add HaemmerElectronics.SeppPenner.PagerDutyClient --version 1.0.14
#r "nuget: HaemmerElectronics.SeppPenner.PagerDutyClient, 1.0.14"
#:package HaemmerElectronics.SeppPenner.PagerDutyClient@1.0.14
#addin nuget:?package=HaemmerElectronics.SeppPenner.PagerDutyClient&version=1.0.14
#tool nuget:?package=HaemmerElectronics.SeppPenner.PagerDutyClient&version=1.0.14
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 10.0
- Net 11.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 | 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. net11.0 is compatible. |
-
net10.0
- Newtonsoft.Json (>= 13.0.4)
- NJsonSchema (>= 11.6.2)
- Serilog (>= 4.4.0)
-
net11.0
- Newtonsoft.Json (>= 13.0.4)
- NJsonSchema (>= 11.6.2)
- 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.14 | 93 | 11/24/2026 |
| 1.0.13 | 184 | 8/15/2026 |
| 1.0.12 | 298 | 11/24/2024 |
| 1.0.11 | 259 | 5/16/2024 |
| 1.0.10 | 397 | 12/7/2023 |
| 1.0.9 | 267 | 11/13/2023 |
| 1.0.8 | 384 | 4/7/2023 |
| 1.0.7 | 521 | 11/20/2022 |
| 1.0.6 | 590 | 10/30/2022 |
| 1.0.5 | 673 | 2/16/2022 |
| 1.0.4 | 563 | 11/11/2021 |
| 1.0.3 | 552 | 8/9/2021 |
| 1.0.2 | 599 | 7/25/2021 |
| 1.0.1 | 576 | 2/21/2021 |
| 1.0.0 | 644 | 1/20/2021 |
Version 1.0.14.0 (2026-11-24): Removed support for Net8.0 as it is out of support, added support for Net11.0, updated NuGet packages.