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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="HaemmerElectronics.SeppPenner.PagerDutyClient" Version="1.0.13" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HaemmerElectronics.SeppPenner.PagerDutyClient" Version="1.0.13" />
                    
Directory.Packages.props
<PackageReference Include="HaemmerElectronics.SeppPenner.PagerDutyClient" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add HaemmerElectronics.SeppPenner.PagerDutyClient --version 1.0.13
                    
#r "nuget: HaemmerElectronics.SeppPenner.PagerDutyClient, 1.0.13"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package HaemmerElectronics.SeppPenner.PagerDutyClient@1.0.13
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=HaemmerElectronics.SeppPenner.PagerDutyClient&version=1.0.13
                    
Install as a Cake Addin
#tool nuget:?package=HaemmerElectronics.SeppPenner.PagerDutyClient&version=1.0.13
                    
Install as a Cake Tool

PagerDutyClient

PagerDutyClient is a library to send alarms to PagerDuty. Use the API at https://developer.pagerduty.com/docs/events-api-v2/trigger-events/.

Build status GitHub issues GitHub forks GitHub stars License: MIT Nuget NuGet Downloads Known Vulnerabilities Gitter Blogger Patreon PayPal

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.