Registry /
http-client / datadog-datadog-api-client-go
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
datadog
✓ github.com/DataDog/datadog-api-client-go
Initialize the Datadog API client and fetch a monitor by ID.
package main
import (
"fmt"
"github.com/DataDog/datadog-api-client-go/api/v1/datadog"
)
func main() {
ctx := context.Background()
apiClient := datadog.NewAPIClient(datadog.NewConfiguration())
resp, r, err := apiClient.MonitorsApi.GetMonitor(ctx, 12345)
if err != nil {
fmt.Printf("Error: %v\n", err)
} else {
fmt.Printf("Monitor: %v\n", resp)
}
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.16.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.