DataDog / datadog-api-client-typescript
Typescript client for the Datadog API
AI Architecture Analysis
This repository is indexed by RepoMind. By analyzing DataDog/datadog-api-client-typescript in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.
Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.
Repository Overview (README excerpt)
Crawler view> [!NOTE] > The next major version iteration of , , is now in Preview. > The splits the monolithic client into new logically grouped api package structure. > See MIGRATION.md and the branch branch for more details. Node.js Datadog API Client This repository contains a Node.js API client for the Datadog API. How to install The package is under @datadog/datadog-api-client and can be installed through NPM or Yarn: Getting Started Here's an example getting a monitor: Authentication By default the library will use the and environment variables to authenticate against the Datadog API. To provide your own set of credentials, you need to set the appropriate keys on the configuration: Unstable Endpoints This client includes access to Datadog API endpoints while they are in an unstable state and may undergo breaking changes. An extra configuration step is required to enable these endpoints: where is the name of the method used to interact with that endpoint. For example: , or . Changing Server When talking to a different server, like the instance, change the server variables: Disable compressed payloads If you want to disable GZIP compressed responses, set the flag on your configuration options: Enable requests logging If you want to enable requests logging, set the flag on your configuration object: Enable retry To enable the client to retry when rate limited (status 429) or status 500 and above: The interval between 2 retry attempts will be the value of the x-ratelimit-reset response header when available. If not, it will be : The maximum number of retry attempts is 3 by default and can be modified with Adding timeout to requests To add timeout or other mechanism to cancel requests, you need an abort controller, for example the one implemented by abort-controller. You can then pass the (body: string) => Buffer zstd.ts HttpLibrary configuration` object. See example below: Documentation Documentation for API endpoints can be found in [GitHub pages][github pages]. Contributing As most of the code in this repository is generated, we will only accept PRs for files that are not modified by our code-generation machinery (changes to the generated files would get overwritten). We happily accept contributions to files that are not autogenerated, such as tests and development tooling. Author support@datadoghq.com License Apache License, v2.0 [github pages]: https://datadoghq.dev/datadog-api-client-typescript/