Skip to content

Commit f6c0ee2

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit f2190ae of spec repo
1 parent f87325c commit f6c0ee2

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
@@ -50374,6 +50374,69 @@ components:
5037450374
type: string
5037550375
x-enum-varnames:
5037650376
- RULESET
50377+
RumCrossProductSampling:
50378+
description: 'Configuration for additional APM Trace data retention for sessions
50379+
matching this retention filter.
50380+
50381+
When a session matches the filter and is retained (based on sample_rate),
50382+
you can configure
50383+
50384+
what percentage of retained sessions with ingested traces should have their
50385+
traces indexed.'
50386+
properties:
50387+
trace_enabled:
50388+
description: Whether Trace cross-product sampling is enabled. When false,
50389+
no traces are indexed regardless of trace_sample_rate.
50390+
example: true
50391+
type: boolean
50392+
trace_sample_rate:
50393+
description: 'The percentage (0-100) of retained sessions with ingested
50394+
traces for which traces are indexed.
50395+
50396+
For example, 25.0 means 25% of retained sessions with ingested traces
50397+
will have their traces indexed.'
50398+
example: 25.0
50399+
format: double
50400+
maximum: 100
50401+
minimum: 0
50402+
type: number
50403+
type: object
50404+
RumCrossProductSamplingCreate:
50405+
description: Configuration for cross-product sampling when creating a retention
50406+
filter.
50407+
properties:
50408+
trace_enabled:
50409+
description: Whether Trace cross-product sampling is enabled.
50410+
example: true
50411+
type: boolean
50412+
trace_sample_rate:
50413+
description: The percentage (0-100) of retained sessions with ingested traces
50414+
for which traces are indexed.
50415+
example: 25.0
50416+
format: double
50417+
maximum: 100
50418+
minimum: 0
50419+
type: number
50420+
required:
50421+
- trace_sample_rate
50422+
type: object
50423+
RumCrossProductSamplingUpdate:
50424+
description: Configuration for cross-product sampling when updating a retention
50425+
filter. All fields are optional for partial updates.
50426+
properties:
50427+
trace_enabled:
50428+
description: Whether Trace cross-product sampling is enabled.
50429+
example: true
50430+
type: boolean
50431+
trace_sample_rate:
50432+
description: The percentage (0-100) of retained sessions with ingested traces
50433+
for which traces are indexed.
50434+
example: 25.0
50435+
format: double
50436+
maximum: 100
50437+
minimum: 0
50438+
type: number
50439+
type: object
5037750440
RumMetricCompute:
5037850441
description: The compute rule to compute the rum-based metric.
5037950442
properties:
@@ -50661,6 +50724,8 @@ components:
5066150724
RumRetentionFilterAttributes:
5066250725
description: The object describing attributes of a RUM retention filter.
5066350726
properties:
50727+
cross_product_sampling:
50728+
$ref: '#/components/schemas/RumCrossProductSampling'
5066450729
enabled:
5066550730
$ref: '#/components/schemas/RumRetentionFilterEnabled'
5066650731
event_type:
@@ -50675,6 +50740,8 @@ components:
5067550740
RumRetentionFilterCreateAttributes:
5067650741
description: The object describing attributes of a RUM retention filter to create.
5067750742
properties:
50743+
cross_product_sampling:
50744+
$ref: '#/components/schemas/RumCrossProductSamplingCreate'
5067850745
enabled:
5067950746
$ref: '#/components/schemas/RumRetentionFilterEnabled'
5068050747
event_type:
@@ -50776,6 +50843,8 @@ components:
5077650843
RumRetentionFilterUpdateAttributes:
5077750844
description: The object describing attributes of a RUM retention filter to update.
5077850845
properties:
50846+
cross_product_sampling:
50847+
$ref: '#/components/schemas/RumCrossProductSamplingUpdate'
5077950848
enabled:
5078050849
$ref: '#/components/schemas/RumRetentionFilterEnabled'
5078150850
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 matching this retention
21+
* filter. When a session matches the filter and is retained (based on sample_rate), you can
22+
* configure what percentage of retained sessions with ingested traces should have their traces
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+
* Whether Trace cross-product sampling is enabled. When false, no traces are indexed regardless
46+
* of trace_sample_rate.
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 for which traces are indexed.
68+
* For example, 25.0 means 25% of retained sessions with ingested traces will have their traces
69+
* indexed. 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)