Summary
The Datadog Go client library (github.com/DataDog/datadog-api-client-go/v2) is out of sync with the actual API response from the CreateScorecardOutcomesBatch endpoint. The API response contains a field named total_staged in the meta object, but the Go client structs still expect total_updated, as well as the API docs
Environment
Datadog Go Client Version: v2.35.0
Go Version: 1.22.0+ (toolchain go1.23.2)
API Endpoint: CreateScorecardOutcomesBatch (Scorecard v2 API)
Issue Description
When calling the CreateScorecardOutcomesBatch API through the Go client, the response JSON contains a meta object with a field named total_staged that indicates the number of services that were updated/staged. However, the Go client's response structs appear to be outdated and still reference the old field name total_updated.
Expected Behavior
The Go client should provide access to the total_staged field through its response structs, allowing developers to access this information without manual JSON parsing.
Actual Behavior
The total_staged field is not accessible through the Go client's response structs, forcing developers to manually parse the raw HTTP response body to extract this information.
Summary
The Datadog Go client library (github.com/DataDog/datadog-api-client-go/v2) is out of sync with the actual API response from the CreateScorecardOutcomesBatch endpoint. The API response contains a field named total_staged in the meta object, but the Go client structs still expect total_updated, as well as the API docs
Environment
Datadog Go Client Version: v2.35.0
Go Version: 1.22.0+ (toolchain go1.23.2)
API Endpoint: CreateScorecardOutcomesBatch (Scorecard v2 API)
Issue Description
When calling the CreateScorecardOutcomesBatch API through the Go client, the response JSON contains a meta object with a field named total_staged that indicates the number of services that were updated/staged. However, the Go client's response structs appear to be outdated and still reference the old field name total_updated.
Expected Behavior
The Go client should provide access to the total_staged field through its response structs, allowing developers to access this information without manual JSON parsing.
Actual Behavior
The total_staged field is not accessible through the Go client's response structs, forcing developers to manually parse the raw HTTP response body to extract this information.