Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .generated-info
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"spec_repo_commit": "fde8b90",
"generated": "2025-08-18 20:34:00.694"
"spec_repo_commit": "4413e63",
"generated": "2025-08-19 20:29:58.463"
}
72 changes: 72 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32160,6 +32160,8 @@ components:
format: int32
maximum: 2147483647
type: integer
product_scales:
$ref: '#/components/schemas/RUMProductScales'
type:
description: Type of the RUM application. Supported values are `browser`,
`ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`,
Expand Down Expand Up @@ -32204,6 +32206,10 @@ components:
description: Name of the RUM application.
example: my_new_rum_application
type: string
product_analytics_retention_state:
$ref: '#/components/schemas/RUMProductAnalyticsRetentionState'
rum_event_processing_state:
$ref: '#/components/schemas/RUMEventProcessingState'
type:
description: Type of the RUM application. Supported values are `browser`,
`ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`,
Expand Down Expand Up @@ -32278,6 +32284,8 @@ components:
format: int32
maximum: 2147483647
type: integer
product_scales:
$ref: '#/components/schemas/RUMProductScales'
type:
description: Type of the RUM application. Supported values are `browser`,
`ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`,
Expand Down Expand Up @@ -32349,6 +32357,10 @@ components:
description: Name of the RUM application.
example: updated_name_for_my_existing_rum_application
type: string
product_analytics_retention_state:
$ref: '#/components/schemas/RUMProductAnalyticsRetentionState'
rum_event_processing_state:
$ref: '#/components/schemas/RUMEventProcessingState'
type:
description: Type of the RUM application. Supported values are `browser`,
`ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`,
Expand Down Expand Up @@ -32477,6 +32489,33 @@ components:
format: date-time
type: string
type: object
RUMEventProcessingScale:
description: RUM event processing scale configuration.
properties:
last_modified_at:
description: Timestamp in milliseconds when this scale was last modified.
example: 1721897494108
format: int64
type: integer
state:
$ref: '#/components/schemas/RUMEventProcessingState'
type: object
RUMEventProcessingState:
description: Configures which RUM events are processed and stored for the application.
enum:
- ALL
- ERROR_FOCUSED_MODE
- NONE
example: ALL
type: string
x-enum-descriptions:
- Process and store all RUM events (sessions, views, actions, resources, errors)
- Process and store only error events and related critical events
- "Disable RUM event processing\u2014no events are stored"
x-enum-varnames:
- ALL
- ERROR_FOCUSED_MODE
- NONE
RUMEventType:
default: rum
description: Type of the event.
Expand Down Expand Up @@ -32583,6 +32622,39 @@ components:
RUMGroupByTotalString:
description: A string to use as the key value for the total bucket.
type: string
RUMProductAnalyticsRetentionScale:
description: Product Analytics retention scale configuration.
properties:
last_modified_at:
description: Timestamp in milliseconds when this scale was last modified.
example: 1747922145974
format: int64
type: integer
state:
$ref: '#/components/schemas/RUMProductAnalyticsRetentionState'
type: object
RUMProductAnalyticsRetentionState:
description: Controls the retention policy for Product Analytics data derived
from RUM events.
enum:
- MAX
- NONE
example: MAX
type: string
x-enum-descriptions:
- Store Product Analytics data for the maximum available retention period
- Do not store Product Analytics data
x-enum-varnames:
- MAX
- NONE
RUMProductScales:
description: Product Scales configuration for the RUM application.
properties:
product_analytics_retention_scale:
$ref: '#/components/schemas/RUMProductAnalyticsRetentionScale'
rum_event_processing_scale:
$ref: '#/components/schemas/RUMEventProcessingScale'
type: object
RUMQueryFilter:
description: The search and filter query settings.
properties:
Expand Down
42 changes: 42 additions & 0 deletions examples/v2/rum/CreateRUMApplication_1946294560.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// Create a new RUM application with Product Scales returns "OK" response

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.RumApi;
import com.datadog.api.client.v2.model.RUMApplicationCreate;
import com.datadog.api.client.v2.model.RUMApplicationCreateAttributes;
import com.datadog.api.client.v2.model.RUMApplicationCreateRequest;
import com.datadog.api.client.v2.model.RUMApplicationCreateType;
import com.datadog.api.client.v2.model.RUMApplicationResponse;
import com.datadog.api.client.v2.model.RUMEventProcessingState;
import com.datadog.api.client.v2.model.RUMProductAnalyticsRetentionState;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
RumApi apiInstance = new RumApi(defaultClient);

RUMApplicationCreateRequest body =
new RUMApplicationCreateRequest()
.data(
new RUMApplicationCreate()
.attributes(
new RUMApplicationCreateAttributes()
.name("test-rum-with-product-scales-5c67ebb32077e1d9")
.type("browser")
.rumEventProcessingState(RUMEventProcessingState.ERROR_FOCUSED_MODE)
.productAnalyticsRetentionState(RUMProductAnalyticsRetentionState.NONE))
.type(RUMApplicationCreateType.RUM_APPLICATION_CREATE));

try {
RUMApplicationResponse result = apiInstance.createRUMApplication(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RumApi#createRUMApplication");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
46 changes: 46 additions & 0 deletions examples/v2/rum/UpdateRUMApplication_394074053.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// Update a RUM application with Product Scales returns "OK" response

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.RumApi;
import com.datadog.api.client.v2.model.RUMApplicationResponse;
import com.datadog.api.client.v2.model.RUMApplicationUpdate;
import com.datadog.api.client.v2.model.RUMApplicationUpdateAttributes;
import com.datadog.api.client.v2.model.RUMApplicationUpdateRequest;
import com.datadog.api.client.v2.model.RUMApplicationUpdateType;
import com.datadog.api.client.v2.model.RUMEventProcessingState;
import com.datadog.api.client.v2.model.RUMProductAnalyticsRetentionState;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
RumApi apiInstance = new RumApi(defaultClient);

// there is a valid "rum_application" in the system
String RUM_APPLICATION_DATA_ID = System.getenv("RUM_APPLICATION_DATA_ID");

RUMApplicationUpdateRequest body =
new RUMApplicationUpdateRequest()
.data(
new RUMApplicationUpdate()
.attributes(
new RUMApplicationUpdateAttributes()
.name("updated_rum_with_product_scales")
.rumEventProcessingState(RUMEventProcessingState.ALL)
.productAnalyticsRetentionState(RUMProductAnalyticsRetentionState.MAX))
.id(RUM_APPLICATION_DATA_ID)
.type(RUMApplicationUpdateType.RUM_APPLICATION_UPDATE));

try {
RUMApplicationResponse result =
apiInstance.updateRUMApplication(RUM_APPLICATION_DATA_ID, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RumApi#updateRUMApplication");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
RUMApplicationAttributes.JSON_PROPERTY_IS_ACTIVE,
RUMApplicationAttributes.JSON_PROPERTY_NAME,
RUMApplicationAttributes.JSON_PROPERTY_ORG_ID,
RUMApplicationAttributes.JSON_PROPERTY_PRODUCT_SCALES,
RUMApplicationAttributes.JSON_PROPERTY_TYPE,
RUMApplicationAttributes.JSON_PROPERTY_UPDATED_AT,
RUMApplicationAttributes.JSON_PROPERTY_UPDATED_BY_HANDLE
Expand Down Expand Up @@ -59,6 +60,9 @@ public class RUMApplicationAttributes {
public static final String JSON_PROPERTY_ORG_ID = "org_id";
private Integer orgId;

public static final String JSON_PROPERTY_PRODUCT_SCALES = "product_scales";
private RUMProductScales productScales;

public static final String JSON_PROPERTY_TYPE = "type";
private String type;

Expand Down Expand Up @@ -256,6 +260,28 @@ public void setOrgId(Integer orgId) {
this.orgId = orgId;
}

public RUMApplicationAttributes productScales(RUMProductScales productScales) {
this.productScales = productScales;
this.unparsed |= productScales.unparsed;
return this;
}

/**
* Product Scales configuration for the RUM application.
*
* @return productScales
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PRODUCT_SCALES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public RUMProductScales getProductScales() {
return productScales;
}

public void setProductScales(RUMProductScales productScales) {
this.productScales = productScales;
}

public RUMApplicationAttributes type(String type) {
this.type = type;
return this;
Expand Down Expand Up @@ -382,6 +408,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.isActive, rumApplicationAttributes.isActive)
&& Objects.equals(this.name, rumApplicationAttributes.name)
&& Objects.equals(this.orgId, rumApplicationAttributes.orgId)
&& Objects.equals(this.productScales, rumApplicationAttributes.productScales)
&& Objects.equals(this.type, rumApplicationAttributes.type)
&& Objects.equals(this.updatedAt, rumApplicationAttributes.updatedAt)
&& Objects.equals(this.updatedByHandle, rumApplicationAttributes.updatedByHandle)
Expand All @@ -399,6 +426,7 @@ public int hashCode() {
isActive,
name,
orgId,
productScales,
type,
updatedAt,
updatedByHandle,
Expand All @@ -417,6 +445,7 @@ public String toString() {
sb.append(" isActive: ").append(toIndentedString(isActive)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" orgId: ").append(toIndentedString(orgId)).append("\n");
sb.append(" productScales: ").append(toIndentedString(productScales)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
sb.append(" updatedByHandle: ").append(toIndentedString(updatedByHandle)).append("\n");
Expand Down
Loading