Skip to content

Commit b509ebb

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 43c181c of spec repo
1 parent 4d3dc5e commit b509ebb

18 files changed

Lines changed: 2692 additions & 0 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 291 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72790,6 +72790,144 @@ components:
7279072790
type: string
7279172791
x-enum-varnames:
7279272792
- RULESET_STATUS
72793+
RumConfigAttributes:
72794+
description: Attributes of the RUM configuration.
72795+
properties:
72796+
disabled:
72797+
description: Whether the RUM configuration is disabled for the organization.
72798+
example: false
72799+
type: boolean
72800+
enforced_application_tags:
72801+
description: Whether application tags are enforced for the RUM applications in the organization.
72802+
example: true
72803+
type: boolean
72804+
enforced_application_tags_updated_at:
72805+
description: Timestamp of when the enforced application tags setting was last updated.
72806+
example: "2024-01-15T09:30:00.000Z"
72807+
format: date-time
72808+
type: string
72809+
enforced_application_tags_updated_by:
72810+
description: Handle of the user who last updated the enforced application tags setting.
72811+
example: "user@example.com"
72812+
type: string
72813+
ootb_metrics_version:
72814+
description: Version of the out-of-the-box metrics installed for the organization.
72815+
example: 5
72816+
format: int64
72817+
type: integer
72818+
ootb_metrics_version_installed_at:
72819+
description: Timestamp of when the out-of-the-box metrics version was installed.
72820+
example: "2024-01-15T09:30:00.000Z"
72821+
format: date-time
72822+
type: string
72823+
retention_filters_enabled:
72824+
description: Whether retention filters are enabled for the organization.
72825+
example: true
72826+
type: boolean
72827+
retention_filters_enabled_updated_at:
72828+
description: Timestamp of when the retention filters setting was last updated.
72829+
example: "2024-01-15T09:30:00.000Z"
72830+
format: date-time
72831+
type: string
72832+
retention_filters_enabled_updated_by:
72833+
description: Handle of the user or job who last updated the retention filters setting.
72834+
example: "contract-update-job"
72835+
type: string
72836+
required:
72837+
- enforced_application_tags
72838+
- retention_filters_enabled
72839+
type: object
72840+
RumConfigCreateAttributes:
72841+
description: Attributes of the RUM configuration to create.
72842+
properties:
72843+
enforced_application_tags:
72844+
description: Whether application tags are enforced for the RUM applications in the organization.
72845+
example: true
72846+
type: boolean
72847+
required:
72848+
- enforced_application_tags
72849+
type: object
72850+
RumConfigCreateData:
72851+
description: Object describing the RUM configuration to create.
72852+
properties:
72853+
attributes:
72854+
$ref: "#/components/schemas/RumConfigCreateAttributes"
72855+
type:
72856+
$ref: "#/components/schemas/RumConfigType"
72857+
required:
72858+
- type
72859+
- attributes
72860+
type: object
72861+
RumConfigCreateRequest:
72862+
description: Request body for creating the RUM configuration.
72863+
properties:
72864+
data:
72865+
$ref: "#/components/schemas/RumConfigCreateData"
72866+
required:
72867+
- data
72868+
type: object
72869+
RumConfigData:
72870+
description: The RUM configuration data.
72871+
properties:
72872+
attributes:
72873+
$ref: "#/components/schemas/RumConfigAttributes"
72874+
id:
72875+
description: The organization ID associated with the RUM configuration.
72876+
example: "1234"
72877+
type: string
72878+
type:
72879+
$ref: "#/components/schemas/RumConfigType"
72880+
required:
72881+
- id
72882+
- type
72883+
- attributes
72884+
type: object
72885+
RumConfigResponse:
72886+
description: The RUM configuration object.
72887+
properties:
72888+
data:
72889+
$ref: "#/components/schemas/RumConfigData"
72890+
required:
72891+
- data
72892+
type: object
72893+
RumConfigType:
72894+
default: rum_config
72895+
description: The type of the resource. The value should always be `rum_config`.
72896+
enum:
72897+
- rum_config
72898+
example: rum_config
72899+
type: string
72900+
x-enum-varnames:
72901+
- RUM_CONFIG
72902+
RumConfigUpdateAttributes:
72903+
description: Attributes of the RUM configuration to update.
72904+
properties:
72905+
enforced_application_tags:
72906+
description: Whether application tags are enforced for the RUM applications in the organization.
72907+
example: true
72908+
type: boolean
72909+
required:
72910+
- enforced_application_tags
72911+
type: object
72912+
RumConfigUpdateData:
72913+
description: Object describing the RUM configuration to update.
72914+
properties:
72915+
attributes:
72916+
$ref: "#/components/schemas/RumConfigUpdateAttributes"
72917+
type:
72918+
$ref: "#/components/schemas/RumConfigType"
72919+
required:
72920+
- type
72921+
- attributes
72922+
type: object
72923+
RumConfigUpdateRequest:
72924+
description: Request body for updating the RUM configuration.
72925+
properties:
72926+
data:
72927+
$ref: "#/components/schemas/RumConfigUpdateData"
72928+
required:
72929+
- data
72930+
type: object
7279372931
RumCrossProductSampling:
7279472932
description: The configuration for cross-product retention filters.
7279572933
properties:
@@ -150709,6 +150847,153 @@ paths:
150709150847
operator: OR
150710150848
permissions:
150711150849
- rum_apps_write
150850+
/api/v2/rum/config:
150851+
get:
150852+
description: Get the RUM configuration for your organization.
150853+
operationId: GetRumConfig
150854+
responses:
150855+
"200":
150856+
content:
150857+
application/json:
150858+
examples:
150859+
default:
150860+
value:
150861+
data:
150862+
attributes:
150863+
disabled: false
150864+
enforced_application_tags: true
150865+
enforced_application_tags_updated_at: "2024-01-15T09:30:00.000Z"
150866+
enforced_application_tags_updated_by: "user@example.com"
150867+
ootb_metrics_version: 5
150868+
ootb_metrics_version_installed_at: "2024-01-15T09:30:00.000Z"
150869+
retention_filters_enabled: true
150870+
retention_filters_enabled_updated_at: "2024-01-15T09:30:00.000Z"
150871+
retention_filters_enabled_updated_by: "contract-update-job"
150872+
id: "1234"
150873+
type: rum_config
150874+
schema:
150875+
$ref: "#/components/schemas/RumConfigResponse"
150876+
description: OK
150877+
"403":
150878+
$ref: "#/components/responses/NotAuthorizedResponse"
150879+
"429":
150880+
$ref: "#/components/responses/TooManyRequestsResponse"
150881+
summary: Get the RUM configuration
150882+
tags:
150883+
- Rum Config
150884+
x-unstable: |-
150885+
**Note**: This endpoint is in preview and is subject to change.
150886+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
150887+
patch:
150888+
description: |-
150889+
Update the RUM configuration for your organization.
150890+
Returns the RUM configuration object from the request body when the request is successful.
150891+
operationId: UpdateRumConfig
150892+
requestBody:
150893+
content:
150894+
application/json:
150895+
examples:
150896+
default:
150897+
value:
150898+
data:
150899+
attributes:
150900+
enforced_application_tags: false
150901+
type: rum_config
150902+
schema:
150903+
$ref: "#/components/schemas/RumConfigUpdateRequest"
150904+
description: New definition of the RUM configuration.
150905+
required: true
150906+
responses:
150907+
"200":
150908+
content:
150909+
application/json:
150910+
examples:
150911+
default:
150912+
value:
150913+
data:
150914+
attributes:
150915+
disabled: false
150916+
enforced_application_tags: false
150917+
enforced_application_tags_updated_at: "2024-01-15T09:30:00.000Z"
150918+
enforced_application_tags_updated_by: "user@example.com"
150919+
ootb_metrics_version: 5
150920+
ootb_metrics_version_installed_at: "2024-01-15T09:30:00.000Z"
150921+
retention_filters_enabled: true
150922+
retention_filters_enabled_updated_at: "2024-01-15T09:30:00.000Z"
150923+
retention_filters_enabled_updated_by: "contract-update-job"
150924+
id: "1234"
150925+
type: rum_config
150926+
schema:
150927+
$ref: "#/components/schemas/RumConfigResponse"
150928+
description: OK
150929+
"400":
150930+
$ref: "#/components/responses/BadRequestResponse"
150931+
"403":
150932+
$ref: "#/components/responses/NotAuthorizedResponse"
150933+
"429":
150934+
$ref: "#/components/responses/TooManyRequestsResponse"
150935+
summary: Update the RUM configuration
150936+
tags:
150937+
- Rum Config
150938+
x-codegen-request-body-name: body
150939+
x-unstable: |-
150940+
**Note**: This endpoint is in preview and is subject to change.
150941+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
150942+
post:
150943+
description: |-
150944+
Create the RUM configuration for your organization.
150945+
Returns the RUM configuration object from the request body when the request is successful.
150946+
operationId: CreateRumConfig
150947+
requestBody:
150948+
content:
150949+
application/json:
150950+
examples:
150951+
default:
150952+
value:
150953+
data:
150954+
attributes:
150955+
enforced_application_tags: true
150956+
type: rum_config
150957+
schema:
150958+
$ref: "#/components/schemas/RumConfigCreateRequest"
150959+
description: The definition of the RUM configuration to create.
150960+
required: true
150961+
responses:
150962+
"201":
150963+
content:
150964+
application/json:
150965+
examples:
150966+
default:
150967+
value:
150968+
data:
150969+
attributes:
150970+
disabled: false
150971+
enforced_application_tags: true
150972+
enforced_application_tags_updated_at: "2024-01-15T09:30:00.000Z"
150973+
enforced_application_tags_updated_by: "user@example.com"
150974+
ootb_metrics_version: 5
150975+
ootb_metrics_version_installed_at: "2024-01-15T09:30:00.000Z"
150976+
retention_filters_enabled: true
150977+
retention_filters_enabled_updated_at: "2024-01-15T09:30:00.000Z"
150978+
retention_filters_enabled_updated_by: "contract-update-job"
150979+
id: "1234"
150980+
type: rum_config
150981+
schema:
150982+
$ref: "#/components/schemas/RumConfigResponse"
150983+
description: Created
150984+
"400":
150985+
$ref: "#/components/responses/BadRequestResponse"
150986+
"403":
150987+
$ref: "#/components/responses/NotAuthorizedResponse"
150988+
"429":
150989+
$ref: "#/components/responses/TooManyRequestsResponse"
150990+
summary: Create the RUM configuration
150991+
tags:
150992+
- Rum Config
150993+
x-codegen-request-body-name: body
150994+
x-unstable: |-
150995+
**Note**: This endpoint is in preview and is subject to change.
150996+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
150712150997
/api/v2/rum/config/metrics:
150713150998
get:
150714150999
description: Get the list of configured rum-based metrics with their definitions.
@@ -175573,6 +175858,12 @@ tags:
175573175858
name: Roles
175574175859
- description: Auto-generated tag Rum Audience Management
175575175860
name: Rum Audience Management
175861+
- description: |-
175862+
Manage the [Real User Monitoring (RUM)](https://docs.datadoghq.com/real_user_monitoring/) configuration for your organization.
175863+
externalDocs:
175864+
description: Find out more at
175865+
url: https://docs.datadoghq.com/real_user_monitoring/
175866+
name: Rum Config
175576175867
- description: |-
175577175868
Manage configuration of [rum-based metrics](https://app.datadoghq.com/rum/generate-metrics) for your organization.
175578175869
externalDocs:
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// Create the RUM configuration returns "Created" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v2.api.RumConfigApi;
6+
import com.datadog.api.client.v2.model.RumConfigCreateAttributes;
7+
import com.datadog.api.client.v2.model.RumConfigCreateData;
8+
import com.datadog.api.client.v2.model.RumConfigCreateRequest;
9+
import com.datadog.api.client.v2.model.RumConfigResponse;
10+
import com.datadog.api.client.v2.model.RumConfigType;
11+
12+
public class Example {
13+
public static void main(String[] args) {
14+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
15+
defaultClient.setUnstableOperationEnabled("v2.createRumConfig", true);
16+
RumConfigApi apiInstance = new RumConfigApi(defaultClient);
17+
18+
RumConfigCreateRequest body =
19+
new RumConfigCreateRequest()
20+
.data(
21+
new RumConfigCreateData()
22+
.attributes(new RumConfigCreateAttributes().enforcedApplicationTags(true))
23+
.type(RumConfigType.RUM_CONFIG));
24+
25+
try {
26+
RumConfigResponse result = apiInstance.createRumConfig(body);
27+
System.out.println(result);
28+
} catch (ApiException e) {
29+
System.err.println("Exception when calling RumConfigApi#createRumConfig");
30+
System.err.println("Status code: " + e.getCode());
31+
System.err.println("Reason: " + e.getResponseBody());
32+
System.err.println("Response headers: " + e.getResponseHeaders());
33+
e.printStackTrace();
34+
}
35+
}
36+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Get the RUM configuration returns "OK" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v2.api.RumConfigApi;
6+
import com.datadog.api.client.v2.model.RumConfigResponse;
7+
8+
public class Example {
9+
public static void main(String[] args) {
10+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
11+
defaultClient.setUnstableOperationEnabled("v2.getRumConfig", true);
12+
RumConfigApi apiInstance = new RumConfigApi(defaultClient);
13+
14+
try {
15+
RumConfigResponse result = apiInstance.getRumConfig();
16+
System.out.println(result);
17+
} catch (ApiException e) {
18+
System.err.println("Exception when calling RumConfigApi#getRumConfig");
19+
System.err.println("Status code: " + e.getCode());
20+
System.err.println("Reason: " + e.getResponseBody());
21+
System.err.println("Response headers: " + e.getResponseHeaders());
22+
e.printStackTrace();
23+
}
24+
}
25+
}

0 commit comments

Comments
 (0)