Skip to content
Open
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
41 changes: 13 additions & 28 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1799,7 +1799,9 @@ components:
example: cd73a516-a481-4af5-8352-9b577465c77b
type: string
RumRetentionQuotaScopeTypeParameter:
description: The type of scope the retention quota configuration applies to.
description: |-
The type of scope the retention quota configuration applies to.
`application` is the only supported scope type.
in: path
name: scope_type
required: true
Expand Down Expand Up @@ -92488,25 +92490,9 @@ components:
$ref: "#/components/schemas/RumRetentionFilterData"
type: array
type: object
RumRetentionQuotaAdaptiveConfig:
description: The configuration used when `mode` is `adaptive`.
properties:
max_retention_rate:
description: The maximum fraction of sessions to retain, in the range `(0, 1]`.
example: 0.5
exclusiveMinimum: true
format: double
maximum: 1
minimum: 0
type: number
required:
- max_retention_rate
type: object
RumRetentionQuotaConfigAttributes:
description: The RUM retention quota configuration properties.
properties:
adaptive:
$ref: "#/components/schemas/RumRetentionQuotaAdaptiveConfig"
custom:
$ref: "#/components/schemas/RumRetentionQuotaCustomConfig"
mode:
Expand Down Expand Up @@ -92564,8 +92550,6 @@ components:
RumRetentionQuotaConfigUpdateAttributes:
description: The RUM retention quota configuration properties to create or update.
properties:
adaptive:
$ref: "#/components/schemas/RumRetentionQuotaAdaptiveConfig"
custom:
$ref: "#/components/schemas/RumRetentionQuotaCustomConfig"
mode:
Expand Down Expand Up @@ -92631,14 +92615,13 @@ components:
type: object
RumRetentionQuotaMode:
description: |-
The retention quota mode. `custom` enforces a fixed session limit, while
`adaptive` dynamically adjusts retention.
The retention quota mode. `custom` enforces a fixed session limit.
`custom` is the only supported mode.
enum:
- custom
- adaptive
example: custom
type: string
x-enum-varnames: ["CUSTOM", "ADAPTIVE"]
x-enum-varnames: ["CUSTOM"]
RumRetentionQuotaReachedAction:
description: The action to take when the session quota is reached.
enum:
Expand All @@ -92649,7 +92632,9 @@ components:
x-enum-varnames: ["STOP", "SLOWDOWN"]
RumRetentionQuotaScopeType:
default: application
description: The type of scope the retention quota configuration applies to.
description: |-
The type of scope the retention quota configuration applies to.
`application` is the only supported scope type.
enum:
- application
example: application
Expand Down Expand Up @@ -187415,7 +187400,7 @@ paths:
$ref: "#/components/responses/TooManyRequestsResponse"
summary: Delete a RUM retention quota configuration
tags:
- RUM Retention Quota
- RUM Retention Quotas
x-permission:
operator: OR
permissions:
Expand Down Expand Up @@ -187478,7 +187463,7 @@ paths:
$ref: "#/components/responses/TooManyRequestsResponse"
summary: Get a RUM retention quota configuration
tags:
- RUM Retention Quota
- RUM Retention Quotas
x-permission:
operator: OR
permissions:
Expand Down Expand Up @@ -187564,7 +187549,7 @@ paths:
$ref: "#/components/responses/TooManyRequestsResponse"
summary: Create or update a RUM retention quota config
tags:
- RUM Retention Quota
- RUM Retention Quotas
x-codegen-request-body-name: body
x-permission:
operator: OR
Expand Down Expand Up @@ -218487,7 +218472,7 @@ tags:
name: RUM Remote Config
- description: |-
Manage RUM retention quota configurations for your organization's RUM applications.
name: RUM Retention Quota
name: RUM Retention Quotas
- description: View and manage Reference Tables in your organization.
name: Reference Tables
- description: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.RumRetentionQuotaApi;
import com.datadog.api.client.v2.api.RumRetentionQuotasApi;
import com.datadog.api.client.v2.model.RumRetentionQuotaScopeType;

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

try {
apiInstance.deleteRumQuotaConfig(
RumRetentionQuotaScopeType.APPLICATION, "ced16651-97b6-4e67-8590-8caec3af0695");
RumRetentionQuotaScopeType.APPLICATION, "cd73a516-a481-4af5-8352-9b577465c77b");
} catch (ApiException e) {
System.err.println("Exception when calling RumRetentionQuotaApi#deleteRumQuotaConfig");
System.err.println("Exception when calling RumRetentionQuotasApi#deleteRumQuotaConfig");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.RumRetentionQuotaApi;
import com.datadog.api.client.v2.api.RumRetentionQuotasApi;
import com.datadog.api.client.v2.model.RumRetentionQuotaConfigResponse;
import com.datadog.api.client.v2.model.RumRetentionQuotaScopeType;

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

try {
RumRetentionQuotaConfigResponse result =
apiInstance.getRumQuotaConfig(
RumRetentionQuotaScopeType.APPLICATION, "ced16651-97b6-4e67-8590-8caec3af0695");
RumRetentionQuotaScopeType.APPLICATION, "cd73a516-a481-4af5-8352-9b577465c77b");
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RumRetentionQuotaApi#getRumQuotaConfig");
System.err.println("Exception when calling RumRetentionQuotasApi#getRumQuotaConfig");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.RumRetentionQuotaApi;
import com.datadog.api.client.v2.model.RumRetentionQuotaAdaptiveConfig;
import com.datadog.api.client.v2.api.RumRetentionQuotasApi;
import com.datadog.api.client.v2.model.RumRetentionQuotaConfigResponse;
import com.datadog.api.client.v2.model.RumRetentionQuotaConfigType;
import com.datadog.api.client.v2.model.RumRetentionQuotaConfigUpdateAttributes;
Expand All @@ -18,15 +17,14 @@
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
RumRetentionQuotaApi apiInstance = new RumRetentionQuotaApi(defaultClient);
RumRetentionQuotasApi apiInstance = new RumRetentionQuotasApi(defaultClient);

RumRetentionQuotaConfigUpdateRequest body =
new RumRetentionQuotaConfigUpdateRequest()
.data(
new RumRetentionQuotaConfigUpdateData()
.attributes(
new RumRetentionQuotaConfigUpdateAttributes()
.adaptive(new RumRetentionQuotaAdaptiveConfig().maxRetentionRate(0.5))
.custom(
new RumRetentionQuotaCustomConfig()
.dailyResetTime("08:00")
Expand All @@ -35,16 +33,16 @@ public static void main(String[] args) {
.sessionLimit(1000000L)
.windowType(RumRetentionQuotaWindowType.DAILY))
.mode(RumRetentionQuotaMode.CUSTOM))
.id("ced16651-97b6-4e67-8590-8caec3af0695")
.id("cd73a516-a481-4af5-8352-9b577465c77b")
.type(RumRetentionQuotaConfigType.RUM_QUOTA_CONFIG));

try {
RumRetentionQuotaConfigResponse result =
apiInstance.upsertRumQuotaConfig(
RumRetentionQuotaScopeType.APPLICATION, "ced16651-97b6-4e67-8590-8caec3af0695", body);
RumRetentionQuotaScopeType.APPLICATION, "cd73a516-a481-4af5-8352-9b577465c77b", body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RumRetentionQuotaApi#upsertRumQuotaConfig");
System.err.println("Exception when calling RumRetentionQuotasApi#upsertRumQuotaConfig");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
Expand Down
Loading
Loading