23
23
RetentionFilterCreateAttributes .JSON_PROPERTY_FILTER ,
24
24
RetentionFilterCreateAttributes .JSON_PROPERTY_FILTER_TYPE ,
25
25
RetentionFilterCreateAttributes .JSON_PROPERTY_NAME ,
26
- RetentionFilterCreateAttributes .JSON_PROPERTY_RATE
26
+ RetentionFilterCreateAttributes .JSON_PROPERTY_RATE ,
27
+ RetentionFilterCreateAttributes .JSON_PROPERTY_TRACE_RATE
27
28
})
28
29
@ jakarta .annotation .Generated (
29
30
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator" )
@@ -44,6 +45,9 @@ public class RetentionFilterCreateAttributes {
44
45
public static final String JSON_PROPERTY_RATE = "rate" ;
45
46
private Double rate ;
46
47
48
+ public static final String JSON_PROPERTY_TRACE_RATE = "trace_rate" ;
49
+ private Double traceRate ;
50
+
47
51
public RetentionFilterCreateAttributes () {}
48
52
49
53
@ JsonCreator
@@ -169,6 +173,28 @@ public void setRate(Double rate) {
169
173
this .rate = rate ;
170
174
}
171
175
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
+
172
198
/**
173
199
* A container for additional, undeclared properties. This is a holder for any undeclared
174
200
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -231,13 +257,14 @@ public boolean equals(Object o) {
231
257
&& Objects .equals (this .filterType , retentionFilterCreateAttributes .filterType )
232
258
&& Objects .equals (this .name , retentionFilterCreateAttributes .name )
233
259
&& Objects .equals (this .rate , retentionFilterCreateAttributes .rate )
260
+ && Objects .equals (this .traceRate , retentionFilterCreateAttributes .traceRate )
234
261
&& Objects .equals (
235
262
this .additionalProperties , retentionFilterCreateAttributes .additionalProperties );
236
263
}
237
264
238
265
@ Override
239
266
public int hashCode () {
240
- return Objects .hash (enabled , filter , filterType , name , rate , additionalProperties );
267
+ return Objects .hash (enabled , filter , filterType , name , rate , traceRate , additionalProperties );
241
268
}
242
269
243
270
@ Override
@@ -249,6 +276,7 @@ public String toString() {
249
276
sb .append (" filterType: " ).append (toIndentedString (filterType )).append ("\n " );
250
277
sb .append (" name: " ).append (toIndentedString (name )).append ("\n " );
251
278
sb .append (" rate: " ).append (toIndentedString (rate )).append ("\n " );
279
+ sb .append (" traceRate: " ).append (toIndentedString (traceRate )).append ("\n " );
252
280
sb .append (" additionalProperties: " )
253
281
.append (toIndentedString (additionalProperties ))
254
282
.append ("\n " );
0 commit comments