2323 RetentionFilterCreateAttributes .JSON_PROPERTY_FILTER ,
2424 RetentionFilterCreateAttributes .JSON_PROPERTY_FILTER_TYPE ,
2525 RetentionFilterCreateAttributes .JSON_PROPERTY_NAME ,
26- RetentionFilterCreateAttributes .JSON_PROPERTY_RATE
26+ RetentionFilterCreateAttributes .JSON_PROPERTY_RATE ,
27+ RetentionFilterCreateAttributes .JSON_PROPERTY_TRACE_RATE
2728})
2829@ jakarta .annotation .Generated (
2930 value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator" )
@@ -44,6 +45,9 @@ public class RetentionFilterCreateAttributes {
4445 public static final String JSON_PROPERTY_RATE = "rate" ;
4546 private Double rate ;
4647
48+ public static final String JSON_PROPERTY_TRACE_RATE = "trace_rate" ;
49+ private Double traceRate ;
50+
4751 public RetentionFilterCreateAttributes () {}
4852
4953 @ JsonCreator
@@ -169,6 +173,28 @@ public void setRate(Double rate) {
169173 this .rate = rate ;
170174 }
171175
176+ public RetentionFilterCreateAttributes traceRate (Double traceRate ) {
177+ this .traceRate = traceRate ;
178+ return this ;
179+ }
180+
181+ /**
182+ * Sample rate to apply to traces containing spans going through this retention filter. A value of
183+ * 1.0 keeps all traces with spans matching the query.
184+ *
185+ * @return traceRate
186+ */
187+ @ jakarta .annotation .Nullable
188+ @ JsonProperty (JSON_PROPERTY_TRACE_RATE )
189+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
190+ public Double getTraceRate () {
191+ return traceRate ;
192+ }
193+
194+ public void setTraceRate (Double traceRate ) {
195+ this .traceRate = traceRate ;
196+ }
197+
172198 /**
173199 * A container for additional, undeclared properties. This is a holder for any undeclared
174200 * properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -231,13 +257,14 @@ public boolean equals(Object o) {
231257 && Objects .equals (this .filterType , retentionFilterCreateAttributes .filterType )
232258 && Objects .equals (this .name , retentionFilterCreateAttributes .name )
233259 && Objects .equals (this .rate , retentionFilterCreateAttributes .rate )
260+ && Objects .equals (this .traceRate , retentionFilterCreateAttributes .traceRate )
234261 && Objects .equals (
235262 this .additionalProperties , retentionFilterCreateAttributes .additionalProperties );
236263 }
237264
238265 @ Override
239266 public int hashCode () {
240- return Objects .hash (enabled , filter , filterType , name , rate , additionalProperties );
267+ return Objects .hash (enabled , filter , filterType , name , rate , traceRate , additionalProperties );
241268 }
242269
243270 @ Override
@@ -249,6 +276,7 @@ public String toString() {
249276 sb .append (" filterType: " ).append (toIndentedString (filterType )).append ("\n " );
250277 sb .append (" name: " ).append (toIndentedString (name )).append ("\n " );
251278 sb .append (" rate: " ).append (toIndentedString (rate )).append ("\n " );
279+ sb .append (" traceRate: " ).append (toIndentedString (traceRate )).append ("\n " );
252280 sb .append (" additionalProperties: " )
253281 .append (toIndentedString (additionalProperties ))
254282 .append ("\n " );
0 commit comments