Skip to content

Commit 12ccd07

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b1bc53c of spec repo
1 parent 996c71a commit 12ccd07

20 files changed

Lines changed: 2735 additions & 48 deletions

‎.generator/schemas/v2/openapi.yaml‎

Lines changed: 303 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31063,9 +31063,17 @@ components:
3106331063
type: string
3106431064
values:
3106531065
description: |-
31066-
Column values in row order. The element type matches the column's `type`;
31067-
for example a `VARCHAR` column carries strings, a `TIMESTAMP` column carries
31068-
Unix-millisecond integers. `null` is allowed for missing values.
31066+
Column values in row order, one entry per result row. The element type
31067+
follows the column's `type`. The following serialization rules should be
31068+
taken into account:
31069+
31070+
- `BIGINT` values are encoded as JSON numbers in the signed 64-bit integer range.
31071+
- `DECIMAL` values are encoded as JSON numbers with 64-bit double precision.
31072+
- `TIMESTAMP` and `DATE` values are encoded as Unix-millisecond integers; a
31073+
`DATE` resolves to midnight UTC.
31074+
- `JSON` values are returned as a JSON-encoded string.
31075+
31076+
`null` is allowed for any column type where a value is missing.
3106931077
example:
3107031078
- web-store
3107131079
- checkout
@@ -84510,6 +84518,144 @@ components:
8451084518
type: string
8451184519
x-enum-varnames:
8451284520
- RULESET_STATUS
84521+
RumConfigAttributes:
84522+
description: Attributes of the RUM configuration.
84523+
properties:
84524+
disabled:
84525+
description: Whether the RUM configuration is disabled for the organization.
84526+
example: false
84527+
type: boolean
84528+
enforced_application_tags:
84529+
description: Whether application tags are enforced for the RUM applications in the organization.
84530+
example: true
84531+
type: boolean
84532+
enforced_application_tags_updated_at:
84533+
description: Timestamp of when the enforced application tags setting was last updated.
84534+
example: "2024-01-15T09:30:00.000Z"
84535+
format: date-time
84536+
type: string
84537+
enforced_application_tags_updated_by:
84538+
description: Handle of the user who last updated the enforced application tags setting.
84539+
example: "user@example.com"
84540+
type: string
84541+
ootb_metrics_version:
84542+
description: Version of the out-of-the-box metrics installed for the organization.
84543+
example: 5
84544+
format: int64
84545+
type: integer
84546+
ootb_metrics_version_installed_at:
84547+
description: Timestamp of when the out-of-the-box metrics version was installed.
84548+
example: "2024-01-15T09:30:00.000Z"
84549+
format: date-time
84550+
type: string
84551+
retention_filters_enabled:
84552+
description: Whether retention filters are enabled for the organization.
84553+
example: true
84554+
type: boolean
84555+
retention_filters_enabled_updated_at:
84556+
description: Timestamp of when the retention filters setting was last updated.
84557+
example: "2024-01-15T09:30:00.000Z"
84558+
format: date-time
84559+
type: string
84560+
retention_filters_enabled_updated_by:
84561+
description: Handle of the user or job who last updated the retention filters setting.
84562+
example: "contract-update-job"
84563+
type: string
84564+
required:
84565+
- enforced_application_tags
84566+
- retention_filters_enabled
84567+
type: object
84568+
RumConfigCreateAttributes:
84569+
description: Attributes of the RUM configuration to create.
84570+
properties:
84571+
enforced_application_tags:
84572+
description: Whether application tags are enforced for the RUM applications in the organization.
84573+
example: true
84574+
type: boolean
84575+
required:
84576+
- enforced_application_tags
84577+
type: object
84578+
RumConfigCreateData:
84579+
description: Object describing the RUM configuration to create.
84580+
properties:
84581+
attributes:
84582+
$ref: "#/components/schemas/RumConfigCreateAttributes"
84583+
type:
84584+
$ref: "#/components/schemas/RumConfigType"
84585+
required:
84586+
- type
84587+
- attributes
84588+
type: object
84589+
RumConfigCreateRequest:
84590+
description: Request body for creating the RUM configuration.
84591+
properties:
84592+
data:
84593+
$ref: "#/components/schemas/RumConfigCreateData"
84594+
required:
84595+
- data
84596+
type: object
84597+
RumConfigData:
84598+
description: The RUM configuration data.
84599+
properties:
84600+
attributes:
84601+
$ref: "#/components/schemas/RumConfigAttributes"
84602+
id:
84603+
description: The organization ID associated with the RUM configuration.
84604+
example: "1234"
84605+
type: string
84606+
type:
84607+
$ref: "#/components/schemas/RumConfigType"
84608+
required:
84609+
- id
84610+
- type
84611+
- attributes
84612+
type: object
84613+
RumConfigResponse:
84614+
description: The RUM configuration object.
84615+
properties:
84616+
data:
84617+
$ref: "#/components/schemas/RumConfigData"
84618+
required:
84619+
- data
84620+
type: object
84621+
RumConfigType:
84622+
default: rum_config
84623+
description: The type of the resource. The value should always be `rum_config`.
84624+
enum:
84625+
- rum_config
84626+
example: rum_config
84627+
type: string
84628+
x-enum-varnames:
84629+
- RUM_CONFIG
84630+
RumConfigUpdateAttributes:
84631+
description: Attributes of the RUM configuration to update.
84632+
properties:
84633+
enforced_application_tags:
84634+
description: Whether application tags are enforced for the RUM applications in the organization.
84635+
example: true
84636+
type: boolean
84637+
required:
84638+
- enforced_application_tags
84639+
type: object
84640+
RumConfigUpdateData:
84641+
description: Object describing the RUM configuration to update.
84642+
properties:
84643+
attributes:
84644+
$ref: "#/components/schemas/RumConfigUpdateAttributes"
84645+
type:
84646+
$ref: "#/components/schemas/RumConfigType"
84647+
required:
84648+
- type
84649+
- attributes
84650+
type: object
84651+
RumConfigUpdateRequest:
84652+
description: Request body for updating the RUM configuration.
84653+
properties:
84654+
data:
84655+
$ref: "#/components/schemas/RumConfigUpdateData"
84656+
required:
84657+
- data
84658+
type: object
8451384659
RumCrossProductSampling:
8451484660
description: The configuration for cross-product retention filters.
8451584661
properties:
@@ -135602,9 +135748,6 @@ paths:
135602135748
summary: Execute a tabular DDSQL query
135603135749
tags:
135604135750
- DDSQL
135605-
x-unstable: |-
135606-
**Note**: This endpoint is in preview and is subject to change.
135607-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
135608135751
/api/v2/ddsql/query/tabular/fetch:
135609135752
post:
135610135753
description: |-
@@ -135713,9 +135856,6 @@ paths:
135713135856
summary: Fetch the result of a DDSQL query
135714135857
tags:
135715135858
- DDSQL
135716-
x-unstable: |-
135717-
**Note**: This endpoint is in preview and is subject to change.
135718-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
135719135859
/api/v2/deletion/data/{product}:
135720135860
post:
135721135861
description: Creates a data deletion request by providing a query and a timeframe targeting the proper data.
@@ -175342,6 +175482,153 @@ paths:
175342175482
operator: OR
175343175483
permissions:
175344175484
- rum_apps_write
175485+
/api/v2/rum/config:
175486+
get:
175487+
description: Get the RUM configuration for your organization.
175488+
operationId: GetRumConfig
175489+
responses:
175490+
"200":
175491+
content:
175492+
application/json:
175493+
examples:
175494+
default:
175495+
value:
175496+
data:
175497+
attributes:
175498+
disabled: false
175499+
enforced_application_tags: true
175500+
enforced_application_tags_updated_at: "2024-01-15T09:30:00.000Z"
175501+
enforced_application_tags_updated_by: "user@example.com"
175502+
ootb_metrics_version: 5
175503+
ootb_metrics_version_installed_at: "2024-01-15T09:30:00.000Z"
175504+
retention_filters_enabled: true
175505+
retention_filters_enabled_updated_at: "2024-01-15T09:30:00.000Z"
175506+
retention_filters_enabled_updated_by: "contract-update-job"
175507+
id: "1234"
175508+
type: rum_config
175509+
schema:
175510+
$ref: "#/components/schemas/RumConfigResponse"
175511+
description: OK
175512+
"403":
175513+
$ref: "#/components/responses/NotAuthorizedResponse"
175514+
"429":
175515+
$ref: "#/components/responses/TooManyRequestsResponse"
175516+
summary: Get the RUM configuration
175517+
tags:
175518+
- RUM Config
175519+
x-unstable: |-
175520+
**Note**: This endpoint is in preview and is subject to change.
175521+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
175522+
patch:
175523+
description: |-
175524+
Update the RUM configuration for your organization.
175525+
Returns the RUM configuration object from the request body when the request is successful.
175526+
operationId: UpdateRumConfig
175527+
requestBody:
175528+
content:
175529+
application/json:
175530+
examples:
175531+
default:
175532+
value:
175533+
data:
175534+
attributes:
175535+
enforced_application_tags: false
175536+
type: rum_config
175537+
schema:
175538+
$ref: "#/components/schemas/RumConfigUpdateRequest"
175539+
description: New definition of the RUM configuration.
175540+
required: true
175541+
responses:
175542+
"200":
175543+
content:
175544+
application/json:
175545+
examples:
175546+
default:
175547+
value:
175548+
data:
175549+
attributes:
175550+
disabled: false
175551+
enforced_application_tags: false
175552+
enforced_application_tags_updated_at: "2024-01-15T09:30:00.000Z"
175553+
enforced_application_tags_updated_by: "user@example.com"
175554+
ootb_metrics_version: 5
175555+
ootb_metrics_version_installed_at: "2024-01-15T09:30:00.000Z"
175556+
retention_filters_enabled: true
175557+
retention_filters_enabled_updated_at: "2024-01-15T09:30:00.000Z"
175558+
retention_filters_enabled_updated_by: "contract-update-job"
175559+
id: "1234"
175560+
type: rum_config
175561+
schema:
175562+
$ref: "#/components/schemas/RumConfigResponse"
175563+
description: OK
175564+
"400":
175565+
$ref: "#/components/responses/BadRequestResponse"
175566+
"403":
175567+
$ref: "#/components/responses/NotAuthorizedResponse"
175568+
"429":
175569+
$ref: "#/components/responses/TooManyRequestsResponse"
175570+
summary: Update the RUM configuration
175571+
tags:
175572+
- RUM Config
175573+
x-codegen-request-body-name: body
175574+
x-unstable: |-
175575+
**Note**: This endpoint is in preview and is subject to change.
175576+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
175577+
post:
175578+
description: |-
175579+
Create the RUM configuration for your organization.
175580+
Returns the RUM configuration object from the request body when the request is successful.
175581+
operationId: CreateRumConfig
175582+
requestBody:
175583+
content:
175584+
application/json:
175585+
examples:
175586+
default:
175587+
value:
175588+
data:
175589+
attributes:
175590+
enforced_application_tags: true
175591+
type: rum_config
175592+
schema:
175593+
$ref: "#/components/schemas/RumConfigCreateRequest"
175594+
description: The definition of the RUM configuration to create.
175595+
required: true
175596+
responses:
175597+
"201":
175598+
content:
175599+
application/json:
175600+
examples:
175601+
default:
175602+
value:
175603+
data:
175604+
attributes:
175605+
disabled: false
175606+
enforced_application_tags: true
175607+
enforced_application_tags_updated_at: "2024-01-15T09:30:00.000Z"
175608+
enforced_application_tags_updated_by: "user@example.com"
175609+
ootb_metrics_version: 5
175610+
ootb_metrics_version_installed_at: "2024-01-15T09:30:00.000Z"
175611+
retention_filters_enabled: true
175612+
retention_filters_enabled_updated_at: "2024-01-15T09:30:00.000Z"
175613+
retention_filters_enabled_updated_by: "contract-update-job"
175614+
id: "1234"
175615+
type: rum_config
175616+
schema:
175617+
$ref: "#/components/schemas/RumConfigResponse"
175618+
description: Created
175619+
"400":
175620+
$ref: "#/components/responses/BadRequestResponse"
175621+
"403":
175622+
$ref: "#/components/responses/NotAuthorizedResponse"
175623+
"429":
175624+
$ref: "#/components/responses/TooManyRequestsResponse"
175625+
summary: Create the RUM configuration
175626+
tags:
175627+
- RUM Config
175628+
x-codegen-request-body-name: body
175629+
x-unstable: |-
175630+
**Note**: This endpoint is in preview and is subject to change.
175631+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
175345175632
/api/v2/rum/config/metrics:
175346175633
get:
175347175634
description: Get the list of configured RUM-based metrics with their definitions.
@@ -204785,6 +205072,13 @@ tags:
204785205072
- description: |-
204786205073
Manage your Real User Monitoring (RUM) applications, and search or aggregate your RUM events over HTTP. See the [RUM & Session Replay page](https://docs.datadoghq.com/real_user_monitoring/) for more information
204787205074
name: RUM
205075+
- description: |-
205076+
Manage the [Real User Monitoring (RUM)](https://docs.datadoghq.com/real_user_monitoring/)
205077+
configuration for your organization.
205078+
externalDocs:
205079+
description: Find out more at
205080+
url: https://docs.datadoghq.com/real_user_monitoring/
205081+
name: RUM Config
204788205082
- description: |-
204789205083
Get insights into the performance of your Real User Monitoring (RUM) applications over HTTP. See the [RUM & Session Replay page](https://docs.datadoghq.com/real_user_monitoring/) for more information
204790205084
name: RUM Insights
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+
}

0 commit comments

Comments
 (0)