From e49a2548d4d2c8ffd7020b6774d08db0460dd3f8 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 27 Oct 2026 13:53:27 +0000 Subject: [PATCH] Regenerate client from commit 7f06b6d of spec repo --- .generator/schemas/v2/openapi.yaml | 151 +++++++++++++++++- .../v2/model/rum_application_attributes.py | 93 ++++++++++- .../model/rum_application_list_attributes.py | 112 ++++++++++++- .../v2/model/rum_bucket_group_by_value.py | 34 ++++ .../v2/model/rum_bucket_response.py | 8 +- src/datadog_api_client/v2/models/__init__.py | 2 + .../test-server-data/v2/rum.json | 12 +- 7 files changed, 395 insertions(+), 17 deletions(-) create mode 100644 src/datadog_api_client/v2/model/rum_bucket_group_by_value.py diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 22c0fffedb..b5e0250b81 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -102167,6 +102167,15 @@ components: format: int32 maximum: 2147483647 type: integer + apm_rum_flat_sampling_replay_enabled: + description: Indicates if flat sampling of Session Replay for APM-correlated RUM sessions is enabled. + example: false + type: boolean + apm_rum_flat_sampling_replay_sample_rate: + description: Sample rate (0-100) of Session Replay for APM-correlated RUM sessions when flat sampling is enabled. + example: 0 + format: double + type: number application_id: description: ID of the RUM application. example: abcd1234-0000-0000-abcd-1234abcd5678 @@ -102184,6 +102193,27 @@ components: description: Handle of the creator user. example: john.doe type: string + disabled_at: + description: Timestamp in ms of the date the RUM application was disabled. Only present if the application was disabled. + example: 1659479836169 + format: int64 + type: integer + disabled_by_handle: + description: Handle of the user who disabled the RUM application. Only present if the application was disabled. + example: jane.doe + type: string + error_tracking_exclusion_filter_enabled: + description: Indicates if Error Tracking exclusion filters are enabled for the application. + example: false + type: boolean + external_feeds: + description: Non-native ingestion paths the RUM application sends its data through. `otel` means the application sends RUM data through OpenTelemetry instead of the Datadog RUM SDK. + example: + - otel + items: + description: External feed name. + type: string + type: array hash: description: Hash of the RUM application. Optional. type: string @@ -102195,18 +102225,44 @@ components: description: Name of the RUM application. example: my_rum_application type: string + ootb_metrics_installed: + description: Indicates if the out-of-the-box RUM metrics are installed for the application. + example: true + type: boolean org_id: description: Org ID of the RUM application. example: 999 format: int32 maximum: 2147483647 type: integer + product_analytics_preview_disabled: + description: Indicates that the Product Analytics preview is disabled for the application. Only present (and `true`) when the Product Analytics retention state is not preview. + example: true + type: boolean + product_analytics_replay_sample_rate: + description: Sample rate (0-100) of Session Replay for Product Analytics sessions. + example: 0 + format: int32 + maximum: 2147483647 + type: integer product_scales: $ref: "#/components/schemas/RUMProductScales" remote_config_id: description: ID of the RUM SDK remote configuration for the application, if one exists. example: abc12345-1234-5678-abcd-ef1234567890 type: string + short_name: + description: Short name of the RUM application. + example: my_rum_application + type: string + tags: + description: List of tags associated with the RUM application. + example: + - "team:rum" + items: + description: Tag associated with the RUM application. + type: string + type: array type: description: "Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`, `kotlin-multiplatform`." example: browser @@ -102303,6 +102359,21 @@ components: RUMApplicationListAttributes: description: RUM application list attributes. properties: + api_key_id: + description: ID of the API key associated with the application. + example: 123456789 + format: int32 + maximum: 2147483647 + type: integer + apm_rum_flat_sampling_replay_enabled: + description: Indicates if flat sampling of Session Replay for APM-correlated RUM sessions is enabled. + example: false + type: boolean + apm_rum_flat_sampling_replay_sample_rate: + description: Sample rate (0-100) of Session Replay for APM-correlated RUM sessions when flat sampling is enabled. + example: 0 + format: double + type: number application_id: description: ID of the RUM application. example: abcd1234-0000-0000-abcd-1234abcd5678 @@ -102316,6 +102387,27 @@ components: description: Handle of the creator user. example: john.doe type: string + disabled_at: + description: Timestamp in ms of the date the RUM application was disabled. Only present if the application was disabled. + example: 1659479836169 + format: int64 + type: integer + disabled_by_handle: + description: Handle of the user who disabled the RUM application. Only present if the application was disabled. + example: jane.doe + type: string + error_tracking_exclusion_filter_enabled: + description: Indicates if Error Tracking exclusion filters are enabled for the application. + example: false + type: boolean + external_feeds: + description: Non-native ingestion paths the RUM application sends its data through. `otel` means the application sends RUM data through OpenTelemetry instead of the Datadog RUM SDK. + example: + - otel + items: + description: External feed name. + type: string + type: array hash: description: Hash of the RUM application. Optional. type: string @@ -102327,14 +102419,44 @@ components: description: Name of the RUM application. example: my_rum_application type: string + ootb_metrics_installed: + description: Indicates if the out-of-the-box RUM metrics are installed for the application. + example: true + type: boolean org_id: description: Org ID of the RUM application. example: 999 format: int32 maximum: 2147483647 type: integer + product_analytics_preview_disabled: + description: Indicates that the Product Analytics preview is disabled for the application. Only present (and `true`) when the Product Analytics retention state is not preview. + example: true + type: boolean + product_analytics_replay_sample_rate: + description: Sample rate (0-100) of Session Replay for Product Analytics sessions. + example: 0 + format: int32 + maximum: 2147483647 + type: integer product_scales: $ref: "#/components/schemas/RUMProductScales" + remote_config_id: + description: ID of the RUM SDK remote configuration for the application, if one exists. + example: abc12345-1234-5678-abcd-ef1234567890 + type: string + short_name: + description: Short name of the RUM application. + example: my_rum_application + type: string + tags: + description: List of tags associated with the RUM application. + example: + - "team:rum" + items: + description: Tag associated with the RUM application. + type: string + type: array type: description: Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`, `kotlin-multiplatform`. example: browser @@ -102439,15 +102561,20 @@ components: $ref: "#/components/schemas/RUMApplicationList" type: array type: object + RUMBucketGroupByValue: + description: The value of a group-by facet for this bucket. A string for string facets, a number for numeric facets and histograms. + oneOf: + - type: string + - format: double + type: number RUMBucketResponse: description: Bucket values. properties: by: additionalProperties: - description: The values for each group-by. - type: string + $ref: "#/components/schemas/RUMBucketGroupByValue" description: The key-value pairs for each group-by. - example: {"@session.type": "user", "@type": "view"} + example: {"@session.type": "user", "@view.time_spent": 1000000000} type: object computes: additionalProperties: @@ -220596,7 +220723,11 @@ paths: "204": description: No Content "404": - $ref: "#/components/responses/NotFoundResponse" + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Not Found "429": $ref: "#/components/responses/TooManyRequestsResponse" summary: Delete a RUM application @@ -220639,7 +220770,11 @@ paths: $ref: "#/components/schemas/RUMApplicationResponse" description: OK "404": - $ref: "#/components/responses/NotFoundResponse" + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Not Found "429": $ref: "#/components/responses/TooManyRequestsResponse" summary: Get a RUM application @@ -220701,7 +220836,11 @@ paths: "400": $ref: "#/components/responses/BadRequestResponse" "404": - $ref: "#/components/responses/NotFoundResponse" + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Not Found "422": content: application/json: diff --git a/src/datadog_api_client/v2/model/rum_application_attributes.py b/src/datadog_api_client/v2/model/rum_application_attributes.py index fa36f8eb7e..b9858c3741 100644 --- a/src/datadog_api_client/v2/model/rum_application_attributes.py +++ b/src/datadog_api_client/v2/model/rum_application_attributes.py @@ -3,7 +3,7 @@ # Copyright 2019-Present Datadog, Inc. from __future__ import annotations -from typing import Union, TYPE_CHECKING +from typing import List, Union, TYPE_CHECKING from datadog_api_client.model_utils import ( ModelNormal, @@ -25,6 +25,9 @@ class RUMApplicationAttributes(ModelNormal): "org_id": { "inclusive_maximum": 2147483647, }, + "product_analytics_replay_sample_rate": { + "inclusive_maximum": 2147483647, + }, } @cached_property @@ -33,16 +36,27 @@ def openapi_types(_): return { "api_key_id": (int,), + "apm_rum_flat_sampling_replay_enabled": (bool,), + "apm_rum_flat_sampling_replay_sample_rate": (float,), "application_id": (str,), "client_token": (str,), "created_at": (int,), "created_by_handle": (str,), + "disabled_at": (int,), + "disabled_by_handle": (str,), + "error_tracking_exclusion_filter_enabled": (bool,), + "external_feeds": ([str],), "hash": (str,), "is_active": (bool,), "name": (str,), + "ootb_metrics_installed": (bool,), "org_id": (int,), + "product_analytics_preview_disabled": (bool,), + "product_analytics_replay_sample_rate": (int,), "product_scales": (RUMProductScales,), "remote_config_id": (str,), + "short_name": (str,), + "tags": ([str],), "type": (str,), "updated_at": (int,), "updated_by_handle": (str,), @@ -50,16 +64,27 @@ def openapi_types(_): attribute_map = { "api_key_id": "api_key_id", + "apm_rum_flat_sampling_replay_enabled": "apm_rum_flat_sampling_replay_enabled", + "apm_rum_flat_sampling_replay_sample_rate": "apm_rum_flat_sampling_replay_sample_rate", "application_id": "application_id", "client_token": "client_token", "created_at": "created_at", "created_by_handle": "created_by_handle", + "disabled_at": "disabled_at", + "disabled_by_handle": "disabled_by_handle", + "error_tracking_exclusion_filter_enabled": "error_tracking_exclusion_filter_enabled", + "external_feeds": "external_feeds", "hash": "hash", "is_active": "is_active", "name": "name", + "ootb_metrics_installed": "ootb_metrics_installed", "org_id": "org_id", + "product_analytics_preview_disabled": "product_analytics_preview_disabled", + "product_analytics_replay_sample_rate": "product_analytics_replay_sample_rate", "product_scales": "product_scales", "remote_config_id": "remote_config_id", + "short_name": "short_name", + "tags": "tags", "type": "type", "updated_at": "updated_at", "updated_by_handle": "updated_by_handle", @@ -77,10 +102,21 @@ def __init__( updated_at: int, updated_by_handle: str, api_key_id: Union[int, UnsetType] = unset, + apm_rum_flat_sampling_replay_enabled: Union[bool, UnsetType] = unset, + apm_rum_flat_sampling_replay_sample_rate: Union[float, UnsetType] = unset, + disabled_at: Union[int, UnsetType] = unset, + disabled_by_handle: Union[str, UnsetType] = unset, + error_tracking_exclusion_filter_enabled: Union[bool, UnsetType] = unset, + external_feeds: Union[List[str], UnsetType] = unset, hash: Union[str, UnsetType] = unset, is_active: Union[bool, UnsetType] = unset, + ootb_metrics_installed: Union[bool, UnsetType] = unset, + product_analytics_preview_disabled: Union[bool, UnsetType] = unset, + product_analytics_replay_sample_rate: Union[int, UnsetType] = unset, product_scales: Union[RUMProductScales, UnsetType] = unset, remote_config_id: Union[str, UnsetType] = unset, + short_name: Union[str, UnsetType] = unset, + tags: Union[List[str], UnsetType] = unset, **kwargs, ): """ @@ -89,6 +125,12 @@ def __init__( :param api_key_id: ID of the API key associated with the application. :type api_key_id: int, optional + :param apm_rum_flat_sampling_replay_enabled: Indicates if flat sampling of Session Replay for APM-correlated RUM sessions is enabled. + :type apm_rum_flat_sampling_replay_enabled: bool, optional + + :param apm_rum_flat_sampling_replay_sample_rate: Sample rate (0-100) of Session Replay for APM-correlated RUM sessions when flat sampling is enabled. + :type apm_rum_flat_sampling_replay_sample_rate: float, optional + :param application_id: ID of the RUM application. :type application_id: str @@ -101,6 +143,18 @@ def __init__( :param created_by_handle: Handle of the creator user. :type created_by_handle: str + :param disabled_at: Timestamp in ms of the date the RUM application was disabled. Only present if the application was disabled. + :type disabled_at: int, optional + + :param disabled_by_handle: Handle of the user who disabled the RUM application. Only present if the application was disabled. + :type disabled_by_handle: str, optional + + :param error_tracking_exclusion_filter_enabled: Indicates if Error Tracking exclusion filters are enabled for the application. + :type error_tracking_exclusion_filter_enabled: bool, optional + + :param external_feeds: Non-native ingestion paths the RUM application sends its data through. ``otel`` means the application sends RUM data through OpenTelemetry instead of the Datadog RUM SDK. + :type external_feeds: [str], optional + :param hash: Hash of the RUM application. Optional. :type hash: str, optional @@ -110,15 +164,30 @@ def __init__( :param name: Name of the RUM application. :type name: str + :param ootb_metrics_installed: Indicates if the out-of-the-box RUM metrics are installed for the application. + :type ootb_metrics_installed: bool, optional + :param org_id: Org ID of the RUM application. :type org_id: int + :param product_analytics_preview_disabled: Indicates that the Product Analytics preview is disabled for the application. Only present (and ``true`` ) when the Product Analytics retention state is not preview. + :type product_analytics_preview_disabled: bool, optional + + :param product_analytics_replay_sample_rate: Sample rate (0-100) of Session Replay for Product Analytics sessions. + :type product_analytics_replay_sample_rate: int, optional + :param product_scales: Product Scales configuration for the RUM application. :type product_scales: RUMProductScales, optional :param remote_config_id: ID of the RUM SDK remote configuration for the application, if one exists. :type remote_config_id: str, optional + :param short_name: Short name of the RUM application. + :type short_name: str, optional + + :param tags: List of tags associated with the RUM application. + :type tags: [str], optional + :param type: Type of the RUM application. Supported values are ``browser`` , ``ios`` , ``android`` , ``react-native`` , ``flutter`` , ``roku`` , ``electron`` , ``unity`` , ``kotlin-multiplatform``. :type type: str @@ -130,14 +199,36 @@ def __init__( """ if api_key_id is not unset: kwargs["api_key_id"] = api_key_id + if apm_rum_flat_sampling_replay_enabled is not unset: + kwargs["apm_rum_flat_sampling_replay_enabled"] = apm_rum_flat_sampling_replay_enabled + if apm_rum_flat_sampling_replay_sample_rate is not unset: + kwargs["apm_rum_flat_sampling_replay_sample_rate"] = apm_rum_flat_sampling_replay_sample_rate + if disabled_at is not unset: + kwargs["disabled_at"] = disabled_at + if disabled_by_handle is not unset: + kwargs["disabled_by_handle"] = disabled_by_handle + if error_tracking_exclusion_filter_enabled is not unset: + kwargs["error_tracking_exclusion_filter_enabled"] = error_tracking_exclusion_filter_enabled + if external_feeds is not unset: + kwargs["external_feeds"] = external_feeds if hash is not unset: kwargs["hash"] = hash if is_active is not unset: kwargs["is_active"] = is_active + if ootb_metrics_installed is not unset: + kwargs["ootb_metrics_installed"] = ootb_metrics_installed + if product_analytics_preview_disabled is not unset: + kwargs["product_analytics_preview_disabled"] = product_analytics_preview_disabled + if product_analytics_replay_sample_rate is not unset: + kwargs["product_analytics_replay_sample_rate"] = product_analytics_replay_sample_rate if product_scales is not unset: kwargs["product_scales"] = product_scales if remote_config_id is not unset: kwargs["remote_config_id"] = remote_config_id + if short_name is not unset: + kwargs["short_name"] = short_name + if tags is not unset: + kwargs["tags"] = tags super().__init__(kwargs) self_.application_id = application_id diff --git a/src/datadog_api_client/v2/model/rum_application_list_attributes.py b/src/datadog_api_client/v2/model/rum_application_list_attributes.py index 79476b116c..10375cd8ae 100644 --- a/src/datadog_api_client/v2/model/rum_application_list_attributes.py +++ b/src/datadog_api_client/v2/model/rum_application_list_attributes.py @@ -3,7 +3,7 @@ # Copyright 2019-Present Datadog, Inc. from __future__ import annotations -from typing import Union, TYPE_CHECKING +from typing import List, Union, TYPE_CHECKING from datadog_api_client.model_utils import ( ModelNormal, @@ -19,9 +19,15 @@ class RUMApplicationListAttributes(ModelNormal): validations = { + "api_key_id": { + "inclusive_maximum": 2147483647, + }, "org_id": { "inclusive_maximum": 2147483647, }, + "product_analytics_replay_sample_rate": { + "inclusive_maximum": 2147483647, + }, } @cached_property @@ -29,28 +35,54 @@ def openapi_types(_): from datadog_api_client.v2.model.rum_product_scales import RUMProductScales return { + "api_key_id": (int,), + "apm_rum_flat_sampling_replay_enabled": (bool,), + "apm_rum_flat_sampling_replay_sample_rate": (float,), "application_id": (str,), "created_at": (int,), "created_by_handle": (str,), + "disabled_at": (int,), + "disabled_by_handle": (str,), + "error_tracking_exclusion_filter_enabled": (bool,), + "external_feeds": ([str],), "hash": (str,), "is_active": (bool,), "name": (str,), + "ootb_metrics_installed": (bool,), "org_id": (int,), + "product_analytics_preview_disabled": (bool,), + "product_analytics_replay_sample_rate": (int,), "product_scales": (RUMProductScales,), + "remote_config_id": (str,), + "short_name": (str,), + "tags": ([str],), "type": (str,), "updated_at": (int,), "updated_by_handle": (str,), } attribute_map = { + "api_key_id": "api_key_id", + "apm_rum_flat_sampling_replay_enabled": "apm_rum_flat_sampling_replay_enabled", + "apm_rum_flat_sampling_replay_sample_rate": "apm_rum_flat_sampling_replay_sample_rate", "application_id": "application_id", "created_at": "created_at", "created_by_handle": "created_by_handle", + "disabled_at": "disabled_at", + "disabled_by_handle": "disabled_by_handle", + "error_tracking_exclusion_filter_enabled": "error_tracking_exclusion_filter_enabled", + "external_feeds": "external_feeds", "hash": "hash", "is_active": "is_active", "name": "name", + "ootb_metrics_installed": "ootb_metrics_installed", "org_id": "org_id", + "product_analytics_preview_disabled": "product_analytics_preview_disabled", + "product_analytics_replay_sample_rate": "product_analytics_replay_sample_rate", "product_scales": "product_scales", + "remote_config_id": "remote_config_id", + "short_name": "short_name", + "tags": "tags", "type": "type", "updated_at": "updated_at", "updated_by_handle": "updated_by_handle", @@ -66,14 +98,36 @@ def __init__( type: str, updated_at: int, updated_by_handle: str, + api_key_id: Union[int, UnsetType] = unset, + apm_rum_flat_sampling_replay_enabled: Union[bool, UnsetType] = unset, + apm_rum_flat_sampling_replay_sample_rate: Union[float, UnsetType] = unset, + disabled_at: Union[int, UnsetType] = unset, + disabled_by_handle: Union[str, UnsetType] = unset, + error_tracking_exclusion_filter_enabled: Union[bool, UnsetType] = unset, + external_feeds: Union[List[str], UnsetType] = unset, hash: Union[str, UnsetType] = unset, is_active: Union[bool, UnsetType] = unset, + ootb_metrics_installed: Union[bool, UnsetType] = unset, + product_analytics_preview_disabled: Union[bool, UnsetType] = unset, + product_analytics_replay_sample_rate: Union[int, UnsetType] = unset, product_scales: Union[RUMProductScales, UnsetType] = unset, + remote_config_id: Union[str, UnsetType] = unset, + short_name: Union[str, UnsetType] = unset, + tags: Union[List[str], UnsetType] = unset, **kwargs, ): """ RUM application list attributes. + :param api_key_id: ID of the API key associated with the application. + :type api_key_id: int, optional + + :param apm_rum_flat_sampling_replay_enabled: Indicates if flat sampling of Session Replay for APM-correlated RUM sessions is enabled. + :type apm_rum_flat_sampling_replay_enabled: bool, optional + + :param apm_rum_flat_sampling_replay_sample_rate: Sample rate (0-100) of Session Replay for APM-correlated RUM sessions when flat sampling is enabled. + :type apm_rum_flat_sampling_replay_sample_rate: float, optional + :param application_id: ID of the RUM application. :type application_id: str @@ -83,6 +137,18 @@ def __init__( :param created_by_handle: Handle of the creator user. :type created_by_handle: str + :param disabled_at: Timestamp in ms of the date the RUM application was disabled. Only present if the application was disabled. + :type disabled_at: int, optional + + :param disabled_by_handle: Handle of the user who disabled the RUM application. Only present if the application was disabled. + :type disabled_by_handle: str, optional + + :param error_tracking_exclusion_filter_enabled: Indicates if Error Tracking exclusion filters are enabled for the application. + :type error_tracking_exclusion_filter_enabled: bool, optional + + :param external_feeds: Non-native ingestion paths the RUM application sends its data through. ``otel`` means the application sends RUM data through OpenTelemetry instead of the Datadog RUM SDK. + :type external_feeds: [str], optional + :param hash: Hash of the RUM application. Optional. :type hash: str, optional @@ -92,12 +158,30 @@ def __init__( :param name: Name of the RUM application. :type name: str + :param ootb_metrics_installed: Indicates if the out-of-the-box RUM metrics are installed for the application. + :type ootb_metrics_installed: bool, optional + :param org_id: Org ID of the RUM application. :type org_id: int + :param product_analytics_preview_disabled: Indicates that the Product Analytics preview is disabled for the application. Only present (and ``true`` ) when the Product Analytics retention state is not preview. + :type product_analytics_preview_disabled: bool, optional + + :param product_analytics_replay_sample_rate: Sample rate (0-100) of Session Replay for Product Analytics sessions. + :type product_analytics_replay_sample_rate: int, optional + :param product_scales: Product Scales configuration for the RUM application. :type product_scales: RUMProductScales, optional + :param remote_config_id: ID of the RUM SDK remote configuration for the application, if one exists. + :type remote_config_id: str, optional + + :param short_name: Short name of the RUM application. + :type short_name: str, optional + + :param tags: List of tags associated with the RUM application. + :type tags: [str], optional + :param type: Type of the RUM application. Supported values are ``browser`` , ``ios`` , ``android`` , ``react-native`` , ``flutter`` , ``roku`` , ``electron`` , ``unity`` , ``kotlin-multiplatform``. :type type: str @@ -107,12 +191,38 @@ def __init__( :param updated_by_handle: Handle of the updater user. :type updated_by_handle: str """ + if api_key_id is not unset: + kwargs["api_key_id"] = api_key_id + if apm_rum_flat_sampling_replay_enabled is not unset: + kwargs["apm_rum_flat_sampling_replay_enabled"] = apm_rum_flat_sampling_replay_enabled + if apm_rum_flat_sampling_replay_sample_rate is not unset: + kwargs["apm_rum_flat_sampling_replay_sample_rate"] = apm_rum_flat_sampling_replay_sample_rate + if disabled_at is not unset: + kwargs["disabled_at"] = disabled_at + if disabled_by_handle is not unset: + kwargs["disabled_by_handle"] = disabled_by_handle + if error_tracking_exclusion_filter_enabled is not unset: + kwargs["error_tracking_exclusion_filter_enabled"] = error_tracking_exclusion_filter_enabled + if external_feeds is not unset: + kwargs["external_feeds"] = external_feeds if hash is not unset: kwargs["hash"] = hash if is_active is not unset: kwargs["is_active"] = is_active + if ootb_metrics_installed is not unset: + kwargs["ootb_metrics_installed"] = ootb_metrics_installed + if product_analytics_preview_disabled is not unset: + kwargs["product_analytics_preview_disabled"] = product_analytics_preview_disabled + if product_analytics_replay_sample_rate is not unset: + kwargs["product_analytics_replay_sample_rate"] = product_analytics_replay_sample_rate if product_scales is not unset: kwargs["product_scales"] = product_scales + if remote_config_id is not unset: + kwargs["remote_config_id"] = remote_config_id + if short_name is not unset: + kwargs["short_name"] = short_name + if tags is not unset: + kwargs["tags"] = tags super().__init__(kwargs) self_.application_id = application_id diff --git a/src/datadog_api_client/v2/model/rum_bucket_group_by_value.py b/src/datadog_api_client/v2/model/rum_bucket_group_by_value.py new file mode 100644 index 0000000000..97c2ef8a27 --- /dev/null +++ b/src/datadog_api_client/v2/model/rum_bucket_group_by_value.py @@ -0,0 +1,34 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelComposed, + cached_property, +) + + +class RUMBucketGroupByValue(ModelComposed): + def __init__(self, **kwargs): + """ + The value of a group-by facet for this bucket. A string for string facets, a number for numeric facets and histograms. + """ + super().__init__(kwargs) + + @cached_property + def _composed_schemas(_): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return { + "oneOf": [ + str, + float, + ], + } diff --git a/src/datadog_api_client/v2/model/rum_bucket_response.py b/src/datadog_api_client/v2/model/rum_bucket_response.py index 71ede05786..0c80c61cd6 100644 --- a/src/datadog_api_client/v2/model/rum_bucket_response.py +++ b/src/datadog_api_client/v2/model/rum_bucket_response.py @@ -14,6 +14,7 @@ if TYPE_CHECKING: + from datadog_api_client.v2.model.rum_bucket_group_by_value import RUMBucketGroupByValue from datadog_api_client.v2.model.rum_aggregate_bucket_value import RUMAggregateBucketValue from datadog_api_client.v2.model.rum_aggregate_bucket_value_timeseries import RUMAggregateBucketValueTimeseries @@ -21,10 +22,11 @@ class RUMBucketResponse(ModelNormal): @cached_property def openapi_types(_): + from datadog_api_client.v2.model.rum_bucket_group_by_value import RUMBucketGroupByValue from datadog_api_client.v2.model.rum_aggregate_bucket_value import RUMAggregateBucketValue return { - "by": ({str: (str,)},), + "by": ({str: (RUMBucketGroupByValue,)},), "computes": ({str: (RUMAggregateBucketValue,)},), } @@ -35,7 +37,7 @@ def openapi_types(_): def __init__( self_, - by: Union[Dict[str, str], UnsetType] = unset, + by: Union[Dict[str, Union[RUMBucketGroupByValue, str, float]], UnsetType] = unset, computes: Union[ Dict[str, Union[RUMAggregateBucketValue, str, float, RUMAggregateBucketValueTimeseries]], UnsetType ] = unset, @@ -45,7 +47,7 @@ def __init__( Bucket values. :param by: The key-value pairs for each group-by. - :type by: {str: (str,)}, optional + :type by: {str: (RUMBucketGroupByValue,)}, optional :param computes: A map of the metric name to value for regular compute, or a list of values for a timeseries. :type computes: {str: (RUMAggregateBucketValue,)}, optional diff --git a/src/datadog_api_client/v2/models/__init__.py b/src/datadog_api_client/v2/models/__init__.py index c8b1225721..175b6d8e92 100644 --- a/src/datadog_api_client/v2/models/__init__.py +++ b/src/datadog_api_client/v2/models/__init__.py @@ -8995,6 +8995,7 @@ from datadog_api_client.v2.model.rum_application_update_request import RUMApplicationUpdateRequest from datadog_api_client.v2.model.rum_application_update_type import RUMApplicationUpdateType from datadog_api_client.v2.model.rum_applications_response import RUMApplicationsResponse +from datadog_api_client.v2.model.rum_bucket_group_by_value import RUMBucketGroupByValue from datadog_api_client.v2.model.rum_bucket_response import RUMBucketResponse from datadog_api_client.v2.model.rum_compute import RUMCompute from datadog_api_client.v2.model.rum_compute_type import RUMComputeType @@ -18994,6 +18995,7 @@ "RUMApplicationUpdateRequest", "RUMApplicationUpdateType", "RUMApplicationsResponse", + "RUMBucketGroupByValue", "RUMBucketResponse", "RUMCompute", "RUMComputeType", diff --git a/tests/generated-test/test-server-data/v2/rum.json b/tests/generated-test/test-server-data/v2/rum.json index 16a4d491a2..67630de8d7 100644 --- a/tests/generated-test/test-server-data/v2/rum.json +++ b/tests/generated-test/test-server-data/v2/rum.json @@ -324,7 +324,7 @@ }, { "feature": "RUM", - "frozen_at": "2024-12-10T15:40:42.789Z", + "frozen_at": "2026-10-26T14:43:44.844Z", "interactions": [ { "request": { @@ -340,10 +340,10 @@ "response": { "body": { "encoding": "text", - "value": "{\"errors\":[\"Application Not Found not found\"]}" + "value": "{\"errors\":[{\"status\":\"404\",\"title\":\"Application not found\"}]}" }, "headers": { - "content-type": "application/json" + "content-type": "application/vnd.api+json" }, "reason": "Not Found", "status": 404 @@ -355,7 +355,7 @@ }, { "feature": "RUM", - "frozen_at": "2024-12-10T15:40:43.241Z", + "frozen_at": "2026-10-26T14:43:46.554Z", "interactions": [ { "request": { @@ -371,10 +371,10 @@ "response": { "body": { "encoding": "text", - "value": "{\"errors\":[\"Application Not Found not found\"]}" + "value": "{\"errors\":[{\"status\":\"404\",\"title\":\"Application not found\"}]}" }, "headers": { - "content-type": "application/json" + "content-type": "application/vnd.api+json" }, "reason": "Not Found", "status": 404