{"repo":"DataDog/datadog-api-client-go","free":true,"listed":false,"github":"https://github.com/DataDog/datadog-api-client-go","clone":"git clone https://github.com/DataDog/datadog-api-client-go.git","description":"Golang client for the Datadog API","language":"Go","stars":162,"topics":["datadog","datadog-api","golang","openapi"],"license":"Apache-2.0","category":"api-integrations-sdks","readme_excerpt":"datadog-api-client-go This repository contains a Go API client for the Datadog API. Requirements - Go 1.22+ Layout This repository contains per-major-version API client packages. Right now, Datadog has two API versions, v1 , v2 and the common package. The API v1 Client The client library for Datadog API v1 is located in the api/datadogV1 directory. Import it with The API v2 Client The client library for Datadog API v2 is located in the api/datadogV2 directory. Import it with The Datadog Package The datadog package for Datadog API is located in the api/datadog directory. Import it with Getting Started Here's an example creating a user: Save it to example.go , then run go get github.com/DataDog/datadog-api-client-go/v2 . Set the DD CLIENT API KEY and DD CLIENT APP KEY to your Datadog credentials, and then run go run example.go . 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: GetLogsIndex , or UpdateLogsIndex Changing Server When talking to a different server, like the eu instance, change the ContextServerVariables : Disable compressed payloads If you want to disable GZIP compressed responses, set the compress flag on your configuration object: Enable requests logging If you want to enable requests logging, set the debug flag on your confi","default_branch":null,"files":null,"tree":[],"storefront":"/r/DataDog","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/DataDog/datadog-api-client-go/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}