Skip to content

Commit 1bd7400

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit e1b11a7 of spec repo
1 parent e580f1d commit 1bd7400

File tree

7 files changed

+694
-6
lines changed

7 files changed

+694
-6
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50581,6 +50581,69 @@ components:
5058150581
type: string
5058250582
x-enum-varnames:
5058350583
- RULESET
50584+
RumCrossProductSampling:
50585+
description: 'Configuration for additional APM trace data retention for sessions
50586+
that match this retention filter.
50587+
50588+
When a session matches the filter and is retained (based on `sample_rate`),
50589+
you can configure
50590+
50591+
the percentage of retained sessions with ingested traces whose traces are
50592+
indexed.'
50593+
properties:
50594+
trace_enabled:
50595+
description: Indicates whether trace cross-product sampling is enabled.
50596+
If `false`, no traces are indexed regardless of `trace_sample_rate`.
50597+
example: true
50598+
type: boolean
50599+
trace_sample_rate:
50600+
description: 'The percentage (0-100) of retained sessions with ingested
50601+
traces whose traces are indexed.
50602+
50603+
For example, 25.0 means 25% of retained sessions with ingested traces
50604+
have their traces indexed.'
50605+
example: 25.0
50606+
format: double
50607+
maximum: 100
50608+
minimum: 0
50609+
type: number
50610+
type: object
50611+
RumCrossProductSamplingCreate:
50612+
description: Configuration for cross-product sampling when creating a retention
50613+
filter.
50614+
properties:
50615+
trace_enabled:
50616+
description: Indicates whether trace cross-product sampling is enabled.
50617+
example: true
50618+
type: boolean
50619+
trace_sample_rate:
50620+
description: The percentage (0-100) of retained sessions with ingested traces
50621+
whose traces are indexed.
50622+
example: 25.0
50623+
format: double
50624+
maximum: 100
50625+
minimum: 0
50626+
type: number
50627+
required:
50628+
- trace_sample_rate
50629+
type: object
50630+
RumCrossProductSamplingUpdate:
50631+
description: Configuration for cross-product sampling when updating a retention
50632+
filter. All fields are optional for partial updates.
50633+
properties:
50634+
trace_enabled:
50635+
description: Indicates whether trace cross-product sampling is enabled.
50636+
example: true
50637+
type: boolean
50638+
trace_sample_rate:
50639+
description: The percentage (0-100) of retained sessions with ingested traces
50640+
whose traces are indexed.
50641+
example: 25.0
50642+
format: double
50643+
maximum: 100
50644+
minimum: 0
50645+
type: number
50646+
type: object
5058450647
RumMetricCompute:
5058550648
description: The compute rule to compute the rum-based metric.
5058650649
properties:
@@ -50868,6 +50931,8 @@ components:
5086850931
RumRetentionFilterAttributes:
5086950932
description: The object describing attributes of a RUM retention filter.
5087050933
properties:
50934+
cross_product_sampling:
50935+
$ref: '#/components/schemas/RumCrossProductSampling'
5087150936
enabled:
5087250937
$ref: '#/components/schemas/RumRetentionFilterEnabled'
5087350938
event_type:
@@ -50882,6 +50947,8 @@ components:
5088250947
RumRetentionFilterCreateAttributes:
5088350948
description: The object describing attributes of a RUM retention filter to create.
5088450949
properties:
50950+
cross_product_sampling:
50951+
$ref: '#/components/schemas/RumCrossProductSamplingCreate'
5088550952
enabled:
5088650953
$ref: '#/components/schemas/RumRetentionFilterEnabled'
5088750954
event_type:
@@ -50983,6 +51050,8 @@ components:
5098351050
RumRetentionFilterUpdateAttributes:
5098451051
description: The object describing attributes of a RUM retention filter to update.
5098551052
properties:
51053+
cross_product_sampling:
51054+
$ref: '#/components/schemas/RumCrossProductSamplingUpdate'
5098651055
enabled:
5098751056
$ref: '#/components/schemas/RumRetentionFilterEnabled'
5098851057
event_type:
Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
/*
2+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
* Copyright 2019-Present Datadog, Inc.
5+
*/
6+
7+
package com.datadog.api.client.v2.model;
8+
9+
import com.fasterxml.jackson.annotation.JsonAnyGetter;
10+
import com.fasterxml.jackson.annotation.JsonAnySetter;
11+
import com.fasterxml.jackson.annotation.JsonIgnore;
12+
import com.fasterxml.jackson.annotation.JsonInclude;
13+
import com.fasterxml.jackson.annotation.JsonProperty;
14+
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
15+
import java.util.HashMap;
16+
import java.util.Map;
17+
import java.util.Objects;
18+
19+
/**
20+
* Configuration for additional APM trace data retention for sessions that match this retention
21+
* filter. When a session matches the filter and is retained (based on <code>sample_rate</code>),
22+
* you can configure the percentage of retained sessions with ingested traces whose traces are
23+
* indexed.
24+
*/
25+
@JsonPropertyOrder({
26+
RumCrossProductSampling.JSON_PROPERTY_TRACE_ENABLED,
27+
RumCrossProductSampling.JSON_PROPERTY_TRACE_SAMPLE_RATE
28+
})
29+
@jakarta.annotation.Generated(
30+
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
31+
public class RumCrossProductSampling {
32+
@JsonIgnore public boolean unparsed = false;
33+
public static final String JSON_PROPERTY_TRACE_ENABLED = "trace_enabled";
34+
private Boolean traceEnabled;
35+
36+
public static final String JSON_PROPERTY_TRACE_SAMPLE_RATE = "trace_sample_rate";
37+
private Double traceSampleRate;
38+
39+
public RumCrossProductSampling traceEnabled(Boolean traceEnabled) {
40+
this.traceEnabled = traceEnabled;
41+
return this;
42+
}
43+
44+
/**
45+
* Indicates whether trace cross-product sampling is enabled. If <code>false</code>, no traces are
46+
* indexed regardless of <code>trace_sample_rate</code>.
47+
*
48+
* @return traceEnabled
49+
*/
50+
@jakarta.annotation.Nullable
51+
@JsonProperty(JSON_PROPERTY_TRACE_ENABLED)
52+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
53+
public Boolean getTraceEnabled() {
54+
return traceEnabled;
55+
}
56+
57+
public void setTraceEnabled(Boolean traceEnabled) {
58+
this.traceEnabled = traceEnabled;
59+
}
60+
61+
public RumCrossProductSampling traceSampleRate(Double traceSampleRate) {
62+
this.traceSampleRate = traceSampleRate;
63+
return this;
64+
}
65+
66+
/**
67+
* The percentage (0-100) of retained sessions with ingested traces whose traces are indexed. For
68+
* example, 25.0 means 25% of retained sessions with ingested traces have their traces indexed.
69+
* minimum: 0 maximum: 100
70+
*
71+
* @return traceSampleRate
72+
*/
73+
@jakarta.annotation.Nullable
74+
@JsonProperty(JSON_PROPERTY_TRACE_SAMPLE_RATE)
75+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
76+
public Double getTraceSampleRate() {
77+
return traceSampleRate;
78+
}
79+
80+
public void setTraceSampleRate(Double traceSampleRate) {
81+
this.traceSampleRate = traceSampleRate;
82+
}
83+
84+
/**
85+
* A container for additional, undeclared properties. This is a holder for any undeclared
86+
* properties as specified with the 'additionalProperties' keyword in the OAS document.
87+
*/
88+
private Map<String, Object> additionalProperties;
89+
90+
/**
91+
* Set the additional (undeclared) property with the specified name and value. If the property
92+
* does not already exist, create it otherwise replace it.
93+
*
94+
* @param key The arbitrary key to set
95+
* @param value The associated value
96+
* @return RumCrossProductSampling
97+
*/
98+
@JsonAnySetter
99+
public RumCrossProductSampling putAdditionalProperty(String key, Object value) {
100+
if (this.additionalProperties == null) {
101+
this.additionalProperties = new HashMap<String, Object>();
102+
}
103+
this.additionalProperties.put(key, value);
104+
return this;
105+
}
106+
107+
/**
108+
* Return the additional (undeclared) property.
109+
*
110+
* @return The additional properties
111+
*/
112+
@JsonAnyGetter
113+
public Map<String, Object> getAdditionalProperties() {
114+
return additionalProperties;
115+
}
116+
117+
/**
118+
* Return the additional (undeclared) property with the specified name.
119+
*
120+
* @param key The arbitrary key to get
121+
* @return The specific additional property for the given key
122+
*/
123+
public Object getAdditionalProperty(String key) {
124+
if (this.additionalProperties == null) {
125+
return null;
126+
}
127+
return this.additionalProperties.get(key);
128+
}
129+
130+
/** Return true if this RumCrossProductSampling object is equal to o. */
131+
@Override
132+
public boolean equals(Object o) {
133+
if (this == o) {
134+
return true;
135+
}
136+
if (o == null || getClass() != o.getClass()) {
137+
return false;
138+
}
139+
RumCrossProductSampling rumCrossProductSampling = (RumCrossProductSampling) o;
140+
return Objects.equals(this.traceEnabled, rumCrossProductSampling.traceEnabled)
141+
&& Objects.equals(this.traceSampleRate, rumCrossProductSampling.traceSampleRate)
142+
&& Objects.equals(this.additionalProperties, rumCrossProductSampling.additionalProperties);
143+
}
144+
145+
@Override
146+
public int hashCode() {
147+
return Objects.hash(traceEnabled, traceSampleRate, additionalProperties);
148+
}
149+
150+
@Override
151+
public String toString() {
152+
StringBuilder sb = new StringBuilder();
153+
sb.append("class RumCrossProductSampling {\n");
154+
sb.append(" traceEnabled: ").append(toIndentedString(traceEnabled)).append("\n");
155+
sb.append(" traceSampleRate: ").append(toIndentedString(traceSampleRate)).append("\n");
156+
sb.append(" additionalProperties: ")
157+
.append(toIndentedString(additionalProperties))
158+
.append("\n");
159+
sb.append('}');
160+
return sb.toString();
161+
}
162+
163+
/**
164+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
165+
*/
166+
private String toIndentedString(Object o) {
167+
if (o == null) {
168+
return "null";
169+
}
170+
return o.toString().replace("\n", "\n ");
171+
}
172+
}

0 commit comments

Comments
 (0)