diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index e0e9db98e4..deb3de4700 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -102897,9 +102897,12 @@ components: description: The definition of a RUM operation's journey, used to detect it from RUM events. properties: rum_steps: - description: The ordered list of steps composing the RUM journey. + description: |- + The ordered list of steps composing the RUM journey. + `null` in responses for operations that have no journey defined. items: $ref: "#/components/schemas/RUMOperationJourneyStep" + nullable: true type: array required: - rum_steps @@ -103019,6 +103022,7 @@ components: description: The list of journey IDs associated with the RUM operation. items: type: string + nullable: true type: array journey_rum: $ref: "#/components/schemas/RUMOperationJourneyRum" @@ -103037,6 +103041,7 @@ components: - "team:checkout" items: type: string + nullable: true type: array updated_at: description: The timestamp when the RUM operation was last updated. @@ -103306,7 +103311,8 @@ components: - attributes type: object RUMOperationUser: - description: A Datadog user referenced by a RUM operation. + description: A Datadog user referenced by a RUM operation. `null` when the user could not be resolved. + nullable: true properties: email: description: The email of the user. @@ -103322,6 +103328,7 @@ components: type: string uuid: description: The UUID of the user. + example: "abc12345-1234-5678-abcd-ef1234567890" readOnly: true type: string type: object @@ -103332,11 +103339,37 @@ components: items: $ref: "#/components/schemas/RUMOperationResponseData" type: array + links: + $ref: "#/components/schemas/RUMOperationsListResponseLinks" meta: $ref: "#/components/schemas/RUMOperationsListResponseMeta" required: - data type: object + RUMOperationsListResponseLinks: + description: Pagination links for a list of RUM operations. + properties: + first: + description: Link to the first page. + example: "https://api.datadoghq.com/api/v2/rum/operations/search?page[limit]=50&page[offset]=0" + type: string + last: + description: Link to the last page. + example: "https://api.datadoghq.com/api/v2/rum/operations/search?page[limit]=50&page[offset]=150" + type: string + next: + description: Link to the next page. + example: "https://api.datadoghq.com/api/v2/rum/operations/search?page[limit]=50&page[offset]=100" + type: string + prev: + description: Link to the previous page. + example: "https://api.datadoghq.com/api/v2/rum/operations/search?page[limit]=50&page[offset]=0" + type: string + self: + description: Link to the current page. + example: "https://api.datadoghq.com/api/v2/rum/operations/search?page[limit]=50&page[offset]=50" + type: string + type: object RUMOperationsListResponseMeta: description: Metadata for a list of RUM operations. properties: @@ -107857,6 +107890,17 @@ components: RumCrossProductSampling: description: The configuration for cross-product retention filters. properties: + session_replay_enabled: + description: Whether the cross-product retention filter for Session Replay is enabled. + example: true + type: boolean + session_replay_sample_rate: + description: The sample rate for the Session Replay cross-product retention filter, between 0 and 100. + example: 50.0 + format: double + maximum: 100 + minimum: 0 + type: number trace_enabled: description: Whether the cross-product retention filter for APM traces is enabled. example: true @@ -108438,6 +108482,8 @@ components: $ref: "#/components/schemas/RumRetentionFilterQuery" sample_rate: $ref: "#/components/schemas/RumRetentionFilterSampleRate" + track: + $ref: "#/components/schemas/RumRetentionFilterTrack" type: object RumRetentionFilterCreateAttributes: description: The object describing attributes of a RUM retention filter to create. @@ -108485,6 +108531,8 @@ components: $ref: "#/components/schemas/RumRetentionFilterAttributes" id: $ref: "#/components/schemas/RumRetentionFilterID" + meta: + $ref: "#/components/schemas/RumRetentionFilterMeta" type: $ref: "#/components/schemas/RumRetentionFilterType" type: object @@ -108494,14 +108542,50 @@ components: type: boolean RumRetentionFilterEventType: description: The type of RUM events to filter on. - enum: ["session", "view", "action", "error", "resource", "long_task", "vital"] + enum: ["session", "view", "action", "error", "resource", "long_task", "vital", "operation", "execution_context"] example: "session" type: string - x-enum-varnames: ["SESSION", "VIEW", "ACTION", "ERROR", "RESOURCE", "LONG_TASK", "VITAL"] + x-enum-varnames: ["SESSION", "VIEW", "ACTION", "ERROR", "RESOURCE", "LONG_TASK", "VITAL", "OPERATION", "EXECUTION_CONTEXT"] RumRetentionFilterID: description: ID of retention filter in UUID. example: "051601eb-54a0-abc0-03f9-cc02efa18892" type: string + RumRetentionFilterMeta: + description: Metadata about a RUM retention filter. + properties: + edition_mode: + $ref: "#/components/schemas/RumRetentionFilterMetaEditionMode" + source: + $ref: "#/components/schemas/RumRetentionFilterMetaSource" + updated_at: + description: The timestamp of the last update to the retention filter, in milliseconds since the Unix epoch. + example: 1715000000000 + format: int64 + type: integer + updated_by_handle: + description: The handle of the user who last updated the retention filter. + example: "user@example.com" + type: string + type: object + RumRetentionFilterMetaEditionMode: + description: "Which attributes of the retention filter can be edited. `complete`: all attributes can be edited. `limited`: only the sample rates can be edited; the name, event type, and query are fixed and the filter cannot be reordered (for example, default filters). `unknown`: the edition mode is not set." + enum: + - unknown + - complete + - limited + example: complete + type: string + x-enum-varnames: ["UNKNOWN", "COMPLETE", "LIMITED"] + RumRetentionFilterMetaSource: + description: The source of the last change to a RUM retention filter. + enum: + - default + - ui + - terraform + - unknown + example: ui + type: string + x-enum-varnames: ["DEFAULT", "UI", "TERRAFORM", "UNKNOWN"] RumRetentionFilterQuery: description: The query string for a RUM retention filter. example: "@session.has_replay:true" @@ -108519,6 +108603,14 @@ components: maximum: 100 minimum: 0.1 type: number + RumRetentionFilterTrack: + description: The product track a RUM retention filter applies to. + enum: + - rum + - product_analytics + example: rum + type: string + x-enum-varnames: ["RUM", "PRODUCT_ANALYTICS"] RumRetentionFilterType: default: retention_filters description: The type of the resource. The value should always be retention_filters. @@ -220810,7 +220902,11 @@ paths: "403": $ref: "#/components/responses/NotAuthorizedResponse" "404": - $ref: "#/components/responses/NotFoundResponse" + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Not Found "429": $ref: "#/components/responses/TooManyRequestsResponse" summary: Get a permanent RUM retention filter @@ -220872,7 +220968,11 @@ paths: "403": $ref: "#/components/responses/NotAuthorizedResponse" "404": - $ref: "#/components/responses/NotFoundResponse" + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Not Found "429": $ref: "#/components/responses/TooManyRequestsResponse" summary: Update a permanent RUM retention filter @@ -220892,7 +220992,11 @@ paths: "403": $ref: "#/components/responses/NotAuthorizedResponse" "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 retention filter @@ -220929,7 +221033,11 @@ paths: "403": $ref: "#/components/responses/NotAuthorizedResponse" "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 retention filter @@ -220996,7 +221104,11 @@ paths: "403": $ref: "#/components/responses/NotAuthorizedResponse" "404": - $ref: "#/components/responses/NotFoundResponse" + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Not Found "429": $ref: "#/components/responses/TooManyRequestsResponse" summary: Update a RUM retention filter diff --git a/src/datadog_api_client/v2/model/rum_cross_product_sampling.py b/src/datadog_api_client/v2/model/rum_cross_product_sampling.py index 2f24a17e96..bb1284ddac 100644 --- a/src/datadog_api_client/v2/model/rum_cross_product_sampling.py +++ b/src/datadog_api_client/v2/model/rum_cross_product_sampling.py @@ -15,6 +15,10 @@ class RumCrossProductSampling(ModelNormal): validations = { + "session_replay_sample_rate": { + "inclusive_maximum": 100, + "inclusive_minimum": 0, + }, "trace_sample_rate": { "inclusive_maximum": 100, "inclusive_minimum": 0, @@ -24,17 +28,23 @@ class RumCrossProductSampling(ModelNormal): @cached_property def openapi_types(_): return { + "session_replay_enabled": (bool,), + "session_replay_sample_rate": (float,), "trace_enabled": (bool,), "trace_sample_rate": (float,), } attribute_map = { + "session_replay_enabled": "session_replay_enabled", + "session_replay_sample_rate": "session_replay_sample_rate", "trace_enabled": "trace_enabled", "trace_sample_rate": "trace_sample_rate", } def __init__( self_, + session_replay_enabled: Union[bool, UnsetType] = unset, + session_replay_sample_rate: Union[float, UnsetType] = unset, trace_enabled: Union[bool, UnsetType] = unset, trace_sample_rate: Union[float, UnsetType] = unset, **kwargs, @@ -42,12 +52,22 @@ def __init__( """ The configuration for cross-product retention filters. + :param session_replay_enabled: Whether the cross-product retention filter for Session Replay is enabled. + :type session_replay_enabled: bool, optional + + :param session_replay_sample_rate: The sample rate for the Session Replay cross-product retention filter, between 0 and 100. + :type session_replay_sample_rate: float, optional + :param trace_enabled: Whether the cross-product retention filter for APM traces is enabled. :type trace_enabled: bool, optional :param trace_sample_rate: The sample rate for the APM cross-product retention filter, between 0 and 100. Values returned by the API are rounded to two decimal places. :type trace_sample_rate: float, optional """ + if session_replay_enabled is not unset: + kwargs["session_replay_enabled"] = session_replay_enabled + if session_replay_sample_rate is not unset: + kwargs["session_replay_sample_rate"] = session_replay_sample_rate if trace_enabled is not unset: kwargs["trace_enabled"] = trace_enabled if trace_sample_rate is not unset: diff --git a/src/datadog_api_client/v2/model/rum_operation_journey_rum.py b/src/datadog_api_client/v2/model/rum_operation_journey_rum.py index e88d1b44bc..edc16c70d1 100644 --- a/src/datadog_api_client/v2/model/rum_operation_journey_rum.py +++ b/src/datadog_api_client/v2/model/rum_operation_journey_rum.py @@ -3,11 +3,12 @@ # Copyright 2019-Present Datadog, Inc. from __future__ import annotations -from typing import List, TYPE_CHECKING +from typing import List, Union, TYPE_CHECKING from datadog_api_client.model_utils import ( ModelNormal, cached_property, + none_type, ) @@ -21,19 +22,20 @@ def openapi_types(_): from datadog_api_client.v2.model.rum_operation_journey_step import RUMOperationJourneyStep return { - "rum_steps": ([RUMOperationJourneyStep],), + "rum_steps": ([RUMOperationJourneyStep], none_type), } attribute_map = { "rum_steps": "rum_steps", } - def __init__(self_, rum_steps: List[RUMOperationJourneyStep], **kwargs): + def __init__(self_, rum_steps: Union[List[RUMOperationJourneyStep], none_type], **kwargs): """ The definition of a RUM operation's journey, used to detect it from RUM events. :param rum_steps: The ordered list of steps composing the RUM journey. - :type rum_steps: [RUMOperationJourneyStep] + ``null`` in responses for operations that have no journey defined. + :type rum_steps: [RUMOperationJourneyStep], none_type """ super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/rum_operation_response_attributes.py b/src/datadog_api_client/v2/model/rum_operation_response_attributes.py index ce9665e3a8..6cbdf920d5 100644 --- a/src/datadog_api_client/v2/model/rum_operation_response_attributes.py +++ b/src/datadog_api_client/v2/model/rum_operation_response_attributes.py @@ -34,11 +34,11 @@ def openapi_types(_): "created_by": (RUMOperationUser,), "description": (str, none_type), "display_name": (str,), - "feature_ids": ([str],), + "feature_ids": ([str], none_type), "journey_rum": (RUMOperationJourneyRum,), "name": (str,), "org_id": (int,), - "tags": ([str],), + "tags": ([str], none_type), "updated_at": (datetime, none_type), "updated_by": (RUMOperationUser,), } @@ -68,17 +68,17 @@ def __init__( self_, journey_rum: RUMOperationJourneyRum, name: str, - tags: List[str], + tags: Union[List[str], none_type], application_id: Union[UUID, none_type, UnsetType] = unset, category: Union[str, none_type, UnsetType] = unset, created_at: Union[datetime, UnsetType] = unset, - created_by: Union[RUMOperationUser, UnsetType] = unset, + created_by: Union[RUMOperationUser, none_type, UnsetType] = unset, description: Union[str, none_type, UnsetType] = unset, display_name: Union[str, UnsetType] = unset, - feature_ids: Union[List[str], UnsetType] = unset, + feature_ids: Union[List[str], none_type, UnsetType] = unset, org_id: Union[int, UnsetType] = unset, updated_at: Union[datetime, none_type, UnsetType] = unset, - updated_by: Union[RUMOperationUser, UnsetType] = unset, + updated_by: Union[RUMOperationUser, none_type, UnsetType] = unset, **kwargs, ): """ @@ -93,8 +93,8 @@ def __init__( :param created_at: The timestamp when the RUM operation was created. :type created_at: datetime, optional - :param created_by: A Datadog user referenced by a RUM operation. - :type created_by: RUMOperationUser, optional + :param created_by: A Datadog user referenced by a RUM operation. ``null`` when the user could not be resolved. + :type created_by: RUMOperationUser, none_type, optional :param description: A description of the RUM operation. :type description: str, none_type, optional @@ -103,7 +103,7 @@ def __init__( :type display_name: str, optional :param feature_ids: The list of journey IDs associated with the RUM operation. - :type feature_ids: [str], optional + :type feature_ids: [str], none_type, optional :param journey_rum: The definition of a RUM operation's journey, used to detect it from RUM events. :type journey_rum: RUMOperationJourneyRum @@ -115,13 +115,13 @@ def __init__( :type org_id: int, optional :param tags: A list of tags associated with the RUM operation. - :type tags: [str] + :type tags: [str], none_type :param updated_at: The timestamp when the RUM operation was last updated. :type updated_at: datetime, none_type, optional - :param updated_by: A Datadog user referenced by a RUM operation. - :type updated_by: RUMOperationUser, optional + :param updated_by: A Datadog user referenced by a RUM operation. ``null`` when the user could not be resolved. + :type updated_by: RUMOperationUser, none_type, optional """ if application_id is not unset: kwargs["application_id"] = application_id diff --git a/src/datadog_api_client/v2/model/rum_operation_user.py b/src/datadog_api_client/v2/model/rum_operation_user.py index 6113295728..2703c72cd3 100644 --- a/src/datadog_api_client/v2/model/rum_operation_user.py +++ b/src/datadog_api_client/v2/model/rum_operation_user.py @@ -14,6 +14,8 @@ class RUMOperationUser(ModelNormal): + _nullable = True + @cached_property def openapi_types(_): return { @@ -45,7 +47,7 @@ def __init__( **kwargs, ): """ - A Datadog user referenced by a RUM operation. + A Datadog user referenced by a RUM operation. ``null`` when the user could not be resolved. :param email: The email of the user. :type email: str, optional diff --git a/src/datadog_api_client/v2/model/rum_operations_list_response.py b/src/datadog_api_client/v2/model/rum_operations_list_response.py index d26997aae5..b6c48265cb 100644 --- a/src/datadog_api_client/v2/model/rum_operations_list_response.py +++ b/src/datadog_api_client/v2/model/rum_operations_list_response.py @@ -15,6 +15,7 @@ if TYPE_CHECKING: from datadog_api_client.v2.model.rum_operation_response_data import RUMOperationResponseData + from datadog_api_client.v2.model.rum_operations_list_response_links import RUMOperationsListResponseLinks from datadog_api_client.v2.model.rum_operations_list_response_meta import RUMOperationsListResponseMeta @@ -22,21 +23,25 @@ class RUMOperationsListResponse(ModelNormal): @cached_property def openapi_types(_): from datadog_api_client.v2.model.rum_operation_response_data import RUMOperationResponseData + from datadog_api_client.v2.model.rum_operations_list_response_links import RUMOperationsListResponseLinks from datadog_api_client.v2.model.rum_operations_list_response_meta import RUMOperationsListResponseMeta return { "data": ([RUMOperationResponseData],), + "links": (RUMOperationsListResponseLinks,), "meta": (RUMOperationsListResponseMeta,), } attribute_map = { "data": "data", + "links": "links", "meta": "meta", } def __init__( self_, data: List[RUMOperationResponseData], + links: Union[RUMOperationsListResponseLinks, UnsetType] = unset, meta: Union[RUMOperationsListResponseMeta, UnsetType] = unset, **kwargs, ): @@ -46,9 +51,14 @@ def __init__( :param data: :type data: [RUMOperationResponseData] + :param links: Pagination links for a list of RUM operations. + :type links: RUMOperationsListResponseLinks, optional + :param meta: Metadata for a list of RUM operations. :type meta: RUMOperationsListResponseMeta, optional """ + if links is not unset: + kwargs["links"] = links if meta is not unset: kwargs["meta"] = meta super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/rum_operations_list_response_links.py b/src/datadog_api_client/v2/model/rum_operations_list_response_links.py new file mode 100644 index 0000000000..275bf4e767 --- /dev/null +++ b/src/datadog_api_client/v2/model/rum_operations_list_response_links.py @@ -0,0 +1,72 @@ +# 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 typing import Union + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +class RUMOperationsListResponseLinks(ModelNormal): + @cached_property + def openapi_types(_): + return { + "first": (str,), + "last": (str,), + "next": (str,), + "prev": (str,), + "self": (str,), + } + + attribute_map = { + "first": "first", + "last": "last", + "next": "next", + "prev": "prev", + "self": "self", + } + + def __init__( + self_, + first: Union[str, UnsetType] = unset, + last: Union[str, UnsetType] = unset, + next: Union[str, UnsetType] = unset, + prev: Union[str, UnsetType] = unset, + self: Union[str, UnsetType] = unset, + **kwargs, + ): + """ + Pagination links for a list of RUM operations. + + :param first: Link to the first page. + :type first: str, optional + + :param last: Link to the last page. + :type last: str, optional + + :param next: Link to the next page. + :type next: str, optional + + :param prev: Link to the previous page. + :type prev: str, optional + + :param self: Link to the current page. + :type self: str, optional + """ + if first is not unset: + kwargs["first"] = first + if last is not unset: + kwargs["last"] = last + if next is not unset: + kwargs["next"] = next + if prev is not unset: + kwargs["prev"] = prev + if self is not unset: + kwargs["self"] = self + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/rum_retention_filter_attributes.py b/src/datadog_api_client/v2/model/rum_retention_filter_attributes.py index 0a1c8a59c5..37339bab61 100644 --- a/src/datadog_api_client/v2/model/rum_retention_filter_attributes.py +++ b/src/datadog_api_client/v2/model/rum_retention_filter_attributes.py @@ -16,6 +16,7 @@ if TYPE_CHECKING: from datadog_api_client.v2.model.rum_cross_product_sampling import RumCrossProductSampling from datadog_api_client.v2.model.rum_retention_filter_event_type import RumRetentionFilterEventType + from datadog_api_client.v2.model.rum_retention_filter_track import RumRetentionFilterTrack class RumRetentionFilterAttributes(ModelNormal): @@ -30,6 +31,7 @@ class RumRetentionFilterAttributes(ModelNormal): def openapi_types(_): from datadog_api_client.v2.model.rum_cross_product_sampling import RumCrossProductSampling from datadog_api_client.v2.model.rum_retention_filter_event_type import RumRetentionFilterEventType + from datadog_api_client.v2.model.rum_retention_filter_track import RumRetentionFilterTrack return { "cross_product_sampling": (RumCrossProductSampling,), @@ -38,6 +40,7 @@ def openapi_types(_): "name": (str,), "query": (str,), "sample_rate": (float,), + "track": (RumRetentionFilterTrack,), } attribute_map = { @@ -47,6 +50,7 @@ def openapi_types(_): "name": "name", "query": "query", "sample_rate": "sample_rate", + "track": "track", } def __init__( @@ -57,6 +61,7 @@ def __init__( name: Union[str, UnsetType] = unset, query: Union[str, UnsetType] = unset, sample_rate: Union[float, UnsetType] = unset, + track: Union[RumRetentionFilterTrack, UnsetType] = unset, **kwargs, ): """ @@ -79,6 +84,9 @@ def __init__( :param sample_rate: The sample rate for a RUM retention filter, between 0.1 and 100. Values are truncated to one decimal place. :type sample_rate: float, optional + + :param track: The product track a RUM retention filter applies to. + :type track: RumRetentionFilterTrack, optional """ if cross_product_sampling is not unset: kwargs["cross_product_sampling"] = cross_product_sampling @@ -92,4 +100,6 @@ def __init__( kwargs["query"] = query if sample_rate is not unset: kwargs["sample_rate"] = sample_rate + if track is not unset: + kwargs["track"] = track super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/rum_retention_filter_data.py b/src/datadog_api_client/v2/model/rum_retention_filter_data.py index 7d03623287..835b2075bf 100644 --- a/src/datadog_api_client/v2/model/rum_retention_filter_data.py +++ b/src/datadog_api_client/v2/model/rum_retention_filter_data.py @@ -15,6 +15,7 @@ if TYPE_CHECKING: from datadog_api_client.v2.model.rum_retention_filter_attributes import RumRetentionFilterAttributes + from datadog_api_client.v2.model.rum_retention_filter_meta import RumRetentionFilterMeta from datadog_api_client.v2.model.rum_retention_filter_type import RumRetentionFilterType @@ -22,17 +23,20 @@ class RumRetentionFilterData(ModelNormal): @cached_property def openapi_types(_): from datadog_api_client.v2.model.rum_retention_filter_attributes import RumRetentionFilterAttributes + from datadog_api_client.v2.model.rum_retention_filter_meta import RumRetentionFilterMeta from datadog_api_client.v2.model.rum_retention_filter_type import RumRetentionFilterType return { "attributes": (RumRetentionFilterAttributes,), "id": (str,), + "meta": (RumRetentionFilterMeta,), "type": (RumRetentionFilterType,), } attribute_map = { "attributes": "attributes", "id": "id", + "meta": "meta", "type": "type", } @@ -40,6 +44,7 @@ def __init__( self_, attributes: Union[RumRetentionFilterAttributes, UnsetType] = unset, id: Union[str, UnsetType] = unset, + meta: Union[RumRetentionFilterMeta, UnsetType] = unset, type: Union[RumRetentionFilterType, UnsetType] = unset, **kwargs, ): @@ -52,6 +57,9 @@ def __init__( :param id: ID of retention filter in UUID. :type id: str, optional + :param meta: Metadata about a RUM retention filter. + :type meta: RumRetentionFilterMeta, optional + :param type: The type of the resource. The value should always be retention_filters. :type type: RumRetentionFilterType, optional """ @@ -59,6 +67,8 @@ def __init__( kwargs["attributes"] = attributes if id is not unset: kwargs["id"] = id + if meta is not unset: + kwargs["meta"] = meta if type is not unset: kwargs["type"] = type super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/rum_retention_filter_event_type.py b/src/datadog_api_client/v2/model/rum_retention_filter_event_type.py index 0639249e68..8b77c5482c 100644 --- a/src/datadog_api_client/v2/model/rum_retention_filter_event_type.py +++ b/src/datadog_api_client/v2/model/rum_retention_filter_event_type.py @@ -16,7 +16,7 @@ class RumRetentionFilterEventType(ModelSimple): """ The type of RUM events to filter on. - :param value: Must be one of ["session", "view", "action", "error", "resource", "long_task", "vital"]. + :param value: Must be one of ["session", "view", "action", "error", "resource", "long_task", "vital", "operation", "execution_context"]. :type value: str """ @@ -28,6 +28,8 @@ class RumRetentionFilterEventType(ModelSimple): "resource", "long_task", "vital", + "operation", + "execution_context", } SESSION: ClassVar["RumRetentionFilterEventType"] VIEW: ClassVar["RumRetentionFilterEventType"] @@ -36,6 +38,8 @@ class RumRetentionFilterEventType(ModelSimple): RESOURCE: ClassVar["RumRetentionFilterEventType"] LONG_TASK: ClassVar["RumRetentionFilterEventType"] VITAL: ClassVar["RumRetentionFilterEventType"] + OPERATION: ClassVar["RumRetentionFilterEventType"] + EXECUTION_CONTEXT: ClassVar["RumRetentionFilterEventType"] @cached_property def openapi_types(_): @@ -51,3 +55,5 @@ def openapi_types(_): RumRetentionFilterEventType.RESOURCE = RumRetentionFilterEventType("resource") RumRetentionFilterEventType.LONG_TASK = RumRetentionFilterEventType("long_task") RumRetentionFilterEventType.VITAL = RumRetentionFilterEventType("vital") +RumRetentionFilterEventType.OPERATION = RumRetentionFilterEventType("operation") +RumRetentionFilterEventType.EXECUTION_CONTEXT = RumRetentionFilterEventType("execution_context") diff --git a/src/datadog_api_client/v2/model/rum_retention_filter_meta.py b/src/datadog_api_client/v2/model/rum_retention_filter_meta.py new file mode 100644 index 0000000000..e77c1be349 --- /dev/null +++ b/src/datadog_api_client/v2/model/rum_retention_filter_meta.py @@ -0,0 +1,72 @@ +# 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 typing import Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.rum_retention_filter_meta_edition_mode import RumRetentionFilterMetaEditionMode + from datadog_api_client.v2.model.rum_retention_filter_meta_source import RumRetentionFilterMetaSource + + +class RumRetentionFilterMeta(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.rum_retention_filter_meta_edition_mode import RumRetentionFilterMetaEditionMode + from datadog_api_client.v2.model.rum_retention_filter_meta_source import RumRetentionFilterMetaSource + + return { + "edition_mode": (RumRetentionFilterMetaEditionMode,), + "source": (RumRetentionFilterMetaSource,), + "updated_at": (int,), + "updated_by_handle": (str,), + } + + attribute_map = { + "edition_mode": "edition_mode", + "source": "source", + "updated_at": "updated_at", + "updated_by_handle": "updated_by_handle", + } + + def __init__( + self_, + edition_mode: Union[RumRetentionFilterMetaEditionMode, UnsetType] = unset, + source: Union[RumRetentionFilterMetaSource, UnsetType] = unset, + updated_at: Union[int, UnsetType] = unset, + updated_by_handle: Union[str, UnsetType] = unset, + **kwargs, + ): + """ + Metadata about a RUM retention filter. + + :param edition_mode: Which attributes of the retention filter can be edited. `complete`: all attributes can be edited. `limited`: only the sample rates can be edited; the name, event type, and query are fixed and the filter cannot be reordered (for example, default filters). ``unknown`` : the edition mode is not set. + :type edition_mode: RumRetentionFilterMetaEditionMode, optional + + :param source: The source of the last change to a RUM retention filter. + :type source: RumRetentionFilterMetaSource, optional + + :param updated_at: The timestamp of the last update to the retention filter, in milliseconds since the Unix epoch. + :type updated_at: int, optional + + :param updated_by_handle: The handle of the user who last updated the retention filter. + :type updated_by_handle: str, optional + """ + if edition_mode is not unset: + kwargs["edition_mode"] = edition_mode + if source is not unset: + kwargs["source"] = source + if updated_at is not unset: + kwargs["updated_at"] = updated_at + if updated_by_handle is not unset: + kwargs["updated_by_handle"] = updated_by_handle + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/rum_retention_filter_meta_edition_mode.py b/src/datadog_api_client/v2/model/rum_retention_filter_meta_edition_mode.py new file mode 100644 index 0000000000..f084f72045 --- /dev/null +++ b/src/datadog_api_client/v2/model/rum_retention_filter_meta_edition_mode.py @@ -0,0 +1,41 @@ +# 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 ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class RumRetentionFilterMetaEditionMode(ModelSimple): + """ + Which attributes of the retention filter can be edited. `complete`: all attributes can be edited. `limited`: only the sample rates can be edited; the name, event type, and query are fixed and the filter cannot be reordered (for example, default filters). `unknown`: the edition mode is not set. + + :param value: Must be one of ["unknown", "complete", "limited"]. + :type value: str + """ + + allowed_values = { + "unknown", + "complete", + "limited", + } + UNKNOWN: ClassVar["RumRetentionFilterMetaEditionMode"] + COMPLETE: ClassVar["RumRetentionFilterMetaEditionMode"] + LIMITED: ClassVar["RumRetentionFilterMetaEditionMode"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +RumRetentionFilterMetaEditionMode.UNKNOWN = RumRetentionFilterMetaEditionMode("unknown") +RumRetentionFilterMetaEditionMode.COMPLETE = RumRetentionFilterMetaEditionMode("complete") +RumRetentionFilterMetaEditionMode.LIMITED = RumRetentionFilterMetaEditionMode("limited") diff --git a/src/datadog_api_client/v2/model/rum_retention_filter_meta_source.py b/src/datadog_api_client/v2/model/rum_retention_filter_meta_source.py new file mode 100644 index 0000000000..01da992707 --- /dev/null +++ b/src/datadog_api_client/v2/model/rum_retention_filter_meta_source.py @@ -0,0 +1,44 @@ +# 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 ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class RumRetentionFilterMetaSource(ModelSimple): + """ + The source of the last change to a RUM retention filter. + + :param value: Must be one of ["default", "ui", "terraform", "unknown"]. + :type value: str + """ + + allowed_values = { + "default", + "ui", + "terraform", + "unknown", + } + DEFAULT: ClassVar["RumRetentionFilterMetaSource"] + UI: ClassVar["RumRetentionFilterMetaSource"] + TERRAFORM: ClassVar["RumRetentionFilterMetaSource"] + UNKNOWN: ClassVar["RumRetentionFilterMetaSource"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +RumRetentionFilterMetaSource.DEFAULT = RumRetentionFilterMetaSource("default") +RumRetentionFilterMetaSource.UI = RumRetentionFilterMetaSource("ui") +RumRetentionFilterMetaSource.TERRAFORM = RumRetentionFilterMetaSource("terraform") +RumRetentionFilterMetaSource.UNKNOWN = RumRetentionFilterMetaSource("unknown") diff --git a/src/datadog_api_client/v2/model/rum_retention_filter_track.py b/src/datadog_api_client/v2/model/rum_retention_filter_track.py new file mode 100644 index 0000000000..c8bac489ae --- /dev/null +++ b/src/datadog_api_client/v2/model/rum_retention_filter_track.py @@ -0,0 +1,38 @@ +# 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 ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class RumRetentionFilterTrack(ModelSimple): + """ + The product track a RUM retention filter applies to. + + :param value: Must be one of ["rum", "product_analytics"]. + :type value: str + """ + + allowed_values = { + "rum", + "product_analytics", + } + RUM: ClassVar["RumRetentionFilterTrack"] + PRODUCT_ANALYTICS: ClassVar["RumRetentionFilterTrack"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +RumRetentionFilterTrack.RUM = RumRetentionFilterTrack("rum") +RumRetentionFilterTrack.PRODUCT_ANALYTICS = RumRetentionFilterTrack("product_analytics") diff --git a/src/datadog_api_client/v2/models/__init__.py b/src/datadog_api_client/v2/models/__init__.py index 7283ce9f45..2f65e3cf84 100644 --- a/src/datadog_api_client/v2/models/__init__.py +++ b/src/datadog_api_client/v2/models/__init__.py @@ -9065,6 +9065,7 @@ from datadog_api_client.v2.model.rum_operation_update_request_data import RUMOperationUpdateRequestData from datadog_api_client.v2.model.rum_operation_user import RUMOperationUser from datadog_api_client.v2.model.rum_operations_list_response import RUMOperationsListResponse +from datadog_api_client.v2.model.rum_operations_list_response_links import RUMOperationsListResponseLinks from datadog_api_client.v2.model.rum_operations_list_response_meta import RUMOperationsListResponseMeta from datadog_api_client.v2.model.rum_operations_list_response_meta_page import RUMOperationsListResponseMetaPage from datadog_api_client.v2.model.rum_product_analytics_retention_scale import RUMProductAnalyticsRetentionScale @@ -9488,7 +9489,11 @@ from datadog_api_client.v2.model.rum_retention_filter_create_request import RumRetentionFilterCreateRequest from datadog_api_client.v2.model.rum_retention_filter_data import RumRetentionFilterData from datadog_api_client.v2.model.rum_retention_filter_event_type import RumRetentionFilterEventType +from datadog_api_client.v2.model.rum_retention_filter_meta import RumRetentionFilterMeta +from datadog_api_client.v2.model.rum_retention_filter_meta_edition_mode import RumRetentionFilterMetaEditionMode +from datadog_api_client.v2.model.rum_retention_filter_meta_source import RumRetentionFilterMetaSource from datadog_api_client.v2.model.rum_retention_filter_response import RumRetentionFilterResponse +from datadog_api_client.v2.model.rum_retention_filter_track import RumRetentionFilterTrack from datadog_api_client.v2.model.rum_retention_filter_type import RumRetentionFilterType from datadog_api_client.v2.model.rum_retention_filter_update_attributes import RumRetentionFilterUpdateAttributes from datadog_api_client.v2.model.rum_retention_filter_update_data import RumRetentionFilterUpdateData @@ -19054,6 +19059,7 @@ "RUMOperationUpdateRequestData", "RUMOperationUser", "RUMOperationsListResponse", + "RUMOperationsListResponseLinks", "RUMOperationsListResponseMeta", "RUMOperationsListResponseMetaPage", "RUMProductAnalyticsRetentionScale", @@ -19409,7 +19415,11 @@ "RumRetentionFilterCreateRequest", "RumRetentionFilterData", "RumRetentionFilterEventType", + "RumRetentionFilterMeta", + "RumRetentionFilterMetaEditionMode", + "RumRetentionFilterMetaSource", "RumRetentionFilterResponse", + "RumRetentionFilterTrack", "RumRetentionFilterType", "RumRetentionFilterUpdateAttributes", "RumRetentionFilterUpdateData",