Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 1.02 KB

README.md

File metadata and controls

49 lines (36 loc) · 1.02 KB

Pingdom.Client

C# Strongly Typed Client for Pingdom.com APIs 2.0

Avaliable resources:

  • Actions
  • Analysis
  • Checks
  • Contacts
  • Probes
  • TraceRoute

Installation

NuGet package page - http://www.nuget.org/packages/Pingdom.Client/

PM> Install-Package Pingdom.Client

Getting Started

Setup credentials and base url

Add the following block to your .config file:

<appSettings>
	<add key="pingdom:BaseUrl" value="https://api.pingdom.com/api/2.0/" />
	<add key="pingdom:AppKey" value="{enter your appKey}" />
	<add key="pingdom:UserName" value="{enter your userName}" />
	<add key="pingdom:Password" value="{enter your password}" />
</appSettings>

Examples

fetch all checks

var allChecksResponse = await Pingdom.Client.Checks.GetChecksList();
var allChecks = allChecksResponse.Checks;

fetch single detailed check

var detailedCheckResponse = await Pingdom.Client.Checks.GetDetailedCheckInformation(797046);
var detailedCheck = detailedCheckResponse.Check;