Skip to content

diopisemou/DogApiNet

 
 

Repository files navigation

DogApiNet - .NET client for Datadog's API

License

Installation

Getting started from downloading NuGet packages.

PM> Install-Package DogApiNet -Version 1.0.0

Usage

using DogApiNet;
const string API_KEY = "api_key";
const string APP_KEY = "app_key";

async Task Main()
{
	using (var client = new DogApiClient(API_KEY, APP_KEY))
	{
		var end = DateTimeOffset.Now;
		var start = end.AddMinutes(-60);
		var events = await client.Event.QueryAsync(start, end, tags: new[] { "project:hogehoge", "stack:production"});
		events.Dump();
	}
}

License

MIT

About

.NET client for Datadog's API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%