feat(datadog): Monitor and ServiceLevelObjective resources - #1215
Draft
gwkline wants to merge 3 commits into
Draft
feat(datadog): Monitor and ServiceLevelObjective resources#1215gwkline wants to merge 3 commits into
gwkline wants to merge 3 commits into
Conversation
New Datadog provider with Monitor and ServiceLevelObjective resources, an Effect-native HTTP client with typed tagged errors, env/stored credential resolution via the Alchemy AuthProvider, and live-cloud tests gated on DD_API_KEY/DD_APP_KEY. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
sam-goodwin
reviewed
Aug 13, 2026
Contributor
There was a problem hiding this comment.
You'll need to add data dog to distilled first.
Cc @Mkassabov
Author
There was a problem hiding this comment.
Done — added @distilled.cloud/datadog in alchemy-run/distilled#456 (Monitors + Service Level Objectives services, generated from Datadog's official v1 OpenAPI spec via the github-style tag-bucketed pipeline). This hand-rolled client is gone; the provider now consumes the generated ops (createMonitor, getSLO, …) with typed catchTag("NotFound") handling, per the Axiom shape. The submodule pointer here targets my fork's branch until the distilled PR lands.
…tadog Replace the hand-rolled HTTP client with the generated Datadog SDK from distilled (alchemy-run/distilled#456): typed per-op error unions (catchTag("NotFound")), wire-verbatim request/response schemas, and the shared Credentials/protocol/retry machinery. Follows the Axiom provider shape exactly. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
|
Doe this cover 100% of data dog's features? We should run a workflow to cover all instead of just doing a few |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New
Datadogprovider withMonitorandServiceLevelObjectiveresources, for declaring alerting and SLO targets (e.g. latency/availability of tRPC endpoints or backend workflows) alongside the infrastructure they observe.Built on
@distilled.cloud/datadog— companion PR: alchemy-run/distilled#456 (new SDK package generated from Datadog's official v1 OpenAPI spec, Monitors + Service Level Objectives services). This PR bumps thedistilledsubmodule to that branch; the pointer needs retargeting after the distilled PR merges.CreateMonitorRequest/CreateSLORequest, snake_case wire names) — same shape as the Axiom Monitor resource. Queries built in the Datadog UI port over directly;metric,monitor, andtime_sliceSLOs are all supported.getMonitor/getSLO, catches the typedNotFoundtag to re-create after out-of-band deletion, PUTs in place otherwise.typechanges replace (except the equivalentmetric alert/query alertpair, which Datadog normalizes between).listpaginates for account-wide enumeration.alchemy login, registered in the CLI's builtin auth providers) or env (DD_API_KEY/DD_APP_KEY/ optionalDD_SITEfor regional sites).test/Datadog/) cover create → list → update → destroy for monitors, metric SLOs, and a monitor-backed SLO referencing the monitor's output id; they skipIf-gate whenDD_API_KEY/DD_APP_KEYare absent.🤖 Generated with Claude Code