diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml
index 725f8959213..52ca4577e26 100644
--- a/.generator/schemas/v1/openapi.yaml
+++ b/.generator/schemas/v1/openapi.yaml
@@ -22187,11 +22187,6 @@ components:
current date for all organizations.
format: int64
type: integer
- infra_edge_monitoring_devices_top99p:
- description: Shows the 99th percentile of all Edge Devices Monitoring devices
- over all hours in the current date for all organizations.
- format: int64
- type: integer
infra_host_top99p:
description: Shows the 99th percentile of all distinct infrastructure hosts
over all hours in the current date for all organizations.
@@ -23355,11 +23350,6 @@ components:
current date for the given org (To be deprecated on October 1st, 2024).
format: int64
type: integer
- infra_edge_monitoring_devices_top99p:
- description: Shows the 99th percentile of all Edge Devices Monitoring devices
- over all hours in the current date for the given org.
- format: int64
- type: integer
infra_host_top99p:
description: Shows the 99th percentile of all distinct infrastructure hosts
over all hours in the current date for the given org.
@@ -24523,11 +24513,6 @@ components:
2024).
format: int64
type: integer
- infra_edge_monitoring_devices_top99p_sum:
- description: Shows the 99th percentile of all Edge Devices Monitoring devices
- over all hours in the current month for all organizations.
- format: int64
- type: integer
infra_host_top99p_sum:
description: Shows the 99th percentile of all distinct infrastructure hosts
over all hours in the current month for all organizations.
diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml
index 051d86838f3..ec22ef29ad3 100644
--- a/.generator/schemas/v2/openapi.yaml
+++ b/.generator/schemas/v2/openapi.yaml
@@ -54739,6 +54739,69 @@ components:
type: string
x-enum-varnames:
- RULESET
+ RumCrossProductSampling:
+ description: 'Configuration for additional APM trace data retention for sessions
+ that match this retention filter.
+
+ When a session matches the filter and is retained (based on `sample_rate`),
+ you can configure
+
+ the percentage of retained sessions with ingested traces whose traces are
+ indexed.'
+ properties:
+ trace_enabled:
+ description: Indicates whether trace cross-product sampling is enabled.
+ If `false`, no traces are indexed regardless of `trace_sample_rate`.
+ example: true
+ type: boolean
+ trace_sample_rate:
+ description: 'The percentage (0-100) of retained sessions with ingested
+ traces whose traces are indexed.
+
+ For example, 25.0 means 25% of retained sessions with ingested traces
+ have their traces indexed.'
+ example: 25.0
+ format: double
+ maximum: 100
+ minimum: 0
+ type: number
+ type: object
+ RumCrossProductSamplingCreate:
+ description: Configuration for cross-product sampling when creating a retention
+ filter.
+ properties:
+ trace_enabled:
+ description: Indicates whether trace cross-product sampling is enabled.
+ example: true
+ type: boolean
+ trace_sample_rate:
+ description: The percentage (0-100) of retained sessions with ingested traces
+ whose traces are indexed.
+ example: 25.0
+ format: double
+ maximum: 100
+ minimum: 0
+ type: number
+ required:
+ - trace_sample_rate
+ type: object
+ RumCrossProductSamplingUpdate:
+ description: Configuration for cross-product sampling when updating a retention
+ filter. All fields are optional for partial updates.
+ properties:
+ trace_enabled:
+ description: Indicates whether trace cross-product sampling is enabled.
+ example: true
+ type: boolean
+ trace_sample_rate:
+ description: The percentage (0-100) of retained sessions with ingested traces
+ whose traces are indexed.
+ example: 25.0
+ format: double
+ maximum: 100
+ minimum: 0
+ type: number
+ type: object
RumMetricCompute:
description: The compute rule to compute the rum-based metric.
properties:
@@ -55026,6 +55089,8 @@ components:
RumRetentionFilterAttributes:
description: The object describing attributes of a RUM retention filter.
properties:
+ cross_product_sampling:
+ $ref: '#/components/schemas/RumCrossProductSampling'
enabled:
$ref: '#/components/schemas/RumRetentionFilterEnabled'
event_type:
@@ -55040,6 +55105,8 @@ components:
RumRetentionFilterCreateAttributes:
description: The object describing attributes of a RUM retention filter to create.
properties:
+ cross_product_sampling:
+ $ref: '#/components/schemas/RumCrossProductSamplingCreate'
enabled:
$ref: '#/components/schemas/RumRetentionFilterEnabled'
event_type:
@@ -55141,6 +55208,8 @@ components:
RumRetentionFilterUpdateAttributes:
description: The object describing attributes of a RUM retention filter to update.
properties:
+ cross_product_sampling:
+ $ref: '#/components/schemas/RumCrossProductSamplingUpdate'
enabled:
$ref: '#/components/schemas/RumRetentionFilterEnabled'
event_type:
diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageSummaryDate.java b/src/main/java/com/datadog/api/client/v1/model/UsageSummaryDate.java
index 08ea85784ba..19747215273 100644
--- a/src/main/java/com/datadog/api/client/v1/model/UsageSummaryDate.java
+++ b/src/main/java/com/datadog/api/client/v1/model/UsageSummaryDate.java
@@ -128,7 +128,6 @@
UsageSummaryDate.JSON_PROPERTY_INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_HWM,
UsageSummaryDate.JSON_PROPERTY_INCIDENT_MANAGEMENT_SEATS_HWM,
UsageSummaryDate.JSON_PROPERTY_INDEXED_EVENTS_COUNT_SUM,
- UsageSummaryDate.JSON_PROPERTY_INFRA_EDGE_MONITORING_DEVICES_TOP99P,
UsageSummaryDate.JSON_PROPERTY_INFRA_HOST_TOP99P,
UsageSummaryDate.JSON_PROPERTY_INGESTED_EVENTS_BYTES_SUM,
UsageSummaryDate.JSON_PROPERTY_IOT_DEVICE_SUM,
@@ -628,10 +627,6 @@ public class UsageSummaryDate {
public static final String JSON_PROPERTY_INDEXED_EVENTS_COUNT_SUM = "indexed_events_count_sum";
private Long indexedEventsCountSum;
- public static final String JSON_PROPERTY_INFRA_EDGE_MONITORING_DEVICES_TOP99P =
- "infra_edge_monitoring_devices_top99p";
- private Long infraEdgeMonitoringDevicesTop99p;
-
public static final String JSON_PROPERTY_INFRA_HOST_TOP99P = "infra_host_top99p";
private Long infraHostTop99p;
@@ -3438,28 +3433,6 @@ public void setIndexedEventsCountSum(Long indexedEventsCountSum) {
this.indexedEventsCountSum = indexedEventsCountSum;
}
- public UsageSummaryDate infraEdgeMonitoringDevicesTop99p(Long infraEdgeMonitoringDevicesTop99p) {
- this.infraEdgeMonitoringDevicesTop99p = infraEdgeMonitoringDevicesTop99p;
- return this;
- }
-
- /**
- * Shows the 99th percentile of all Edge Devices Monitoring devices over all hours in the current
- * date for all organizations.
- *
- * @return infraEdgeMonitoringDevicesTop99p
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_INFRA_EDGE_MONITORING_DEVICES_TOP99P)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public Long getInfraEdgeMonitoringDevicesTop99p() {
- return infraEdgeMonitoringDevicesTop99p;
- }
-
- public void setInfraEdgeMonitoringDevicesTop99p(Long infraEdgeMonitoringDevicesTop99p) {
- this.infraEdgeMonitoringDevicesTop99p = infraEdgeMonitoringDevicesTop99p;
- }
-
public UsageSummaryDate infraHostTop99p(Long infraHostTop99p) {
this.infraHostTop99p = infraHostTop99p;
return this;
@@ -6180,9 +6153,6 @@ public boolean equals(Object o) {
&& Objects.equals(
this.incidentManagementSeatsHwm, usageSummaryDate.incidentManagementSeatsHwm)
&& Objects.equals(this.indexedEventsCountSum, usageSummaryDate.indexedEventsCountSum)
- && Objects.equals(
- this.infraEdgeMonitoringDevicesTop99p,
- usageSummaryDate.infraEdgeMonitoringDevicesTop99p)
&& Objects.equals(this.infraHostTop99p, usageSummaryDate.infraHostTop99p)
&& Objects.equals(this.ingestedEventsBytesSum, usageSummaryDate.ingestedEventsBytesSum)
&& Objects.equals(this.iotDeviceSum, usageSummaryDate.iotDeviceSum)
@@ -6513,7 +6483,6 @@ public int hashCode() {
incidentManagementMonthlyActiveUsersHwm,
incidentManagementSeatsHwm,
indexedEventsCountSum,
- infraEdgeMonitoringDevicesTop99p,
infraHostTop99p,
ingestedEventsBytesSum,
iotDeviceSum,
@@ -6889,9 +6858,6 @@ public String toString() {
sb.append(" indexedEventsCountSum: ")
.append(toIndentedString(indexedEventsCountSum))
.append("\n");
- sb.append(" infraEdgeMonitoringDevicesTop99p: ")
- .append(toIndentedString(infraEdgeMonitoringDevicesTop99p))
- .append("\n");
sb.append(" infraHostTop99p: ").append(toIndentedString(infraHostTop99p)).append("\n");
sb.append(" ingestedEventsBytesSum: ")
.append(toIndentedString(ingestedEventsBytesSum))
diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageSummaryDateOrg.java b/src/main/java/com/datadog/api/client/v1/model/UsageSummaryDateOrg.java
index e309b7a762c..6b0a678be50 100644
--- a/src/main/java/com/datadog/api/client/v1/model/UsageSummaryDateOrg.java
+++ b/src/main/java/com/datadog/api/client/v1/model/UsageSummaryDateOrg.java
@@ -129,7 +129,6 @@
UsageSummaryDateOrg.JSON_PROPERTY_INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_HWM,
UsageSummaryDateOrg.JSON_PROPERTY_INCIDENT_MANAGEMENT_SEATS_HWM,
UsageSummaryDateOrg.JSON_PROPERTY_INDEXED_EVENTS_COUNT_SUM,
- UsageSummaryDateOrg.JSON_PROPERTY_INFRA_EDGE_MONITORING_DEVICES_TOP99P,
UsageSummaryDateOrg.JSON_PROPERTY_INFRA_HOST_TOP99P,
UsageSummaryDateOrg.JSON_PROPERTY_INGESTED_EVENTS_BYTES_SUM,
UsageSummaryDateOrg.JSON_PROPERTY_IOT_DEVICE_AGG_SUM,
@@ -644,10 +643,6 @@ public class UsageSummaryDateOrg {
public static final String JSON_PROPERTY_INDEXED_EVENTS_COUNT_SUM = "indexed_events_count_sum";
private Long indexedEventsCountSum;
- public static final String JSON_PROPERTY_INFRA_EDGE_MONITORING_DEVICES_TOP99P =
- "infra_edge_monitoring_devices_top99p";
- private Long infraEdgeMonitoringDevicesTop99p;
-
public static final String JSON_PROPERTY_INFRA_HOST_TOP99P = "infra_host_top99p";
private Long infraHostTop99p;
@@ -3545,29 +3540,6 @@ public void setIndexedEventsCountSum(Long indexedEventsCountSum) {
this.indexedEventsCountSum = indexedEventsCountSum;
}
- public UsageSummaryDateOrg infraEdgeMonitoringDevicesTop99p(
- Long infraEdgeMonitoringDevicesTop99p) {
- this.infraEdgeMonitoringDevicesTop99p = infraEdgeMonitoringDevicesTop99p;
- return this;
- }
-
- /**
- * Shows the 99th percentile of all Edge Devices Monitoring devices over all hours in the current
- * date for the given org.
- *
- * @return infraEdgeMonitoringDevicesTop99p
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_INFRA_EDGE_MONITORING_DEVICES_TOP99P)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public Long getInfraEdgeMonitoringDevicesTop99p() {
- return infraEdgeMonitoringDevicesTop99p;
- }
-
- public void setInfraEdgeMonitoringDevicesTop99p(Long infraEdgeMonitoringDevicesTop99p) {
- this.infraEdgeMonitoringDevicesTop99p = infraEdgeMonitoringDevicesTop99p;
- }
-
public UsageSummaryDateOrg infraHostTop99p(Long infraHostTop99p) {
this.infraHostTop99p = infraHostTop99p;
return this;
@@ -6334,9 +6306,6 @@ public boolean equals(Object o) {
&& Objects.equals(
this.incidentManagementSeatsHwm, usageSummaryDateOrg.incidentManagementSeatsHwm)
&& Objects.equals(this.indexedEventsCountSum, usageSummaryDateOrg.indexedEventsCountSum)
- && Objects.equals(
- this.infraEdgeMonitoringDevicesTop99p,
- usageSummaryDateOrg.infraEdgeMonitoringDevicesTop99p)
&& Objects.equals(this.infraHostTop99p, usageSummaryDateOrg.infraHostTop99p)
&& Objects.equals(this.ingestedEventsBytesSum, usageSummaryDateOrg.ingestedEventsBytesSum)
&& Objects.equals(this.iotDeviceAggSum, usageSummaryDateOrg.iotDeviceAggSum)
@@ -6684,7 +6653,6 @@ public int hashCode() {
incidentManagementMonthlyActiveUsersHwm,
incidentManagementSeatsHwm,
indexedEventsCountSum,
- infraEdgeMonitoringDevicesTop99p,
infraHostTop99p,
ingestedEventsBytesSum,
iotDeviceAggSum,
@@ -7068,9 +7036,6 @@ public String toString() {
sb.append(" indexedEventsCountSum: ")
.append(toIndentedString(indexedEventsCountSum))
.append("\n");
- sb.append(" infraEdgeMonitoringDevicesTop99p: ")
- .append(toIndentedString(infraEdgeMonitoringDevicesTop99p))
- .append("\n");
sb.append(" infraHostTop99p: ").append(toIndentedString(infraHostTop99p)).append("\n");
sb.append(" ingestedEventsBytesSum: ")
.append(toIndentedString(ingestedEventsBytesSum))
diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageSummaryResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageSummaryResponse.java
index acda4a75368..5f39b2f5759 100644
--- a/src/main/java/com/datadog/api/client/v1/model/UsageSummaryResponse.java
+++ b/src/main/java/com/datadog/api/client/v1/model/UsageSummaryResponse.java
@@ -134,7 +134,6 @@
UsageSummaryResponse.JSON_PROPERTY_INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_HWM_SUM,
UsageSummaryResponse.JSON_PROPERTY_INCIDENT_MANAGEMENT_SEATS_HWM_SUM,
UsageSummaryResponse.JSON_PROPERTY_INDEXED_EVENTS_COUNT_AGG_SUM,
- UsageSummaryResponse.JSON_PROPERTY_INFRA_EDGE_MONITORING_DEVICES_TOP99P_SUM,
UsageSummaryResponse.JSON_PROPERTY_INFRA_HOST_TOP99P_SUM,
UsageSummaryResponse.JSON_PROPERTY_INGESTED_EVENTS_BYTES_AGG_SUM,
UsageSummaryResponse.JSON_PROPERTY_IOT_DEVICE_AGG_SUM,
@@ -676,10 +675,6 @@ public class UsageSummaryResponse {
"indexed_events_count_agg_sum";
private Long indexedEventsCountAggSum;
- public static final String JSON_PROPERTY_INFRA_EDGE_MONITORING_DEVICES_TOP99P_SUM =
- "infra_edge_monitoring_devices_top99p_sum";
- private Long infraEdgeMonitoringDevicesTop99pSum;
-
public static final String JSON_PROPERTY_INFRA_HOST_TOP99P_SUM = "infra_host_top99p_sum";
private Long infraHostTop99pSum;
@@ -3625,29 +3620,6 @@ public void setIndexedEventsCountAggSum(Long indexedEventsCountAggSum) {
this.indexedEventsCountAggSum = indexedEventsCountAggSum;
}
- public UsageSummaryResponse infraEdgeMonitoringDevicesTop99pSum(
- Long infraEdgeMonitoringDevicesTop99pSum) {
- this.infraEdgeMonitoringDevicesTop99pSum = infraEdgeMonitoringDevicesTop99pSum;
- return this;
- }
-
- /**
- * Shows the 99th percentile of all Edge Devices Monitoring devices over all hours in the current
- * month for all organizations.
- *
- * @return infraEdgeMonitoringDevicesTop99pSum
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_INFRA_EDGE_MONITORING_DEVICES_TOP99P_SUM)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public Long getInfraEdgeMonitoringDevicesTop99pSum() {
- return infraEdgeMonitoringDevicesTop99pSum;
- }
-
- public void setInfraEdgeMonitoringDevicesTop99pSum(Long infraEdgeMonitoringDevicesTop99pSum) {
- this.infraEdgeMonitoringDevicesTop99pSum = infraEdgeMonitoringDevicesTop99pSum;
- }
-
public UsageSummaryResponse infraHostTop99pSum(Long infraHostTop99pSum) {
this.infraHostTop99pSum = infraHostTop99pSum;
return this;
@@ -6646,9 +6618,6 @@ public boolean equals(Object o) {
this.incidentManagementSeatsHwmSum, usageSummaryResponse.incidentManagementSeatsHwmSum)
&& Objects.equals(
this.indexedEventsCountAggSum, usageSummaryResponse.indexedEventsCountAggSum)
- && Objects.equals(
- this.infraEdgeMonitoringDevicesTop99pSum,
- usageSummaryResponse.infraEdgeMonitoringDevicesTop99pSum)
&& Objects.equals(this.infraHostTop99pSum, usageSummaryResponse.infraHostTop99pSum)
&& Objects.equals(
this.ingestedEventsBytesAggSum, usageSummaryResponse.ingestedEventsBytesAggSum)
@@ -7035,7 +7004,6 @@ public int hashCode() {
incidentManagementMonthlyActiveUsersHwmSum,
incidentManagementSeatsHwmSum,
indexedEventsCountAggSum,
- infraEdgeMonitoringDevicesTop99pSum,
infraHostTop99pSum,
ingestedEventsBytesAggSum,
iotDeviceAggSum,
@@ -7456,9 +7424,6 @@ public String toString() {
sb.append(" indexedEventsCountAggSum: ")
.append(toIndentedString(indexedEventsCountAggSum))
.append("\n");
- sb.append(" infraEdgeMonitoringDevicesTop99pSum: ")
- .append(toIndentedString(infraEdgeMonitoringDevicesTop99pSum))
- .append("\n");
sb.append(" infraHostTop99pSum: ").append(toIndentedString(infraHostTop99pSum)).append("\n");
sb.append(" ingestedEventsBytesAggSum: ")
.append(toIndentedString(ingestedEventsBytesAggSum))
diff --git a/src/main/java/com/datadog/api/client/v2/model/RumCrossProductSampling.java b/src/main/java/com/datadog/api/client/v2/model/RumCrossProductSampling.java
new file mode 100644
index 00000000000..a3d2472e007
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/RumCrossProductSampling.java
@@ -0,0 +1,172 @@
+/*
+ * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
+ * This product includes software developed at Datadog (https://www.datadoghq.com/).
+ * Copyright 2019-Present Datadog, Inc.
+ */
+
+package com.datadog.api.client.v2.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+
+/**
+ * Configuration for additional APM trace data retention for sessions that match this retention
+ * filter. When a session matches the filter and is retained (based on sample_rate),
+ * you can configure the percentage of retained sessions with ingested traces whose traces are
+ * indexed.
+ */
+@JsonPropertyOrder({
+ RumCrossProductSampling.JSON_PROPERTY_TRACE_ENABLED,
+ RumCrossProductSampling.JSON_PROPERTY_TRACE_SAMPLE_RATE
+})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class RumCrossProductSampling {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_TRACE_ENABLED = "trace_enabled";
+ private Boolean traceEnabled;
+
+ public static final String JSON_PROPERTY_TRACE_SAMPLE_RATE = "trace_sample_rate";
+ private Double traceSampleRate;
+
+ public RumCrossProductSampling traceEnabled(Boolean traceEnabled) {
+ this.traceEnabled = traceEnabled;
+ return this;
+ }
+
+ /**
+ * Indicates whether trace cross-product sampling is enabled. If false, no traces are
+ * indexed regardless of trace_sample_rate.
+ *
+ * @return traceEnabled
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_TRACE_ENABLED)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public Boolean getTraceEnabled() {
+ return traceEnabled;
+ }
+
+ public void setTraceEnabled(Boolean traceEnabled) {
+ this.traceEnabled = traceEnabled;
+ }
+
+ public RumCrossProductSampling traceSampleRate(Double traceSampleRate) {
+ this.traceSampleRate = traceSampleRate;
+ return this;
+ }
+
+ /**
+ * The percentage (0-100) of retained sessions with ingested traces whose traces are indexed. For
+ * example, 25.0 means 25% of retained sessions with ingested traces have their traces indexed.
+ * minimum: 0 maximum: 100
+ *
+ * @return traceSampleRate
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_TRACE_SAMPLE_RATE)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public Double getTraceSampleRate() {
+ return traceSampleRate;
+ }
+
+ public void setTraceSampleRate(Double traceSampleRate) {
+ this.traceSampleRate = traceSampleRate;
+ }
+
+ /**
+ * A container for additional, undeclared properties. This is a holder for any undeclared
+ * properties as specified with the 'additionalProperties' keyword in the OAS document.
+ */
+ private Map additionalProperties;
+
+ /**
+ * Set the additional (undeclared) property with the specified name and value. If the property
+ * does not already exist, create it otherwise replace it.
+ *
+ * @param key The arbitrary key to set
+ * @param value The associated value
+ * @return RumCrossProductSampling
+ */
+ @JsonAnySetter
+ public RumCrossProductSampling putAdditionalProperty(String key, Object value) {
+ if (this.additionalProperties == null) {
+ this.additionalProperties = new HashMap();
+ }
+ this.additionalProperties.put(key, value);
+ return this;
+ }
+
+ /**
+ * Return the additional (undeclared) property.
+ *
+ * @return The additional properties
+ */
+ @JsonAnyGetter
+ public Map getAdditionalProperties() {
+ return additionalProperties;
+ }
+
+ /**
+ * Return the additional (undeclared) property with the specified name.
+ *
+ * @param key The arbitrary key to get
+ * @return The specific additional property for the given key
+ */
+ public Object getAdditionalProperty(String key) {
+ if (this.additionalProperties == null) {
+ return null;
+ }
+ return this.additionalProperties.get(key);
+ }
+
+ /** Return true if this RumCrossProductSampling object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ RumCrossProductSampling rumCrossProductSampling = (RumCrossProductSampling) o;
+ return Objects.equals(this.traceEnabled, rumCrossProductSampling.traceEnabled)
+ && Objects.equals(this.traceSampleRate, rumCrossProductSampling.traceSampleRate)
+ && Objects.equals(this.additionalProperties, rumCrossProductSampling.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(traceEnabled, traceSampleRate, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class RumCrossProductSampling {\n");
+ sb.append(" traceEnabled: ").append(toIndentedString(traceEnabled)).append("\n");
+ sb.append(" traceSampleRate: ").append(toIndentedString(traceSampleRate)).append("\n");
+ sb.append(" additionalProperties: ")
+ .append(toIndentedString(additionalProperties))
+ .append("\n");
+ sb.append('}');
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/com/datadog/api/client/v2/model/RumCrossProductSamplingCreate.java b/src/main/java/com/datadog/api/client/v2/model/RumCrossProductSamplingCreate.java
new file mode 100644
index 00000000000..df9187cfdf9
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/RumCrossProductSamplingCreate.java
@@ -0,0 +1,175 @@
+/*
+ * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
+ * This product includes software developed at Datadog (https://www.datadoghq.com/).
+ * Copyright 2019-Present Datadog, Inc.
+ */
+
+package com.datadog.api.client.v2.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+
+/** Configuration for cross-product sampling when creating a retention filter. */
+@JsonPropertyOrder({
+ RumCrossProductSamplingCreate.JSON_PROPERTY_TRACE_ENABLED,
+ RumCrossProductSamplingCreate.JSON_PROPERTY_TRACE_SAMPLE_RATE
+})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class RumCrossProductSamplingCreate {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_TRACE_ENABLED = "trace_enabled";
+ private Boolean traceEnabled;
+
+ public static final String JSON_PROPERTY_TRACE_SAMPLE_RATE = "trace_sample_rate";
+ private Double traceSampleRate;
+
+ public RumCrossProductSamplingCreate() {}
+
+ @JsonCreator
+ public RumCrossProductSamplingCreate(
+ @JsonProperty(required = true, value = JSON_PROPERTY_TRACE_SAMPLE_RATE)
+ Double traceSampleRate) {
+ this.traceSampleRate = traceSampleRate;
+ }
+
+ public RumCrossProductSamplingCreate traceEnabled(Boolean traceEnabled) {
+ this.traceEnabled = traceEnabled;
+ return this;
+ }
+
+ /**
+ * Indicates whether trace cross-product sampling is enabled.
+ *
+ * @return traceEnabled
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_TRACE_ENABLED)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public Boolean getTraceEnabled() {
+ return traceEnabled;
+ }
+
+ public void setTraceEnabled(Boolean traceEnabled) {
+ this.traceEnabled = traceEnabled;
+ }
+
+ public RumCrossProductSamplingCreate traceSampleRate(Double traceSampleRate) {
+ this.traceSampleRate = traceSampleRate;
+ return this;
+ }
+
+ /**
+ * The percentage (0-100) of retained sessions with ingested traces whose traces are indexed.
+ * minimum: 0 maximum: 100
+ *
+ * @return traceSampleRate
+ */
+ @JsonProperty(JSON_PROPERTY_TRACE_SAMPLE_RATE)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public Double getTraceSampleRate() {
+ return traceSampleRate;
+ }
+
+ public void setTraceSampleRate(Double traceSampleRate) {
+ this.traceSampleRate = traceSampleRate;
+ }
+
+ /**
+ * A container for additional, undeclared properties. This is a holder for any undeclared
+ * properties as specified with the 'additionalProperties' keyword in the OAS document.
+ */
+ private Map additionalProperties;
+
+ /**
+ * Set the additional (undeclared) property with the specified name and value. If the property
+ * does not already exist, create it otherwise replace it.
+ *
+ * @param key The arbitrary key to set
+ * @param value The associated value
+ * @return RumCrossProductSamplingCreate
+ */
+ @JsonAnySetter
+ public RumCrossProductSamplingCreate putAdditionalProperty(String key, Object value) {
+ if (this.additionalProperties == null) {
+ this.additionalProperties = new HashMap();
+ }
+ this.additionalProperties.put(key, value);
+ return this;
+ }
+
+ /**
+ * Return the additional (undeclared) property.
+ *
+ * @return The additional properties
+ */
+ @JsonAnyGetter
+ public Map getAdditionalProperties() {
+ return additionalProperties;
+ }
+
+ /**
+ * Return the additional (undeclared) property with the specified name.
+ *
+ * @param key The arbitrary key to get
+ * @return The specific additional property for the given key
+ */
+ public Object getAdditionalProperty(String key) {
+ if (this.additionalProperties == null) {
+ return null;
+ }
+ return this.additionalProperties.get(key);
+ }
+
+ /** Return true if this RumCrossProductSamplingCreate object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ RumCrossProductSamplingCreate rumCrossProductSamplingCreate = (RumCrossProductSamplingCreate) o;
+ return Objects.equals(this.traceEnabled, rumCrossProductSamplingCreate.traceEnabled)
+ && Objects.equals(this.traceSampleRate, rumCrossProductSamplingCreate.traceSampleRate)
+ && Objects.equals(
+ this.additionalProperties, rumCrossProductSamplingCreate.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(traceEnabled, traceSampleRate, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class RumCrossProductSamplingCreate {\n");
+ sb.append(" traceEnabled: ").append(toIndentedString(traceEnabled)).append("\n");
+ sb.append(" traceSampleRate: ").append(toIndentedString(traceSampleRate)).append("\n");
+ sb.append(" additionalProperties: ")
+ .append(toIndentedString(additionalProperties))
+ .append("\n");
+ sb.append('}');
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/com/datadog/api/client/v2/model/RumCrossProductSamplingUpdate.java b/src/main/java/com/datadog/api/client/v2/model/RumCrossProductSamplingUpdate.java
new file mode 100644
index 00000000000..b9e1b93f5db
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/RumCrossProductSamplingUpdate.java
@@ -0,0 +1,169 @@
+/*
+ * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
+ * This product includes software developed at Datadog (https://www.datadoghq.com/).
+ * Copyright 2019-Present Datadog, Inc.
+ */
+
+package com.datadog.api.client.v2.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+
+/**
+ * Configuration for cross-product sampling when updating a retention filter. All fields are
+ * optional for partial updates.
+ */
+@JsonPropertyOrder({
+ RumCrossProductSamplingUpdate.JSON_PROPERTY_TRACE_ENABLED,
+ RumCrossProductSamplingUpdate.JSON_PROPERTY_TRACE_SAMPLE_RATE
+})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class RumCrossProductSamplingUpdate {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_TRACE_ENABLED = "trace_enabled";
+ private Boolean traceEnabled;
+
+ public static final String JSON_PROPERTY_TRACE_SAMPLE_RATE = "trace_sample_rate";
+ private Double traceSampleRate;
+
+ public RumCrossProductSamplingUpdate traceEnabled(Boolean traceEnabled) {
+ this.traceEnabled = traceEnabled;
+ return this;
+ }
+
+ /**
+ * Indicates whether trace cross-product sampling is enabled.
+ *
+ * @return traceEnabled
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_TRACE_ENABLED)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public Boolean getTraceEnabled() {
+ return traceEnabled;
+ }
+
+ public void setTraceEnabled(Boolean traceEnabled) {
+ this.traceEnabled = traceEnabled;
+ }
+
+ public RumCrossProductSamplingUpdate traceSampleRate(Double traceSampleRate) {
+ this.traceSampleRate = traceSampleRate;
+ return this;
+ }
+
+ /**
+ * The percentage (0-100) of retained sessions with ingested traces whose traces are indexed.
+ * minimum: 0 maximum: 100
+ *
+ * @return traceSampleRate
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_TRACE_SAMPLE_RATE)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public Double getTraceSampleRate() {
+ return traceSampleRate;
+ }
+
+ public void setTraceSampleRate(Double traceSampleRate) {
+ this.traceSampleRate = traceSampleRate;
+ }
+
+ /**
+ * A container for additional, undeclared properties. This is a holder for any undeclared
+ * properties as specified with the 'additionalProperties' keyword in the OAS document.
+ */
+ private Map additionalProperties;
+
+ /**
+ * Set the additional (undeclared) property with the specified name and value. If the property
+ * does not already exist, create it otherwise replace it.
+ *
+ * @param key The arbitrary key to set
+ * @param value The associated value
+ * @return RumCrossProductSamplingUpdate
+ */
+ @JsonAnySetter
+ public RumCrossProductSamplingUpdate putAdditionalProperty(String key, Object value) {
+ if (this.additionalProperties == null) {
+ this.additionalProperties = new HashMap();
+ }
+ this.additionalProperties.put(key, value);
+ return this;
+ }
+
+ /**
+ * Return the additional (undeclared) property.
+ *
+ * @return The additional properties
+ */
+ @JsonAnyGetter
+ public Map getAdditionalProperties() {
+ return additionalProperties;
+ }
+
+ /**
+ * Return the additional (undeclared) property with the specified name.
+ *
+ * @param key The arbitrary key to get
+ * @return The specific additional property for the given key
+ */
+ public Object getAdditionalProperty(String key) {
+ if (this.additionalProperties == null) {
+ return null;
+ }
+ return this.additionalProperties.get(key);
+ }
+
+ /** Return true if this RumCrossProductSamplingUpdate object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ RumCrossProductSamplingUpdate rumCrossProductSamplingUpdate = (RumCrossProductSamplingUpdate) o;
+ return Objects.equals(this.traceEnabled, rumCrossProductSamplingUpdate.traceEnabled)
+ && Objects.equals(this.traceSampleRate, rumCrossProductSamplingUpdate.traceSampleRate)
+ && Objects.equals(
+ this.additionalProperties, rumCrossProductSamplingUpdate.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(traceEnabled, traceSampleRate, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class RumCrossProductSamplingUpdate {\n");
+ sb.append(" traceEnabled: ").append(toIndentedString(traceEnabled)).append("\n");
+ sb.append(" traceSampleRate: ").append(toIndentedString(traceSampleRate)).append("\n");
+ sb.append(" additionalProperties: ")
+ .append(toIndentedString(additionalProperties))
+ .append("\n");
+ sb.append('}');
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/com/datadog/api/client/v2/model/RumRetentionFilterAttributes.java b/src/main/java/com/datadog/api/client/v2/model/RumRetentionFilterAttributes.java
index d22686af276..1afab7693f8 100644
--- a/src/main/java/com/datadog/api/client/v2/model/RumRetentionFilterAttributes.java
+++ b/src/main/java/com/datadog/api/client/v2/model/RumRetentionFilterAttributes.java
@@ -18,6 +18,7 @@
/** The object describing attributes of a RUM retention filter. */
@JsonPropertyOrder({
+ RumRetentionFilterAttributes.JSON_PROPERTY_CROSS_PRODUCT_SAMPLING,
RumRetentionFilterAttributes.JSON_PROPERTY_ENABLED,
RumRetentionFilterAttributes.JSON_PROPERTY_EVENT_TYPE,
RumRetentionFilterAttributes.JSON_PROPERTY_NAME,
@@ -28,6 +29,9 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class RumRetentionFilterAttributes {
@JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_CROSS_PRODUCT_SAMPLING = "cross_product_sampling";
+ private RumCrossProductSampling crossProductSampling;
+
public static final String JSON_PROPERTY_ENABLED = "enabled";
private Boolean enabled;
@@ -43,6 +47,32 @@ public class RumRetentionFilterAttributes {
public static final String JSON_PROPERTY_SAMPLE_RATE = "sample_rate";
private Double sampleRate;
+ public RumRetentionFilterAttributes crossProductSampling(
+ RumCrossProductSampling crossProductSampling) {
+ this.crossProductSampling = crossProductSampling;
+ this.unparsed |= crossProductSampling.unparsed;
+ return this;
+ }
+
+ /**
+ * Configuration for additional APM trace data retention for sessions that match this retention
+ * filter. When a session matches the filter and is retained (based on sample_rate),
+ * you can configure the percentage of retained sessions with ingested traces whose traces are
+ * indexed.
+ *
+ * @return crossProductSampling
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_CROSS_PRODUCT_SAMPLING)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public RumCrossProductSampling getCrossProductSampling() {
+ return crossProductSampling;
+ }
+
+ public void setCrossProductSampling(RumCrossProductSampling crossProductSampling) {
+ this.crossProductSampling = crossProductSampling;
+ }
+
public RumRetentionFilterAttributes enabled(Boolean enabled) {
this.enabled = enabled;
return this;
@@ -208,7 +238,9 @@ public boolean equals(Object o) {
return false;
}
RumRetentionFilterAttributes rumRetentionFilterAttributes = (RumRetentionFilterAttributes) o;
- return Objects.equals(this.enabled, rumRetentionFilterAttributes.enabled)
+ return Objects.equals(
+ this.crossProductSampling, rumRetentionFilterAttributes.crossProductSampling)
+ && Objects.equals(this.enabled, rumRetentionFilterAttributes.enabled)
&& Objects.equals(this.eventType, rumRetentionFilterAttributes.eventType)
&& Objects.equals(this.name, rumRetentionFilterAttributes.name)
&& Objects.equals(this.query, rumRetentionFilterAttributes.query)
@@ -219,13 +251,17 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
- return Objects.hash(enabled, eventType, name, query, sampleRate, additionalProperties);
+ return Objects.hash(
+ crossProductSampling, enabled, eventType, name, query, sampleRate, additionalProperties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RumRetentionFilterAttributes {\n");
+ sb.append(" crossProductSampling: ")
+ .append(toIndentedString(crossProductSampling))
+ .append("\n");
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
diff --git a/src/main/java/com/datadog/api/client/v2/model/RumRetentionFilterCreateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/RumRetentionFilterCreateAttributes.java
index b4c5275c046..53d61e8818b 100644
--- a/src/main/java/com/datadog/api/client/v2/model/RumRetentionFilterCreateAttributes.java
+++ b/src/main/java/com/datadog/api/client/v2/model/RumRetentionFilterCreateAttributes.java
@@ -19,6 +19,7 @@
/** The object describing attributes of a RUM retention filter to create. */
@JsonPropertyOrder({
+ RumRetentionFilterCreateAttributes.JSON_PROPERTY_CROSS_PRODUCT_SAMPLING,
RumRetentionFilterCreateAttributes.JSON_PROPERTY_ENABLED,
RumRetentionFilterCreateAttributes.JSON_PROPERTY_EVENT_TYPE,
RumRetentionFilterCreateAttributes.JSON_PROPERTY_NAME,
@@ -29,6 +30,9 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class RumRetentionFilterCreateAttributes {
@JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_CROSS_PRODUCT_SAMPLING = "cross_product_sampling";
+ private RumCrossProductSamplingCreate crossProductSampling;
+
public static final String JSON_PROPERTY_ENABLED = "enabled";
private Boolean enabled;
@@ -58,6 +62,29 @@ public RumRetentionFilterCreateAttributes(
this.sampleRate = sampleRate;
}
+ public RumRetentionFilterCreateAttributes crossProductSampling(
+ RumCrossProductSamplingCreate crossProductSampling) {
+ this.crossProductSampling = crossProductSampling;
+ this.unparsed |= crossProductSampling.unparsed;
+ return this;
+ }
+
+ /**
+ * Configuration for cross-product sampling when creating a retention filter.
+ *
+ * @return crossProductSampling
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_CROSS_PRODUCT_SAMPLING)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public RumCrossProductSamplingCreate getCrossProductSampling() {
+ return crossProductSampling;
+ }
+
+ public void setCrossProductSampling(RumCrossProductSamplingCreate crossProductSampling) {
+ this.crossProductSampling = crossProductSampling;
+ }
+
public RumRetentionFilterCreateAttributes enabled(Boolean enabled) {
this.enabled = enabled;
return this;
@@ -221,7 +248,9 @@ public boolean equals(Object o) {
}
RumRetentionFilterCreateAttributes rumRetentionFilterCreateAttributes =
(RumRetentionFilterCreateAttributes) o;
- return Objects.equals(this.enabled, rumRetentionFilterCreateAttributes.enabled)
+ return Objects.equals(
+ this.crossProductSampling, rumRetentionFilterCreateAttributes.crossProductSampling)
+ && Objects.equals(this.enabled, rumRetentionFilterCreateAttributes.enabled)
&& Objects.equals(this.eventType, rumRetentionFilterCreateAttributes.eventType)
&& Objects.equals(this.name, rumRetentionFilterCreateAttributes.name)
&& Objects.equals(this.query, rumRetentionFilterCreateAttributes.query)
@@ -232,13 +261,17 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
- return Objects.hash(enabled, eventType, name, query, sampleRate, additionalProperties);
+ return Objects.hash(
+ crossProductSampling, enabled, eventType, name, query, sampleRate, additionalProperties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RumRetentionFilterCreateAttributes {\n");
+ sb.append(" crossProductSampling: ")
+ .append(toIndentedString(crossProductSampling))
+ .append("\n");
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
diff --git a/src/main/java/com/datadog/api/client/v2/model/RumRetentionFilterUpdateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/RumRetentionFilterUpdateAttributes.java
index c862aeb411e..6905f018bd2 100644
--- a/src/main/java/com/datadog/api/client/v2/model/RumRetentionFilterUpdateAttributes.java
+++ b/src/main/java/com/datadog/api/client/v2/model/RumRetentionFilterUpdateAttributes.java
@@ -18,6 +18,7 @@
/** The object describing attributes of a RUM retention filter to update. */
@JsonPropertyOrder({
+ RumRetentionFilterUpdateAttributes.JSON_PROPERTY_CROSS_PRODUCT_SAMPLING,
RumRetentionFilterUpdateAttributes.JSON_PROPERTY_ENABLED,
RumRetentionFilterUpdateAttributes.JSON_PROPERTY_EVENT_TYPE,
RumRetentionFilterUpdateAttributes.JSON_PROPERTY_NAME,
@@ -28,6 +29,9 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class RumRetentionFilterUpdateAttributes {
@JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_CROSS_PRODUCT_SAMPLING = "cross_product_sampling";
+ private RumCrossProductSamplingUpdate crossProductSampling;
+
public static final String JSON_PROPERTY_ENABLED = "enabled";
private Boolean enabled;
@@ -43,6 +47,30 @@ public class RumRetentionFilterUpdateAttributes {
public static final String JSON_PROPERTY_SAMPLE_RATE = "sample_rate";
private Double sampleRate;
+ public RumRetentionFilterUpdateAttributes crossProductSampling(
+ RumCrossProductSamplingUpdate crossProductSampling) {
+ this.crossProductSampling = crossProductSampling;
+ this.unparsed |= crossProductSampling.unparsed;
+ return this;
+ }
+
+ /**
+ * Configuration for cross-product sampling when updating a retention filter. All fields are
+ * optional for partial updates.
+ *
+ * @return crossProductSampling
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_CROSS_PRODUCT_SAMPLING)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public RumCrossProductSamplingUpdate getCrossProductSampling() {
+ return crossProductSampling;
+ }
+
+ public void setCrossProductSampling(RumCrossProductSamplingUpdate crossProductSampling) {
+ this.crossProductSampling = crossProductSampling;
+ }
+
public RumRetentionFilterUpdateAttributes enabled(Boolean enabled) {
this.enabled = enabled;
return this;
@@ -209,7 +237,9 @@ public boolean equals(Object o) {
}
RumRetentionFilterUpdateAttributes rumRetentionFilterUpdateAttributes =
(RumRetentionFilterUpdateAttributes) o;
- return Objects.equals(this.enabled, rumRetentionFilterUpdateAttributes.enabled)
+ return Objects.equals(
+ this.crossProductSampling, rumRetentionFilterUpdateAttributes.crossProductSampling)
+ && Objects.equals(this.enabled, rumRetentionFilterUpdateAttributes.enabled)
&& Objects.equals(this.eventType, rumRetentionFilterUpdateAttributes.eventType)
&& Objects.equals(this.name, rumRetentionFilterUpdateAttributes.name)
&& Objects.equals(this.query, rumRetentionFilterUpdateAttributes.query)
@@ -220,13 +250,17 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
- return Objects.hash(enabled, eventType, name, query, sampleRate, additionalProperties);
+ return Objects.hash(
+ crossProductSampling, enabled, eventType, name, query, sampleRate, additionalProperties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RumRetentionFilterUpdateAttributes {\n");
+ sb.append(" crossProductSampling: ")
+ .append(toIndentedString(crossProductSampling))
+ .append("\n");
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");