PanoramicData.Datadog.Api
2.1.5
See the version list below for details.
dotnet add package PanoramicData.Datadog.Api --version 2.1.5
NuGet\Install-Package PanoramicData.Datadog.Api -Version 2.1.5
<PackageReference Include="PanoramicData.Datadog.Api" Version="2.1.5" />
<PackageVersion Include="PanoramicData.Datadog.Api" Version="2.1.5" />
<PackageReference Include="PanoramicData.Datadog.Api" />
paket add PanoramicData.Datadog.Api --version 2.1.5
#r "nuget: PanoramicData.Datadog.Api, 2.1.5"
#:package PanoramicData.Datadog.Api@2.1.5
#addin nuget:?package=PanoramicData.Datadog.Api&version=2.1.5
#tool nuget:?package=PanoramicData.Datadog.Api&version=2.1.5
PanoramicData.Datadog.Api
A .NET API for Datadog
Unit Tests
To run unit tests, set up your unit test User secrets to match the usersecrets.example.json file.
Usage
using Datadog.Api;
var client = new DatadogClient(new()
{
ApiKey = "API_KEY",
ApplicationKey = "APPLICATION_KEY"
});
var users = await client.Users.GetAllAsync();
Filtered requests
Endpoints that accept query filters take a request object:
var metrics = await client.Metrics.GetMetricsAsync(
new GetMetricsRequest
{
FilterConfigured = true,
FilterMetricType = MetricType.Gauge,
WindowSeconds = 3600
},
cancellationToken);
The older overloads that took each filter as an optional parameter are obsolete and will be removed in 3.0. They produce identical requests, so migration is mechanical.
| 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. |
-
net10.0
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.12)
- Refit (>= 15.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Security fix: sensitive HTTP headers are now redacted in diagnostic output.
Previously AuthenticatedHttpClientHandler joined every request and response header, key and
value, into its Debug level log message. The handler adds DD-API-KEY and DD-APPLICATION-KEY to
each request, so both keys were written verbatim. Any consumer running at Debug retained usable
credentials for the life of its log store, and neither key expires.
DD-API-KEY and DD-APPLICATION-KEY are now redacted, along with Authorization,
Proxy-Authorization, Cookie, Set-Cookie and common API key header names, case-insensitively, on
request and response. The credential length is retained, so requests remain diagnosable without
exposing the value. The log line format is otherwise unchanged.
Consumers should upgrade, review existing Debug logs for previously captured keys, and rotate
any key that appears in them.
Filtered endpoints on IMetrics, ITeams and IUsage now take a request object. The old
optional-parameter overloads still work but are obsolete and will be removed in 3.0; they
produce byte-identical requests, so migration is mechanical.
Breaking: GetMetadataAsync and GetRelatedAssetsAsync now require a CancellationToken, matching
the rest of the library.