Skip to content

Commit b526323

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
RUM - simplify cross-product sampling descriptions on rum-retention-filters API docs (DataDog#3785)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent bac3783 commit b526323

7 files changed

Lines changed: 28 additions & 42 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 16 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -54741,43 +54741,33 @@ components:
5474154741
x-enum-varnames:
5474254742
- RULESET
5474354743
RumCrossProductSampling:
54744-
description: 'Configuration for additional APM trace data retention for sessions
54745-
that match this retention filter.
54746-
54747-
When a session matches the filter and is retained (based on `sample_rate`),
54748-
you can configure
54749-
54750-
the percentage of retained sessions with ingested traces whose traces are
54751-
indexed.'
54744+
description: The configuration for cross-product retention filters.
5475254745
properties:
5475354746
trace_enabled:
54754-
description: Indicates whether trace cross-product sampling is enabled.
54755-
If `false`, no traces are indexed regardless of `trace_sample_rate`.
54747+
description: Whether the cross-product retention filter for APM traces is
54748+
enabled.
5475654749
example: true
5475754750
type: boolean
5475854751
trace_sample_rate:
54759-
description: 'The percentage (0-100) of retained sessions with ingested
54760-
traces whose traces are indexed.
54761-
54762-
For example, 25.0 means 25% of retained sessions with ingested traces
54763-
have their traces indexed.'
54752+
description: The sample rate for the APM cross-product retention filter,
54753+
between 0 and 100.
5476454754
example: 25.0
5476554755
format: double
5476654756
maximum: 100
5476754757
minimum: 0
5476854758
type: number
5476954759
type: object
5477054760
RumCrossProductSamplingCreate:
54771-
description: Configuration for cross-product sampling when creating a retention
54772-
filter.
54761+
description: The configuration for cross-product retention filters.
5477354762
properties:
5477454763
trace_enabled:
54775-
description: Indicates whether trace cross-product sampling is enabled.
54764+
description: Whether the cross-product retention filter for APM traces is
54765+
enabled.
5477654766
example: true
5477754767
type: boolean
5477854768
trace_sample_rate:
54779-
description: The percentage (0-100) of retained sessions with ingested traces
54780-
whose traces are indexed.
54769+
description: The sample rate for the APM cross-product retention filter,
54770+
between 0 and 100.
5478154771
example: 25.0
5478254772
format: double
5478354773
maximum: 100
@@ -54787,16 +54777,17 @@ components:
5478754777
- trace_sample_rate
5478854778
type: object
5478954779
RumCrossProductSamplingUpdate:
54790-
description: Configuration for cross-product sampling when updating a retention
54791-
filter. All fields are optional for partial updates.
54780+
description: The configuration for cross-product retention filters. All fields
54781+
are optional for partial updates.
5479254782
properties:
5479354783
trace_enabled:
54794-
description: Indicates whether trace cross-product sampling is enabled.
54784+
description: Whether the cross-product retention filter for APM traces is
54785+
enabled.
5479554786
example: true
5479654787
type: boolean
5479754788
trace_sample_rate:
54798-
description: The percentage (0-100) of retained sessions with ingested traces
54799-
whose traces are indexed.
54789+
description: The sample rate for the APM cross-product retention filter,
54790+
between 0 and 100.
5480054791
example: 25.0
5480154792
format: double
5480254793
maximum: 100

api/datadogV2/model_rum_cross_product_sampling.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,11 @@ import (
88
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
99
)
1010

11-
// RumCrossProductSampling Configuration for additional APM trace data retention for sessions that match this retention filter.
12-
// When a session matches the filter and is retained (based on `sample_rate`), you can configure
13-
// the percentage of retained sessions with ingested traces whose traces are indexed.
11+
// RumCrossProductSampling The configuration for cross-product retention filters.
1412
type RumCrossProductSampling struct {
15-
// Indicates whether trace cross-product sampling is enabled. If `false`, no traces are indexed regardless of `trace_sample_rate`.
13+
// Whether the cross-product retention filter for APM traces is enabled.
1614
TraceEnabled *bool `json:"trace_enabled,omitempty"`
17-
// The percentage (0-100) of retained sessions with ingested traces whose traces are indexed.
18-
// For example, 25.0 means 25% of retained sessions with ingested traces have their traces indexed.
15+
// The sample rate for the APM cross-product retention filter, between 0 and 100.
1916
TraceSampleRate *float64 `json:"trace_sample_rate,omitempty"`
2017
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
2118
UnparsedObject map[string]interface{} `json:"-"`

api/datadogV2/model_rum_cross_product_sampling_create.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ import (
1010
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
1111
)
1212

13-
// RumCrossProductSamplingCreate Configuration for cross-product sampling when creating a retention filter.
13+
// RumCrossProductSamplingCreate The configuration for cross-product retention filters.
1414
type RumCrossProductSamplingCreate struct {
15-
// Indicates whether trace cross-product sampling is enabled.
15+
// Whether the cross-product retention filter for APM traces is enabled.
1616
TraceEnabled *bool `json:"trace_enabled,omitempty"`
17-
// The percentage (0-100) of retained sessions with ingested traces whose traces are indexed.
17+
// The sample rate for the APM cross-product retention filter, between 0 and 100.
1818
TraceSampleRate float64 `json:"trace_sample_rate"`
1919
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
2020
UnparsedObject map[string]interface{} `json:"-"`

api/datadogV2/model_rum_cross_product_sampling_update.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import (
88
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
99
)
1010

11-
// RumCrossProductSamplingUpdate Configuration for cross-product sampling when updating a retention filter. All fields are optional for partial updates.
11+
// RumCrossProductSamplingUpdate The configuration for cross-product retention filters. All fields are optional for partial updates.
1212
type RumCrossProductSamplingUpdate struct {
13-
// Indicates whether trace cross-product sampling is enabled.
13+
// Whether the cross-product retention filter for APM traces is enabled.
1414
TraceEnabled *bool `json:"trace_enabled,omitempty"`
15-
// The percentage (0-100) of retained sessions with ingested traces whose traces are indexed.
15+
// The sample rate for the APM cross-product retention filter, between 0 and 100.
1616
TraceSampleRate *float64 `json:"trace_sample_rate,omitempty"`
1717
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
1818
UnparsedObject map[string]interface{} `json:"-"`

api/datadogV2/model_rum_retention_filter_attributes.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ import (
1010

1111
// RumRetentionFilterAttributes The object describing attributes of a RUM retention filter.
1212
type RumRetentionFilterAttributes struct {
13-
// Configuration for additional APM trace data retention for sessions that match this retention filter.
14-
// When a session matches the filter and is retained (based on `sample_rate`), you can configure
15-
// the percentage of retained sessions with ingested traces whose traces are indexed.
13+
// The configuration for cross-product retention filters.
1614
CrossProductSampling *RumCrossProductSampling `json:"cross_product_sampling,omitempty"`
1715
// Whether the retention filter is enabled.
1816
Enabled *bool `json:"enabled,omitempty"`

api/datadogV2/model_rum_retention_filter_create_attributes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
// RumRetentionFilterCreateAttributes The object describing attributes of a RUM retention filter to create.
1414
type RumRetentionFilterCreateAttributes struct {
15-
// Configuration for cross-product sampling when creating a retention filter.
15+
// The configuration for cross-product retention filters.
1616
CrossProductSampling *RumCrossProductSamplingCreate `json:"cross_product_sampling,omitempty"`
1717
// Whether the retention filter is enabled.
1818
Enabled *bool `json:"enabled,omitempty"`

api/datadogV2/model_rum_retention_filter_update_attributes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
// RumRetentionFilterUpdateAttributes The object describing attributes of a RUM retention filter to update.
1212
type RumRetentionFilterUpdateAttributes struct {
13-
// Configuration for cross-product sampling when updating a retention filter. All fields are optional for partial updates.
13+
// The configuration for cross-product retention filters. All fields are optional for partial updates.
1414
CrossProductSampling *RumCrossProductSamplingUpdate `json:"cross_product_sampling,omitempty"`
1515
// Whether the retention filter is enabled.
1616
Enabled *bool `json:"enabled,omitempty"`

0 commit comments

Comments
 (0)