Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: DataDog/datadog-api-client-go
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.36.0
Choose a base ref
...
head repository: DataDog/datadog-api-client-go
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.36.1
Choose a head ref
  • 3 commits
  • 18 files changed
  • 2 contributors

Commits on Mar 11, 2025

  1. Post release bump (#2976)

    Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
    api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Mar 11, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    1402e7b View commit details
  2. Remove meta from RUM retention filters APIs (#2977)

    Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
    api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Mar 11, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    98e9140 View commit details
  3. Release 2.36.1 (#2978)

    * Version bump 2.36.1
    
    * Update CHANGELOG
    
    ---------
    
    Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
    Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
    api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Mar 11, 2025
    Copy the full SHA
    dff5afb View commit details
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
@@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-03-11 13:16:55.751372",
"spec_repo_commit": "d7618fa5"
"regenerated": "2025-03-11 16:30:30.102793",
"spec_repo_commit": "baf04a80"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-03-11 13:16:55.767268",
"spec_repo_commit": "d7618fa5"
"regenerated": "2025-03-11 16:30:30.118458",
"spec_repo_commit": "baf04a80"
}
}
}
51 changes: 13 additions & 38 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
@@ -684,7 +684,7 @@ components:
schema:
type: string
RumApplicationIDParameter:
description: Application ID.
description: RUM application ID.
in: path
name: app_id
required: true
@@ -25518,8 +25518,6 @@ components:
properties:
attributes:
$ref: '#/components/schemas/RumRetentionFilterCreateAttributes'
meta:
$ref: '#/components/schemas/RumRetentionFilterMeta'
type:
$ref: '#/components/schemas/RumRetentionFilterType'
required:
@@ -25541,8 +25539,6 @@ components:
$ref: '#/components/schemas/RumRetentionFilterAttributes'
id:
$ref: '#/components/schemas/RumRetentionFilterID'
meta:
$ref: '#/components/schemas/RumRetentionFilterMeta'
type:
$ref: '#/components/schemas/RumRetentionFilterType'
type: object
@@ -25574,12 +25570,6 @@ components:
description: ID of retention filter in UUID.
example: 051601eb-54a0-abc0-03f9-cc02efa18892
type: string
RumRetentionFilterMeta:
description: The object describing metadata of a RUM retention filter.
properties:
source:
$ref: '#/components/schemas/RumRetentionFilterSource'
type: object
RumRetentionFilterQuery:
description: The query string for a RUM retention filter.
example: '@session.has_replay:true'
@@ -25597,20 +25587,6 @@ components:
maximum: 100
minimum: 0
type: integer
RumRetentionFilterSource:
description: The type of RUM events to filter on.
enum:
- ui
- terraform
- default
- unknown
example: terraform
type: string
x-enum-varnames:
- UI
- TERRAFORM
- DEFAULT
- UNKNOWN
RumRetentionFilterType:
default: retention_filters
description: The type of the resource. The value should always be retention_filters.
@@ -25641,8 +25617,6 @@ components:
$ref: '#/components/schemas/RumRetentionFilterUpdateAttributes'
id:
$ref: '#/components/schemas/RumRetentionFilterID'
meta:
$ref: '#/components/schemas/RumRetentionFilterMeta'
type:
$ref: '#/components/schemas/RumRetentionFilterType'
required:
@@ -25673,7 +25647,8 @@ components:
description: 'The list of RUM retention filter IDs along with their corresponding
type to reorder.

All retention filter IDs should be included in the list created for an application.'
All retention filter IDs should be included in the list created for a RUM
application.'
properties:
data:
description: A list of RUM retention filter IDs along with type.
@@ -25691,7 +25666,7 @@ components:
type: array
type: object
RumRetentionFiltersResponse:
description: All RUM retention filters for an application.
description: All RUM retention filters for a RUM application.
properties:
data:
description: A list of RUM retention filters.
@@ -46244,10 +46219,10 @@ paths:
- rum_apps_write
/api/v2/rum/applications/{app_id}/relationships/retention_filters:
patch:
description: 'Order RUM retention filters for an application.
description: 'Order RUM retention filters for a RUM application.

Returns RUM retention filter objects without attributes and meta from the
request body when the request is successful.'
Returns RUM retention filter objects without attributes from the request body
when the request is successful.'
operationId: OrderRetentionFilters
parameters:
- $ref: '#/components/parameters/RumApplicationIDParameter'
@@ -46277,7 +46252,7 @@ paths:
x-codegen-request-body-name: body
/api/v2/rum/applications/{app_id}/retention_filters:
get:
description: Get the list of RUM retention filters for an application.
description: Get the list of RUM retention filters for a RUM application.
operationId: ListRetentionFilters
parameters:
- $ref: '#/components/parameters/RumApplicationIDParameter'
@@ -46296,7 +46271,7 @@ paths:
tags:
- Rum Retention Filters
post:
description: 'Create a RUM retention filter for an application.
description: 'Create a RUM retention filter for a RUM application.

Returns RUM retention filter objects from the request body when the request
is successful.'
@@ -46329,7 +46304,7 @@ paths:
x-codegen-request-body-name: body
/api/v2/rum/applications/{app_id}/retention_filters/{rf_id}:
delete:
description: Delete a RUM retention filter for an application.
description: Delete a RUM retention filter for a RUM application.
operationId: DeleteRetentionFilter
parameters:
- $ref: '#/components/parameters/RumApplicationIDParameter'
@@ -46347,7 +46322,7 @@ paths:
tags:
- Rum Retention Filters
get:
description: Get a RUM retention filter for an application.
description: Get a RUM retention filter for a RUM application.
operationId: GetRetentionFilter
parameters:
- $ref: '#/components/parameters/RumApplicationIDParameter'
@@ -46369,7 +46344,7 @@ paths:
tags:
- Rum Retention Filters
patch:
description: 'Update a RUM retention filter for an application.
description: 'Update a RUM retention filter for a RUM application.

Returns RUM retention filter objects from the request body when the request
is successful.'
@@ -53819,7 +53794,7 @@ tags:
url: https://docs.datadoghq.com/real_user_monitoring/platform/generate_metrics/
name: Rum Metrics
- description: Manage retention filters through [Manage Applications](https://app.datadoghq.com/rum/list)
for your organization.
of RUM for your organization.
name: Rum Retention Filters
- description: Create and manage your security rules, signals, filters, and more.
See the [Datadog Security page](https://docs.datadoghq.com/security/) for more
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# CHANGELOG

## 2.36.1 / 2025-03-11

### Changed
* Remove meta from RUM retention filters APIs by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-go/pull/2977


**Full Changelog**: https://github.com/DataDog/datadog-api-client-go/compare/v2.36.0...v2.36.1

## 2.36.0 / 2025-03-11

### Fixed
14 changes: 7 additions & 7 deletions api/datadogV2/api_rum_retention_filters.go
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ import (
type RumRetentionFiltersApi datadog.Service

// CreateRetentionFilter Create a RUM retention filter.
// Create a RUM retention filter for an application.
// Create a RUM retention filter for a RUM application.
// Returns RUM retention filter objects from the request body when the request is successful.
func (a *RumRetentionFiltersApi) CreateRetentionFilter(ctx _context.Context, appId string, body RumRetentionFilterCreateRequest) (RumRetentionFilterResponse, *_nethttp.Response, error) {
var (
@@ -91,7 +91,7 @@ func (a *RumRetentionFiltersApi) CreateRetentionFilter(ctx _context.Context, app
}

// DeleteRetentionFilter Delete a RUM retention filter.
// Delete a RUM retention filter for an application.
// Delete a RUM retention filter for a RUM application.
func (a *RumRetentionFiltersApi) DeleteRetentionFilter(ctx _context.Context, appId string, rfId string) (*_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodDelete
@@ -153,7 +153,7 @@ func (a *RumRetentionFiltersApi) DeleteRetentionFilter(ctx _context.Context, app
}

// GetRetentionFilter Get a RUM retention filter.
// Get a RUM retention filter for an application.
// Get a RUM retention filter for a RUM application.
func (a *RumRetentionFiltersApi) GetRetentionFilter(ctx _context.Context, appId string, rfId string) (RumRetentionFilterResponse, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
@@ -225,7 +225,7 @@ func (a *RumRetentionFiltersApi) GetRetentionFilter(ctx _context.Context, appId
}

// ListRetentionFilters Get all RUM retention filters.
// Get the list of RUM retention filters for an application.
// Get the list of RUM retention filters for a RUM application.
func (a *RumRetentionFiltersApi) ListRetentionFilters(ctx _context.Context, appId string) (RumRetentionFiltersResponse, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
@@ -296,8 +296,8 @@ func (a *RumRetentionFiltersApi) ListRetentionFilters(ctx _context.Context, appI
}

// OrderRetentionFilters Order RUM retention filters.
// Order RUM retention filters for an application.
// Returns RUM retention filter objects without attributes and meta from the request body when the request is successful.
// Order RUM retention filters for a RUM application.
// Returns RUM retention filter objects without attributes from the request body when the request is successful.
func (a *RumRetentionFiltersApi) OrderRetentionFilters(ctx _context.Context, appId string, body RumRetentionFiltersOrderRequest) (RumRetentionFiltersOrderResponse, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodPatch
@@ -371,7 +371,7 @@ func (a *RumRetentionFiltersApi) OrderRetentionFilters(ctx _context.Context, app
}

// UpdateRetentionFilter Update a RUM retention filter.
// Update a RUM retention filter for an application.
// Update a RUM retention filter for a RUM application.
// Returns RUM retention filter objects from the request body when the request is successful.
func (a *RumRetentionFiltersApi) UpdateRetentionFilter(ctx _context.Context, appId string, rfId string, body RumRetentionFilterUpdateRequest) (RumRetentionFilterResponse, *_nethttp.Response, error) {
var (
40 changes: 1 addition & 39 deletions api/datadogV2/model_rum_retention_filter_create_data.go
Original file line number Diff line number Diff line change
@@ -14,8 +14,6 @@ import (
type RumRetentionFilterCreateData struct {
// The object describing attributes of a RUM retention filter to create.
Attributes RumRetentionFilterCreateAttributes `json:"attributes"`
// The object describing metadata of a RUM retention filter.
Meta *RumRetentionFilterMeta `json:"meta,omitempty"`
// The type of the resource. The value should always be retention_filters.
Type RumRetentionFilterType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
@@ -67,34 +65,6 @@ func (o *RumRetentionFilterCreateData) SetAttributes(v RumRetentionFilterCreateA
o.Attributes = v
}

// GetMeta returns the Meta field value if set, zero value otherwise.
func (o *RumRetentionFilterCreateData) GetMeta() RumRetentionFilterMeta {
if o == nil || o.Meta == nil {
var ret RumRetentionFilterMeta
return ret
}
return *o.Meta
}

// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RumRetentionFilterCreateData) GetMetaOk() (*RumRetentionFilterMeta, bool) {
if o == nil || o.Meta == nil {
return nil, false
}
return o.Meta, true
}

// HasMeta returns a boolean if a field has been set.
func (o *RumRetentionFilterCreateData) HasMeta() bool {
return o != nil && o.Meta != nil
}

// SetMeta gets a reference to the given RumRetentionFilterMeta and assigns it to the Meta field.
func (o *RumRetentionFilterCreateData) SetMeta(v RumRetentionFilterMeta) {
o.Meta = &v
}

// GetType returns the Type field value.
func (o *RumRetentionFilterCreateData) GetType() RumRetentionFilterType {
if o == nil {
@@ -125,9 +95,6 @@ func (o RumRetentionFilterCreateData) MarshalJSON() ([]byte, error) {
return datadog.Marshal(o.UnparsedObject)
}
toSerialize["attributes"] = o.Attributes
if o.Meta != nil {
toSerialize["meta"] = o.Meta
}
toSerialize["type"] = o.Type

for key, value := range o.AdditionalProperties {
@@ -140,7 +107,6 @@ func (o RumRetentionFilterCreateData) MarshalJSON() ([]byte, error) {
func (o *RumRetentionFilterCreateData) UnmarshalJSON(bytes []byte) (err error) {
all := struct {
Attributes *RumRetentionFilterCreateAttributes `json:"attributes"`
Meta *RumRetentionFilterMeta `json:"meta,omitempty"`
Type *RumRetentionFilterType `json:"type"`
}{}
if err = datadog.Unmarshal(bytes, &all); err != nil {
@@ -154,7 +120,7 @@ func (o *RumRetentionFilterCreateData) UnmarshalJSON(bytes []byte) (err error) {
}
additionalProperties := make(map[string]interface{})
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
datadog.DeleteKeys(additionalProperties, &[]string{"attributes", "meta", "type"})
datadog.DeleteKeys(additionalProperties, &[]string{"attributes", "type"})
} else {
return err
}
@@ -164,10 +130,6 @@ func (o *RumRetentionFilterCreateData) UnmarshalJSON(bytes []byte) (err error) {
hasInvalidField = true
}
o.Attributes = *all.Attributes
if all.Meta != nil && all.Meta.UnparsedObject != nil && o.UnparsedObject == nil {
hasInvalidField = true
}
o.Meta = all.Meta
if !all.Type.IsValid() {
hasInvalidField = true
} else {
Loading