Skip to content

Commit 2d01d0a

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit f80d965 of spec repo
1 parent 4a6253b commit 2d01d0a

22 files changed

Lines changed: 2201 additions & 0 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 291 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73036,6 +73036,144 @@ components:
7303673036
type: string
7303773037
x-enum-varnames:
7303873038
- RULESET_STATUS
73039+
RumConfigAttributes:
73040+
description: Attributes of the RUM configuration.
73041+
properties:
73042+
disabled:
73043+
description: Whether the RUM configuration is disabled for the organization.
73044+
example: false
73045+
type: boolean
73046+
enforced_application_tags:
73047+
description: Whether application tags are enforced for the RUM applications in the organization.
73048+
example: true
73049+
type: boolean
73050+
enforced_application_tags_updated_at:
73051+
description: Timestamp of when the enforced application tags setting was last updated.
73052+
example: "2024-01-15T09:30:00.000Z"
73053+
format: date-time
73054+
type: string
73055+
enforced_application_tags_updated_by:
73056+
description: Handle of the user who last updated the enforced application tags setting.
73057+
example: "user@example.com"
73058+
type: string
73059+
ootb_metrics_version:
73060+
description: Version of the out-of-the-box metrics installed for the organization.
73061+
example: 5
73062+
format: int64
73063+
type: integer
73064+
ootb_metrics_version_installed_at:
73065+
description: Timestamp of when the out-of-the-box metrics version was installed.
73066+
example: "2024-01-15T09:30:00.000Z"
73067+
format: date-time
73068+
type: string
73069+
retention_filters_enabled:
73070+
description: Whether retention filters are enabled for the organization.
73071+
example: true
73072+
type: boolean
73073+
retention_filters_enabled_updated_at:
73074+
description: Timestamp of when the retention filters setting was last updated.
73075+
example: "2024-01-15T09:30:00.000Z"
73076+
format: date-time
73077+
type: string
73078+
retention_filters_enabled_updated_by:
73079+
description: Handle of the user or job who last updated the retention filters setting.
73080+
example: "contract-update-job"
73081+
type: string
73082+
required:
73083+
- enforced_application_tags
73084+
- retention_filters_enabled
73085+
type: object
73086+
RumConfigCreateAttributes:
73087+
description: Attributes of the RUM configuration to create.
73088+
properties:
73089+
enforced_application_tags:
73090+
description: Whether application tags are enforced for the RUM applications in the organization.
73091+
example: true
73092+
type: boolean
73093+
required:
73094+
- enforced_application_tags
73095+
type: object
73096+
RumConfigCreateData:
73097+
description: Object describing the RUM configuration to create.
73098+
properties:
73099+
attributes:
73100+
$ref: "#/components/schemas/RumConfigCreateAttributes"
73101+
type:
73102+
$ref: "#/components/schemas/RumConfigType"
73103+
required:
73104+
- type
73105+
- attributes
73106+
type: object
73107+
RumConfigCreateRequest:
73108+
description: Request body for creating the RUM configuration.
73109+
properties:
73110+
data:
73111+
$ref: "#/components/schemas/RumConfigCreateData"
73112+
required:
73113+
- data
73114+
type: object
73115+
RumConfigData:
73116+
description: The RUM configuration data.
73117+
properties:
73118+
attributes:
73119+
$ref: "#/components/schemas/RumConfigAttributes"
73120+
id:
73121+
description: The organization ID associated with the RUM configuration.
73122+
example: "1234"
73123+
type: string
73124+
type:
73125+
$ref: "#/components/schemas/RumConfigType"
73126+
required:
73127+
- id
73128+
- type
73129+
- attributes
73130+
type: object
73131+
RumConfigResponse:
73132+
description: The RUM configuration object.
73133+
properties:
73134+
data:
73135+
$ref: "#/components/schemas/RumConfigData"
73136+
required:
73137+
- data
73138+
type: object
73139+
RumConfigType:
73140+
default: rum_config
73141+
description: The type of the resource. The value should always be `rum_config`.
73142+
enum:
73143+
- rum_config
73144+
example: rum_config
73145+
type: string
73146+
x-enum-varnames:
73147+
- RUM_CONFIG
73148+
RumConfigUpdateAttributes:
73149+
description: Attributes of the RUM configuration to update.
73150+
properties:
73151+
enforced_application_tags:
73152+
description: Whether application tags are enforced for the RUM applications in the organization.
73153+
example: true
73154+
type: boolean
73155+
required:
73156+
- enforced_application_tags
73157+
type: object
73158+
RumConfigUpdateData:
73159+
description: Object describing the RUM configuration to update.
73160+
properties:
73161+
attributes:
73162+
$ref: "#/components/schemas/RumConfigUpdateAttributes"
73163+
type:
73164+
$ref: "#/components/schemas/RumConfigType"
73165+
required:
73166+
- type
73167+
- attributes
73168+
type: object
73169+
RumConfigUpdateRequest:
73170+
description: Request body for updating the RUM configuration.
73171+
properties:
73172+
data:
73173+
$ref: "#/components/schemas/RumConfigUpdateData"
73174+
required:
73175+
- data
73176+
type: object
7303973177
RumCrossProductSampling:
7304073178
description: The configuration for cross-product retention filters.
7304173179
properties:
@@ -151423,6 +151561,153 @@ paths:
151423151561
operator: OR
151424151562
permissions:
151425151563
- rum_apps_write
151564+
/api/v2/rum/config:
151565+
get:
151566+
description: Get the RUM configuration for your organization.
151567+
operationId: GetRumConfig
151568+
responses:
151569+
"200":
151570+
content:
151571+
application/json:
151572+
examples:
151573+
default:
151574+
value:
151575+
data:
151576+
attributes:
151577+
disabled: false
151578+
enforced_application_tags: true
151579+
enforced_application_tags_updated_at: "2024-01-15T09:30:00.000Z"
151580+
enforced_application_tags_updated_by: "user@example.com"
151581+
ootb_metrics_version: 5
151582+
ootb_metrics_version_installed_at: "2024-01-15T09:30:00.000Z"
151583+
retention_filters_enabled: true
151584+
retention_filters_enabled_updated_at: "2024-01-15T09:30:00.000Z"
151585+
retention_filters_enabled_updated_by: "contract-update-job"
151586+
id: "1234"
151587+
type: rum_config
151588+
schema:
151589+
$ref: "#/components/schemas/RumConfigResponse"
151590+
description: OK
151591+
"403":
151592+
$ref: "#/components/responses/NotAuthorizedResponse"
151593+
"429":
151594+
$ref: "#/components/responses/TooManyRequestsResponse"
151595+
summary: Get the RUM configuration
151596+
tags:
151597+
- Rum Config
151598+
x-unstable: |-
151599+
**Note**: This endpoint is in preview and is subject to change.
151600+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
151601+
patch:
151602+
description: |-
151603+
Update the RUM configuration for your organization.
151604+
Returns the RUM configuration object from the request body when the request is successful.
151605+
operationId: UpdateRumConfig
151606+
requestBody:
151607+
content:
151608+
application/json:
151609+
examples:
151610+
default:
151611+
value:
151612+
data:
151613+
attributes:
151614+
enforced_application_tags: false
151615+
type: rum_config
151616+
schema:
151617+
$ref: "#/components/schemas/RumConfigUpdateRequest"
151618+
description: New definition of the RUM configuration.
151619+
required: true
151620+
responses:
151621+
"200":
151622+
content:
151623+
application/json:
151624+
examples:
151625+
default:
151626+
value:
151627+
data:
151628+
attributes:
151629+
disabled: false
151630+
enforced_application_tags: false
151631+
enforced_application_tags_updated_at: "2024-01-15T09:30:00.000Z"
151632+
enforced_application_tags_updated_by: "user@example.com"
151633+
ootb_metrics_version: 5
151634+
ootb_metrics_version_installed_at: "2024-01-15T09:30:00.000Z"
151635+
retention_filters_enabled: true
151636+
retention_filters_enabled_updated_at: "2024-01-15T09:30:00.000Z"
151637+
retention_filters_enabled_updated_by: "contract-update-job"
151638+
id: "1234"
151639+
type: rum_config
151640+
schema:
151641+
$ref: "#/components/schemas/RumConfigResponse"
151642+
description: OK
151643+
"400":
151644+
$ref: "#/components/responses/BadRequestResponse"
151645+
"403":
151646+
$ref: "#/components/responses/NotAuthorizedResponse"
151647+
"429":
151648+
$ref: "#/components/responses/TooManyRequestsResponse"
151649+
summary: Update the RUM configuration
151650+
tags:
151651+
- Rum Config
151652+
x-codegen-request-body-name: body
151653+
x-unstable: |-
151654+
**Note**: This endpoint is in preview and is subject to change.
151655+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
151656+
post:
151657+
description: |-
151658+
Create the RUM configuration for your organization.
151659+
Returns the RUM configuration object from the request body when the request is successful.
151660+
operationId: CreateRumConfig
151661+
requestBody:
151662+
content:
151663+
application/json:
151664+
examples:
151665+
default:
151666+
value:
151667+
data:
151668+
attributes:
151669+
enforced_application_tags: true
151670+
type: rum_config
151671+
schema:
151672+
$ref: "#/components/schemas/RumConfigCreateRequest"
151673+
description: The definition of the RUM configuration to create.
151674+
required: true
151675+
responses:
151676+
"201":
151677+
content:
151678+
application/json:
151679+
examples:
151680+
default:
151681+
value:
151682+
data:
151683+
attributes:
151684+
disabled: false
151685+
enforced_application_tags: true
151686+
enforced_application_tags_updated_at: "2024-01-15T09:30:00.000Z"
151687+
enforced_application_tags_updated_by: "user@example.com"
151688+
ootb_metrics_version: 5
151689+
ootb_metrics_version_installed_at: "2024-01-15T09:30:00.000Z"
151690+
retention_filters_enabled: true
151691+
retention_filters_enabled_updated_at: "2024-01-15T09:30:00.000Z"
151692+
retention_filters_enabled_updated_by: "contract-update-job"
151693+
id: "1234"
151694+
type: rum_config
151695+
schema:
151696+
$ref: "#/components/schemas/RumConfigResponse"
151697+
description: Created
151698+
"400":
151699+
$ref: "#/components/responses/BadRequestResponse"
151700+
"403":
151701+
$ref: "#/components/responses/NotAuthorizedResponse"
151702+
"429":
151703+
$ref: "#/components/responses/TooManyRequestsResponse"
151704+
summary: Create the RUM configuration
151705+
tags:
151706+
- Rum Config
151707+
x-codegen-request-body-name: body
151708+
x-unstable: |-
151709+
**Note**: This endpoint is in preview and is subject to change.
151710+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
151426151711
/api/v2/rum/config/metrics:
151427151712
get:
151428151713
description: Get the list of configured RUM-based metrics with their definitions.
@@ -176491,6 +176776,12 @@ tags:
176491176776
name: Roles
176492176777
- description: Auto-generated tag Rum Audience Management
176493176778
name: Rum Audience Management
176779+
- description: |-
176780+
Manage the [Real User Monitoring (RUM)](https://docs.datadoghq.com/real_user_monitoring/) configuration for your organization.
176781+
externalDocs:
176782+
description: Find out more at
176783+
url: https://docs.datadoghq.com/real_user_monitoring/
176784+
name: Rum Config
176494176785
- description: |-
176495176786
Manage configuration of [RUM-based metrics](https://app.datadoghq.com/rum/generate-metrics) for your organization.
176496176787
externalDocs:
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Create the RUM configuration returns "Created" response
2+
use datadog_api_client::datadog;
3+
use datadog_api_client::datadogV2::api_rum_config::RumConfigAPI;
4+
use datadog_api_client::datadogV2::model::RumConfigCreateAttributes;
5+
use datadog_api_client::datadogV2::model::RumConfigCreateData;
6+
use datadog_api_client::datadogV2::model::RumConfigCreateRequest;
7+
use datadog_api_client::datadogV2::model::RumConfigType;
8+
9+
#[tokio::main]
10+
async fn main() {
11+
let body = RumConfigCreateRequest::new(RumConfigCreateData::new(
12+
RumConfigCreateAttributes::new(true),
13+
RumConfigType::RUM_CONFIG,
14+
));
15+
let mut configuration = datadog::Configuration::new();
16+
configuration.set_unstable_operation_enabled("v2.CreateRumConfig", true);
17+
let api = RumConfigAPI::with_config(configuration);
18+
let resp = api.create_rum_config(body).await;
19+
if let Ok(value) = resp {
20+
println!("{:#?}", value);
21+
} else {
22+
println!("{:#?}", resp.unwrap_err());
23+
}
24+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Get the RUM configuration returns "OK" response
2+
use datadog_api_client::datadog;
3+
use datadog_api_client::datadogV2::api_rum_config::RumConfigAPI;
4+
5+
#[tokio::main]
6+
async fn main() {
7+
let mut configuration = datadog::Configuration::new();
8+
configuration.set_unstable_operation_enabled("v2.GetRumConfig", true);
9+
let api = RumConfigAPI::with_config(configuration);
10+
let resp = api.get_rum_config().await;
11+
if let Ok(value) = resp {
12+
println!("{:#?}", value);
13+
} else {
14+
println!("{:#?}", resp.unwrap_err());
15+
}
16+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Update the RUM configuration returns "OK" response
2+
use datadog_api_client::datadog;
3+
use datadog_api_client::datadogV2::api_rum_config::RumConfigAPI;
4+
use datadog_api_client::datadogV2::model::RumConfigType;
5+
use datadog_api_client::datadogV2::model::RumConfigUpdateAttributes;
6+
use datadog_api_client::datadogV2::model::RumConfigUpdateData;
7+
use datadog_api_client::datadogV2::model::RumConfigUpdateRequest;
8+
9+
#[tokio::main]
10+
async fn main() {
11+
let body = RumConfigUpdateRequest::new(RumConfigUpdateData::new(
12+
RumConfigUpdateAttributes::new(true),
13+
RumConfigType::RUM_CONFIG,
14+
));
15+
let mut configuration = datadog::Configuration::new();
16+
configuration.set_unstable_operation_enabled("v2.UpdateRumConfig", true);
17+
let api = RumConfigAPI::with_config(configuration);
18+
let resp = api.update_rum_config(body).await;
19+
if let Ok(value) = resp {
20+
println!("{:#?}", value);
21+
} else {
22+
println!("{:#?}", resp.unwrap_err());
23+
}
24+
}

src/datadog/configuration.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,9 @@ impl Default for Configuration {
590590
("v2.update_connection".to_owned(), false),
591591
("v2.get_pruned_trace_by_id".to_owned(), false),
592592
("v2.get_trace_by_id".to_owned(), false),
593+
("v2.create_rum_config".to_owned(), false),
594+
("v2.get_rum_config".to_owned(), false),
595+
("v2.update_rum_config".to_owned(), false),
593596
("v2.query_aggregated_long_tasks".to_owned(), false),
594597
("v2.query_aggregated_signals_problems".to_owned(), false),
595598
("v2.query_aggregated_waterfall".to_owned(), false),

0 commit comments

Comments
 (0)