diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index f5b3f39298..be28ab3e95 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -1557,20 +1557,6 @@ components: required: true schema: type: string - RumHardcodedRetentionFilterApplicationIDParameter: - description: RUM application ID. - in: path - name: app_id - required: true - schema: - type: string - RumHardcodedRetentionFilterIDParameter: - description: Hardcoded retention filter ID. - in: path - name: rf_id - required: true - schema: - type: string RumMetricIDParameter: description: The name of the RUM-based metric. in: path @@ -28735,6 +28721,31 @@ components: - bucket_name - bucket_region type: object + DataObservabilityMonitorRunStatus: + description: The status of a data observability monitor run. + enum: + - pending + - ok + - warn + - alert + - error + example: pending + type: string + x-enum-varnames: + - PENDING + - OK + - WARN + - ALERT + - ERROR + DataObservabilityMonitorRunType: + default: monitor_run + description: The JSON:API resource type for a data observability monitor run. + enum: + - monitor_run + example: monitor_run + type: string + x-enum-varnames: + - MONITOR_RUN DataRelationshipsTeams: description: Associates teams with this schedule in a data structure. properties: @@ -39045,6 +39056,42 @@ components: meta: $ref: "#/components/schemas/DataDeletionResponseMeta" type: object + GetDataObservabilityMonitorRunStatusResponse: + description: The response for getting the status of a data observability monitor run. + properties: + data: + $ref: "#/components/schemas/GetDataObservabilityMonitorRunStatusResponseData" + required: + - data + type: object + GetDataObservabilityMonitorRunStatusResponseAttributes: + description: The attributes of a data observability monitor run status response. + properties: + error_message: + description: Error message describing why the monitor run failed. Only present when status is error. + example: "run completed but produced no metric data" + type: string + status: + $ref: "#/components/schemas/DataObservabilityMonitorRunStatus" + required: + - status + type: object + GetDataObservabilityMonitorRunStatusResponseData: + description: The data object for a data observability monitor run status response. + properties: + attributes: + $ref: "#/components/schemas/GetDataObservabilityMonitorRunStatusResponseAttributes" + id: + description: The unique identifier of the monitor run. + example: "abc123def456" + type: string + type: + $ref: "#/components/schemas/DataObservabilityMonitorRunType" + required: + - id + - type + - attributes + type: object GetDeviceAttributes: description: The device attributes properties: @@ -76983,223 +77030,6 @@ components: minimum: 0 type: number type: object - RumHardcodedCrossProductSampling: - description: Cross-product retention settings for a hardcoded retention filter. - properties: - session_replay_enabled: - description: Indicates whether Session Replay cross-product retention is active. - example: true - type: boolean - session_replay_sample_rate: - description: Percentage (0–100) of retained sessions with an ingested replay whose replay data is kept. - example: 50.0 - format: double - maximum: 100 - minimum: 0 - type: number - trace_enabled: - description: Indicates whether Trace cross-product retention is active. - example: true - type: boolean - trace_sample_rate: - description: Percentage (0–100) of retained sessions with ingested traces whose traces are indexed. - example: 25.0 - format: double - maximum: 100 - minimum: 0 - type: number - type: object - RumHardcodedCrossProductSamplingEditability: - description: Flags indicating which `cross_product_sampling` fields can be updated. Read-only. - properties: - session_replay_sample_rate: - description: |- - If `true`, `cross_product_sampling.session_replay_sample_rate` can be updated on this filter. - example: true - type: boolean - trace_sample_rate: - description: If `true`, `cross_product_sampling.trace_sample_rate` can be updated on this filter. - example: false - type: boolean - type: object - RumHardcodedCrossProductSamplingUpdate: - description: |- - Partial update for cross-product retention of a hardcoded retention filter. - Only fields whose matching flag in `cross_product_sampling_editability` is `true` can be updated. - properties: - session_replay_enabled: - description: Controls whether Session Replay cross-product retention is active. Omit to leave unchanged. - example: true - type: boolean - session_replay_sample_rate: - description: |- - Percentage (0–100) of retained sessions with an ingested replay whose replay data is kept. - Omit to leave unchanged. - example: 50.0 - format: double - maximum: 100 - minimum: 0 - type: number - trace_enabled: - description: Controls whether Trace cross-product retention is active. Omit to leave unchanged. - example: true - type: boolean - trace_sample_rate: - description: |- - Percentage (0–100) of retained sessions with ingested traces whose traces are indexed. - Omit to leave unchanged. - example: 25.0 - format: double - maximum: 100 - minimum: 0 - type: number - type: object - RumHardcodedRetentionFilterAttributes: - description: The attributes of a hardcoded retention filter. - properties: - cross_product_sampling: - $ref: "#/components/schemas/RumHardcodedCrossProductSampling" - cross_product_sampling_editability: - $ref: "#/components/schemas/RumHardcodedCrossProductSamplingEditability" - enabled: - description: Indicates whether the hardcoded retention filter is active. Read-only. - example: true - type: boolean - event_type: - $ref: "#/components/schemas/RumHardcodedRetentionFilterEventType" - name: - description: The name of the hardcoded retention filter. Read-only. - example: Replay sessions - type: string - query: - description: The query string for the hardcoded retention filter. Read-only. - example: "@session.has_replay:true" - type: string - sample_rate: - description: The retention sample rate (0–100) for the hardcoded filter. Read-only. - example: 100.0 - format: double - maximum: 100 - minimum: 0 - type: number - type: object - RumHardcodedRetentionFilterData: - description: A hardcoded retention filter. - properties: - attributes: - $ref: "#/components/schemas/RumHardcodedRetentionFilterAttributes" - id: - description: The ID of the hardcoded retention filter. - example: forced_replay_sessions - type: string - meta: - $ref: "#/components/schemas/RumHardcodedRetentionFilterMeta" - type: - $ref: "#/components/schemas/RumHardcodedRetentionFilterType" - type: object - RumHardcodedRetentionFilterEventType: - description: The type of RUM events the hardcoded filter applies to. Read-only. - enum: - - session - - view - - action - - error - - resource - - long_task - - vital - example: session - type: string - x-enum-varnames: - - SESSION - - VIEW - - ACTION - - ERROR - - RESOURCE - - LONG_TASK - - VITAL - RumHardcodedRetentionFilterMeta: - description: Metadata about the hardcoded retention filter. - properties: - source: - $ref: "#/components/schemas/RumHardcodedRetentionFilterMetaSource" - updated_at: - description: Unix epoch (in milliseconds) of the last update. - example: 1735689600000 - format: int64 - type: integer - updated_by_handle: - description: Handle of the user who last updated the filter. - example: jane.doe@example.com - type: string - type: object - RumHardcodedRetentionFilterMetaSource: - description: The source of the last update to a hardcoded retention filter. - enum: - - default - - ui - - terraform - example: ui - type: string - x-enum-varnames: - - DEFAULT - - UI - - TERRAFORM - RumHardcodedRetentionFilterResponse: - description: A hardcoded retention filter response body. - properties: - data: - $ref: "#/components/schemas/RumHardcodedRetentionFilterData" - type: object - RumHardcodedRetentionFilterType: - default: hardcoded_retention_filters - description: The resource type. The value must be `hardcoded_retention_filters`. - enum: - - hardcoded_retention_filters - example: hardcoded_retention_filters - type: string - x-enum-varnames: - - HARDCODED_RETENTION_FILTERS - RumHardcodedRetentionFilterUpdateAttributes: - description: |- - The attributes of a hardcoded retention filter that can be updated. - Only fields whose matching flag in `cross_product_sampling_editability` is `true` can be modified. - properties: - cross_product_sampling: - $ref: "#/components/schemas/RumHardcodedCrossProductSamplingUpdate" - type: object - RumHardcodedRetentionFilterUpdateData: - description: The hardcoded retention filter properties to update. - properties: - attributes: - $ref: "#/components/schemas/RumHardcodedRetentionFilterUpdateAttributes" - id: - description: The ID of the hardcoded retention filter. Must match the `rf_id` path parameter. - example: forced_replay_sessions - type: string - type: - $ref: "#/components/schemas/RumHardcodedRetentionFilterType" - required: - - id - - type - - attributes - type: object - RumHardcodedRetentionFilterUpdateRequest: - description: The hardcoded retention filter body to update. - properties: - data: - $ref: "#/components/schemas/RumHardcodedRetentionFilterUpdateData" - required: - - data - type: object - RumHardcodedRetentionFiltersResponse: - description: All hardcoded retention filters for a RUM application. - properties: - data: - description: A list of hardcoded retention filters. - items: - $ref: "#/components/schemas/RumHardcodedRetentionFilterData" - type: array - type: object RumMetricCompute: description: The compute rule to compute the RUM-based metric. properties: @@ -77898,6 +77728,27 @@ components: $ref: "#/components/schemas/RumRetentionFilterData" type: array type: object + RunDataObservabilityMonitorResponse: + description: The response returned when a data observability monitor run is triggered. + properties: + data: + $ref: "#/components/schemas/RunDataObservabilityMonitorResponseData" + required: + - data + type: object + RunDataObservabilityMonitorResponseData: + description: The data object returned when a data observability monitor run is triggered. + properties: + id: + description: The unique identifier of the monitor run. + example: "abc123def456" + type: string + type: + $ref: "#/components/schemas/DataObservabilityMonitorRunType" + required: + - id + - type + type: object RunHistoricalJobRequest: description: Run a historical job request. properties: @@ -124777,6 +124628,105 @@ paths: x-unstable: |- **Note**: This endpoint is in preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). + /api/v2/data-observability/monitors/runs/{run_id}/status: + get: + description: Retrieves the current status of a data observability monitor run. Poll this endpoint after triggering a run to determine when evaluation is complete. + operationId: GetDataObservabilityMonitorRunStatus + parameters: + - description: The ID of the monitor run to retrieve status for. + example: "abc123def456" + in: path + name: run_id + required: true + schema: + type: string + responses: + "200": + content: + application/json: + examples: + default: + value: + data: + attributes: + status: ok + id: "abc123def456" + type: monitor_run + schema: + $ref: "#/components/schemas/GetDataObservabilityMonitorRunStatusResponse" + description: OK + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Not Found + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - data_observability_monitors_write + - monitors_write + summary: Get data observability monitor run status + tags: + - Data Observability + x-unstable: |- + **Note**: This endpoint is in preview and is subject to change. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). + /api/v2/data-observability/monitors/{monitor_id}/run: + post: + description: Manually triggers a run for a data observability monitor. Only monitors that are not scheduled (manually-runnable) can be triggered this way. + operationId: RunDataObservabilityMonitor + parameters: + - description: The ID of the data observability monitor to run. + example: 12345 + in: path + name: monitor_id + required: true + schema: + format: int64 + type: integer + responses: + "200": + content: + application/json: + examples: + default: + value: + data: + id: "abc123def456" + type: monitor_run + schema: + $ref: "#/components/schemas/RunDataObservabilityMonitorResponse" + description: OK + "400": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Bad Request + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Not Found + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - data_observability_monitors_write + - monitors_write + summary: Run a data observability monitor + tags: + - Data Observability + x-unstable: |- + **Note**: This endpoint is in preview and is subject to change. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/datasets: get: description: Get all datasets that have been configured for an organization. @@ -159851,167 +159801,6 @@ paths: operator: OR permissions: - rum_apps_write - /api/v2/rum/applications/{app_id}/hardcoded_retention_filters: - get: - description: Get the list of hardcoded retention filters for a RUM application. - operationId: ListHardcodedRetentionFilters - parameters: - - $ref: "#/components/parameters/RumHardcodedRetentionFilterApplicationIDParameter" - responses: - "200": - content: - application/json: - examples: - default: - value: - data: - - attributes: - cross_product_sampling: - session_replay_enabled: true - session_replay_sample_rate: 50.0 - trace_enabled: true - trace_sample_rate: 25.0 - cross_product_sampling_editability: - session_replay_sample_rate: true - trace_sample_rate: false - enabled: true - event_type: session - name: Replay sessions - query: "@session.has_replay:true" - sample_rate: 100.0 - id: forced_replay_sessions - meta: - source: ui - updated_at: 1735689600000 - updated_by_handle: jane.doe@example.com - type: hardcoded_retention_filters - schema: - $ref: "#/components/schemas/RumHardcodedRetentionFiltersResponse" - description: OK - "403": - $ref: "#/components/responses/NotAuthorizedResponse" - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - summary: Get all hardcoded retention filters - tags: - - RUM Retention Filters Hardcoded - /api/v2/rum/applications/{app_id}/hardcoded_retention_filters/{rf_id}: - get: - description: Get a single hardcoded retention filter for a RUM application. - operationId: GetHardcodedRetentionFilter - parameters: - - $ref: "#/components/parameters/RumHardcodedRetentionFilterApplicationIDParameter" - - $ref: "#/components/parameters/RumHardcodedRetentionFilterIDParameter" - responses: - "200": - content: - application/json: - examples: - default: - value: - data: - attributes: - cross_product_sampling: - session_replay_enabled: true - session_replay_sample_rate: 50.0 - trace_enabled: true - trace_sample_rate: 25.0 - cross_product_sampling_editability: - session_replay_sample_rate: true - trace_sample_rate: false - enabled: true - event_type: session - name: Replay sessions - query: "@session.has_replay:true" - sample_rate: 100.0 - id: forced_replay_sessions - meta: - source: ui - updated_at: 1735689600000 - updated_by_handle: jane.doe@example.com - type: hardcoded_retention_filters - schema: - $ref: "#/components/schemas/RumHardcodedRetentionFilterResponse" - description: OK - "403": - $ref: "#/components/responses/NotAuthorizedResponse" - "404": - $ref: "#/components/responses/NotFoundResponse" - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - summary: Get a hardcoded retention filter - tags: - - RUM Retention Filters Hardcoded - patch: - description: |- - Update the cross-product sample rates of a hardcoded retention filter for a RUM application. - Only fields whose matching flag in `cross_product_sampling_editability` is `true` can be updated. - Any other field is read-only and cannot be sent in the payload. - Returns the updated hardcoded retention filter when the request is successful. - operationId: UpdateHardcodedRetentionFilter - parameters: - - $ref: "#/components/parameters/RumHardcodedRetentionFilterApplicationIDParameter" - - $ref: "#/components/parameters/RumHardcodedRetentionFilterIDParameter" - requestBody: - content: - application/json: - examples: - default: - value: - data: - attributes: - cross_product_sampling: - session_replay_enabled: true - session_replay_sample_rate: 50.0 - id: forced_replay_sessions - type: hardcoded_retention_filters - schema: - $ref: "#/components/schemas/RumHardcodedRetentionFilterUpdateRequest" - description: New cross-product sample rates for the hardcoded retention filter. - required: true - responses: - "200": - content: - application/json: - examples: - default: - value: - data: - attributes: - cross_product_sampling: - session_replay_enabled: true - session_replay_sample_rate: 50.0 - trace_enabled: true - trace_sample_rate: 25.0 - cross_product_sampling_editability: - session_replay_sample_rate: true - trace_sample_rate: false - enabled: true - event_type: session - name: Replay sessions - query: "@session.has_replay:true" - sample_rate: 100.0 - id: forced_replay_sessions - meta: - source: ui - updated_at: 1735689600000 - updated_by_handle: jane.doe@example.com - type: hardcoded_retention_filters - schema: - $ref: "#/components/schemas/RumHardcodedRetentionFilterResponse" - description: Updated - "400": - $ref: "#/components/responses/BadRequestResponse" - "403": - $ref: "#/components/responses/NotAuthorizedResponse" - "404": - $ref: "#/components/responses/NotFoundResponse" - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - summary: Update a hardcoded retention filter - tags: - - RUM Retention Filters Hardcoded - x-codegen-request-body-name: body /api/v2/rum/applications/{app_id}/relationships/retention_filters: patch: description: |- @@ -186518,6 +186307,8 @@ tags: - description: |- The Data Deletion API allows the user to target and delete data from the allowed products. It's currently enabled for Logs and RUM and depends on `logs_delete_data` and `rum_delete_data` permissions respectively. name: Data Deletion + - description: Manage and run data observability monitors. + name: Data Observability - description: |- Data Access Controls in Datadog is a feature that allows administrators and access managers to regulate access to sensitive data. By defining Restricted Datasets, you can ensure that only specific teams or roles can @@ -186786,9 +186577,6 @@ tags: - description: |- 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 name: RUM Insights - - description: |- - Manage hardcoded retention filters through [Manage Applications](https://app.datadoghq.com/rum/list) in RUM. - name: RUM Retention Filters Hardcoded - description: View and manage Reference Tables in your organization. name: Reference Tables - description: |- diff --git a/docs/datadog_api_client.v2.api.rst b/docs/datadog_api_client.v2.api.rst index 3f11a33c7f..cca16a9efb 100644 --- a/docs/datadog_api_client.v2.api.rst +++ b/docs/datadog_api_client.v2.api.rst @@ -291,6 +291,13 @@ datadog\_api\_client.v2.api.data\_deletion\_api module :members: :show-inheritance: +datadog\_api\_client.v2.api.data\_observability\_api module +----------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.api.data_observability_api + :members: + :show-inheritance: + datadog\_api\_client.v2.api.datasets\_api module ------------------------------------------------ @@ -711,13 +718,6 @@ datadog\_api\_client.v2.api.rum\_retention\_filters\_api module :members: :show-inheritance: -datadog\_api\_client.v2.api.rum\_retention\_filters\_hardcoded\_api module --------------------------------------------------------------------------- - -.. automodule:: datadog_api_client.v2.api.rum_retention_filters_hardcoded_api - :members: - :show-inheritance: - datadog\_api\_client.v2.api.salesforce\_integration\_api module --------------------------------------------------------------- diff --git a/docs/datadog_api_client.v2.model.rst b/docs/datadog_api_client.v2.model.rst index 3edafb9e64..21af7cf1b9 100644 --- a/docs/datadog_api_client.v2.model.rst +++ b/docs/datadog_api_client.v2.model.rst @@ -10987,6 +10987,20 @@ datadog\_api\_client.v2.model.data\_export\_config module :members: :show-inheritance: +datadog\_api\_client.v2.model.data\_observability\_monitor\_run\_status module +------------------------------------------------------------------------------ + +.. automodule:: datadog_api_client.v2.model.data_observability_monitor_run_status + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.data\_observability\_monitor\_run\_type module +---------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.data_observability_monitor_run_type + :members: + :show-inheritance: + datadog\_api\_client.v2.model.data\_relationships\_teams module --------------------------------------------------------------- @@ -15789,6 +15803,27 @@ datadog\_api\_client.v2.model.get\_data\_deletions\_response\_body module :members: :show-inheritance: +datadog\_api\_client.v2.model.get\_data\_observability\_monitor\_run\_status\_response module +--------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.get_data_observability_monitor_run_status_response + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.get\_data\_observability\_monitor\_run\_status\_response\_attributes module +--------------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.get_data_observability_monitor_run_status_response_attributes + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.get\_data\_observability\_monitor\_run\_status\_response\_data module +--------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.get_data_observability_monitor_run_status_response_data + :members: + :show-inheritance: + datadog\_api\_client.v2.model.get\_device\_attributes module ------------------------------------------------------------ @@ -32925,104 +32960,6 @@ datadog\_api\_client.v2.model.rum\_group\_by\_total module :members: :show-inheritance: -datadog\_api\_client.v2.model.rum\_hardcoded\_cross\_product\_sampling module ------------------------------------------------------------------------------ - -.. automodule:: datadog_api_client.v2.model.rum_hardcoded_cross_product_sampling - :members: - :show-inheritance: - -datadog\_api\_client.v2.model.rum\_hardcoded\_cross\_product\_sampling\_editability module ------------------------------------------------------------------------------------------- - -.. automodule:: datadog_api_client.v2.model.rum_hardcoded_cross_product_sampling_editability - :members: - :show-inheritance: - -datadog\_api\_client.v2.model.rum\_hardcoded\_cross\_product\_sampling\_update module -------------------------------------------------------------------------------------- - -.. automodule:: datadog_api_client.v2.model.rum_hardcoded_cross_product_sampling_update - :members: - :show-inheritance: - -datadog\_api\_client.v2.model.rum\_hardcoded\_retention\_filter\_attributes module ----------------------------------------------------------------------------------- - -.. automodule:: datadog_api_client.v2.model.rum_hardcoded_retention_filter_attributes - :members: - :show-inheritance: - -datadog\_api\_client.v2.model.rum\_hardcoded\_retention\_filter\_data module ----------------------------------------------------------------------------- - -.. automodule:: datadog_api_client.v2.model.rum_hardcoded_retention_filter_data - :members: - :show-inheritance: - -datadog\_api\_client.v2.model.rum\_hardcoded\_retention\_filter\_event\_type module ------------------------------------------------------------------------------------ - -.. automodule:: datadog_api_client.v2.model.rum_hardcoded_retention_filter_event_type - :members: - :show-inheritance: - -datadog\_api\_client.v2.model.rum\_hardcoded\_retention\_filter\_meta module ----------------------------------------------------------------------------- - -.. automodule:: datadog_api_client.v2.model.rum_hardcoded_retention_filter_meta - :members: - :show-inheritance: - -datadog\_api\_client.v2.model.rum\_hardcoded\_retention\_filter\_meta\_source module ------------------------------------------------------------------------------------- - -.. automodule:: datadog_api_client.v2.model.rum_hardcoded_retention_filter_meta_source - :members: - :show-inheritance: - -datadog\_api\_client.v2.model.rum\_hardcoded\_retention\_filter\_response module --------------------------------------------------------------------------------- - -.. automodule:: datadog_api_client.v2.model.rum_hardcoded_retention_filter_response - :members: - :show-inheritance: - -datadog\_api\_client.v2.model.rum\_hardcoded\_retention\_filter\_type module ----------------------------------------------------------------------------- - -.. automodule:: datadog_api_client.v2.model.rum_hardcoded_retention_filter_type - :members: - :show-inheritance: - -datadog\_api\_client.v2.model.rum\_hardcoded\_retention\_filter\_update\_attributes module ------------------------------------------------------------------------------------------- - -.. automodule:: datadog_api_client.v2.model.rum_hardcoded_retention_filter_update_attributes - :members: - :show-inheritance: - -datadog\_api\_client.v2.model.rum\_hardcoded\_retention\_filter\_update\_data module ------------------------------------------------------------------------------------- - -.. automodule:: datadog_api_client.v2.model.rum_hardcoded_retention_filter_update_data - :members: - :show-inheritance: - -datadog\_api\_client.v2.model.rum\_hardcoded\_retention\_filter\_update\_request module ---------------------------------------------------------------------------------------- - -.. automodule:: datadog_api_client.v2.model.rum_hardcoded_retention_filter_update_request - :members: - :show-inheritance: - -datadog\_api\_client.v2.model.rum\_hardcoded\_retention\_filters\_response module ---------------------------------------------------------------------------------- - -.. automodule:: datadog_api_client.v2.model.rum_hardcoded_retention_filters_response - :members: - :show-inheritance: - datadog\_api\_client.v2.model.rum\_metric\_compute module --------------------------------------------------------- @@ -33548,6 +33485,20 @@ datadog\_api\_client.v2.model.rum\_warning module :members: :show-inheritance: +datadog\_api\_client.v2.model.run\_data\_observability\_monitor\_response module +-------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.run_data_observability_monitor_response + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.run\_data\_observability\_monitor\_response\_data module +-------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.run_data_observability_monitor_response_data + :members: + :show-inheritance: + datadog\_api\_client.v2.model.run\_historical\_job\_request module ------------------------------------------------------------------ diff --git a/examples/v2/rum-retention-filters-hardcoded/GetHardcodedRetentionFilter.py b/examples/v2/rum-retention-filters-hardcoded/GetHardcodedRetentionFilter.py deleted file mode 100644 index 31d5ac03a7..0000000000 --- a/examples/v2/rum-retention-filters-hardcoded/GetHardcodedRetentionFilter.py +++ /dev/null @@ -1,16 +0,0 @@ -""" -Get a hardcoded retention filter returns "OK" response -""" - -from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.rum_retention_filters_hardcoded_api import RUMRetentionFiltersHardcodedApi - -configuration = Configuration() -with ApiClient(configuration) as api_client: - api_instance = RUMRetentionFiltersHardcodedApi(api_client) - response = api_instance.get_hardcoded_retention_filter( - app_id="Example-RUM-Retention-Filters-Hardcoded", - rf_id="Example-RUM-Retention-Filters-Hardcoded", - ) - - print(response) diff --git a/examples/v2/rum-retention-filters-hardcoded/ListHardcodedRetentionFilters.py b/examples/v2/rum-retention-filters-hardcoded/ListHardcodedRetentionFilters.py deleted file mode 100644 index 0dd066e38a..0000000000 --- a/examples/v2/rum-retention-filters-hardcoded/ListHardcodedRetentionFilters.py +++ /dev/null @@ -1,15 +0,0 @@ -""" -Get all hardcoded retention filters returns "OK" response -""" - -from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.rum_retention_filters_hardcoded_api import RUMRetentionFiltersHardcodedApi - -configuration = Configuration() -with ApiClient(configuration) as api_client: - api_instance = RUMRetentionFiltersHardcodedApi(api_client) - response = api_instance.list_hardcoded_retention_filters( - app_id="Example-RUM-Retention-Filters-Hardcoded", - ) - - print(response) diff --git a/examples/v2/rum-retention-filters-hardcoded/UpdateHardcodedRetentionFilter.py b/examples/v2/rum-retention-filters-hardcoded/UpdateHardcodedRetentionFilter.py deleted file mode 100644 index 1ff0031bb4..0000000000 --- a/examples/v2/rum-retention-filters-hardcoded/UpdateHardcodedRetentionFilter.py +++ /dev/null @@ -1,39 +0,0 @@ -""" -Update a hardcoded retention filter returns "Updated" response -""" - -from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.rum_retention_filters_hardcoded_api import RUMRetentionFiltersHardcodedApi -from datadog_api_client.v2.model.rum_hardcoded_cross_product_sampling_update import ( - RumHardcodedCrossProductSamplingUpdate, -) -from datadog_api_client.v2.model.rum_hardcoded_retention_filter_type import RumHardcodedRetentionFilterType -from datadog_api_client.v2.model.rum_hardcoded_retention_filter_update_attributes import ( - RumHardcodedRetentionFilterUpdateAttributes, -) -from datadog_api_client.v2.model.rum_hardcoded_retention_filter_update_data import RumHardcodedRetentionFilterUpdateData -from datadog_api_client.v2.model.rum_hardcoded_retention_filter_update_request import ( - RumHardcodedRetentionFilterUpdateRequest, -) - -body = RumHardcodedRetentionFilterUpdateRequest( - data=RumHardcodedRetentionFilterUpdateData( - id="REPLACE.ME", - type=RumHardcodedRetentionFilterType.HARDCODED_RETENTION_FILTERS, - attributes=RumHardcodedRetentionFilterUpdateAttributes( - cross_product_sampling=RumHardcodedCrossProductSamplingUpdate( - session_replay_sample_rate=50.0, - session_replay_enabled=True, - ), - ), - ), -) - -configuration = Configuration() -with ApiClient(configuration) as api_client: - api_instance = RUMRetentionFiltersHardcodedApi(api_client) - response = api_instance.update_hardcoded_retention_filter( - app_id="Example-RUM-Retention-Filters-Hardcoded", rf_id="Example-RUM-Retention-Filters-Hardcoded", body=body - ) - - print(response) diff --git a/src/datadog_api_client/configuration.py b/src/datadog_api_client/configuration.py index 1f5b4b5acf..5e2dcb54dc 100644 --- a/src/datadog_api_client/configuration.py +++ b/src/datadog_api_client/configuration.py @@ -482,6 +482,8 @@ def __init__( "v2.update_dashboard_secure_embed": False, "v2.get_dashboard_usage": False, "v2.list_dashboards_usage": False, + "v2.get_data_observability_monitor_run_status": False, + "v2.run_data_observability_monitor": False, "v2.create_dataset": False, "v2.delete_dataset": False, "v2.get_all_datasets": False, diff --git a/src/datadog_api_client/v2/api/data_observability_api.py b/src/datadog_api_client/v2/api/data_observability_api.py new file mode 100644 index 0000000000..87a4c8e5a5 --- /dev/null +++ b/src/datadog_api_client/v2/api/data_observability_api.py @@ -0,0 +1,104 @@ +# 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 Any, Dict + +from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint +from datadog_api_client.configuration import Configuration +from datadog_api_client.v2.model.get_data_observability_monitor_run_status_response import ( + GetDataObservabilityMonitorRunStatusResponse, +) +from datadog_api_client.v2.model.run_data_observability_monitor_response import RunDataObservabilityMonitorResponse + + +class DataObservabilityApi: + """ + Manage and run data observability monitors. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient(Configuration()) + self.api_client = api_client + + self._get_data_observability_monitor_run_status_endpoint = _Endpoint( + settings={ + "response_type": (GetDataObservabilityMonitorRunStatusResponse,), + "auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"], + "endpoint_path": "/api/v2/data-observability/monitors/runs/{run_id}/status", + "operation_id": "get_data_observability_monitor_run_status", + "http_method": "GET", + "version": "v2", + }, + params_map={ + "run_id": { + "required": True, + "openapi_types": (str,), + "attribute": "run_id", + "location": "path", + }, + }, + headers_map={ + "accept": ["application/json"], + }, + api_client=api_client, + ) + + self._run_data_observability_monitor_endpoint = _Endpoint( + settings={ + "response_type": (RunDataObservabilityMonitorResponse,), + "auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"], + "endpoint_path": "/api/v2/data-observability/monitors/{monitor_id}/run", + "operation_id": "run_data_observability_monitor", + "http_method": "POST", + "version": "v2", + }, + params_map={ + "monitor_id": { + "required": True, + "openapi_types": (int,), + "attribute": "monitor_id", + "location": "path", + }, + }, + headers_map={ + "accept": ["application/json"], + }, + api_client=api_client, + ) + + def get_data_observability_monitor_run_status( + self, + run_id: str, + ) -> GetDataObservabilityMonitorRunStatusResponse: + """Get data observability monitor run status. + + Retrieves the current status of a data observability monitor run. Poll this endpoint after triggering a run to determine when evaluation is complete. + + :param run_id: The ID of the monitor run to retrieve status for. + :type run_id: str + :rtype: GetDataObservabilityMonitorRunStatusResponse + """ + kwargs: Dict[str, Any] = {} + kwargs["run_id"] = run_id + + return self._get_data_observability_monitor_run_status_endpoint.call_with_http_info(**kwargs) + + def run_data_observability_monitor( + self, + monitor_id: int, + ) -> RunDataObservabilityMonitorResponse: + """Run a data observability monitor. + + Manually triggers a run for a data observability monitor. Only monitors that are not scheduled (manually-runnable) can be triggered this way. + + :param monitor_id: The ID of the data observability monitor to run. + :type monitor_id: int + :rtype: RunDataObservabilityMonitorResponse + """ + kwargs: Dict[str, Any] = {} + kwargs["monitor_id"] = monitor_id + + return self._run_data_observability_monitor_endpoint.call_with_http_info(**kwargs) diff --git a/src/datadog_api_client/v2/api/rum_retention_filters_hardcoded_api.py b/src/datadog_api_client/v2/api/rum_retention_filters_hardcoded_api.py deleted file mode 100644 index 31b4ca3347..0000000000 --- a/src/datadog_api_client/v2/api/rum_retention_filters_hardcoded_api.py +++ /dev/null @@ -1,178 +0,0 @@ -# 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 Any, Dict - -from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint -from datadog_api_client.configuration import Configuration -from datadog_api_client.v2.model.rum_hardcoded_retention_filters_response import RumHardcodedRetentionFiltersResponse -from datadog_api_client.v2.model.rum_hardcoded_retention_filter_response import RumHardcodedRetentionFilterResponse -from datadog_api_client.v2.model.rum_hardcoded_retention_filter_update_request import ( - RumHardcodedRetentionFilterUpdateRequest, -) - - -class RUMRetentionFiltersHardcodedApi: - """ - Manage hardcoded retention filters through `Manage Applications `_ in RUM. - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient(Configuration()) - self.api_client = api_client - - self._get_hardcoded_retention_filter_endpoint = _Endpoint( - settings={ - "response_type": (RumHardcodedRetentionFilterResponse,), - "auth": ["apiKeyAuth", "appKeyAuth"], - "endpoint_path": "/api/v2/rum/applications/{app_id}/hardcoded_retention_filters/{rf_id}", - "operation_id": "get_hardcoded_retention_filter", - "http_method": "GET", - "version": "v2", - }, - params_map={ - "app_id": { - "required": True, - "openapi_types": (str,), - "attribute": "app_id", - "location": "path", - }, - "rf_id": { - "required": True, - "openapi_types": (str,), - "attribute": "rf_id", - "location": "path", - }, - }, - headers_map={ - "accept": ["application/json"], - }, - api_client=api_client, - ) - - self._list_hardcoded_retention_filters_endpoint = _Endpoint( - settings={ - "response_type": (RumHardcodedRetentionFiltersResponse,), - "auth": ["apiKeyAuth", "appKeyAuth"], - "endpoint_path": "/api/v2/rum/applications/{app_id}/hardcoded_retention_filters", - "operation_id": "list_hardcoded_retention_filters", - "http_method": "GET", - "version": "v2", - }, - params_map={ - "app_id": { - "required": True, - "openapi_types": (str,), - "attribute": "app_id", - "location": "path", - }, - }, - headers_map={ - "accept": ["application/json"], - }, - api_client=api_client, - ) - - self._update_hardcoded_retention_filter_endpoint = _Endpoint( - settings={ - "response_type": (RumHardcodedRetentionFilterResponse,), - "auth": ["apiKeyAuth", "appKeyAuth"], - "endpoint_path": "/api/v2/rum/applications/{app_id}/hardcoded_retention_filters/{rf_id}", - "operation_id": "update_hardcoded_retention_filter", - "http_method": "PATCH", - "version": "v2", - }, - params_map={ - "app_id": { - "required": True, - "openapi_types": (str,), - "attribute": "app_id", - "location": "path", - }, - "rf_id": { - "required": True, - "openapi_types": (str,), - "attribute": "rf_id", - "location": "path", - }, - "body": { - "required": True, - "openapi_types": (RumHardcodedRetentionFilterUpdateRequest,), - "location": "body", - }, - }, - headers_map={"accept": ["application/json"], "content_type": ["application/json"]}, - api_client=api_client, - ) - - def get_hardcoded_retention_filter( - self, - app_id: str, - rf_id: str, - ) -> RumHardcodedRetentionFilterResponse: - """Get a hardcoded retention filter. - - Get a single hardcoded retention filter for a RUM application. - - :param app_id: RUM application ID. - :type app_id: str - :param rf_id: Hardcoded retention filter ID. - :type rf_id: str - :rtype: RumHardcodedRetentionFilterResponse - """ - kwargs: Dict[str, Any] = {} - kwargs["app_id"] = app_id - - kwargs["rf_id"] = rf_id - - return self._get_hardcoded_retention_filter_endpoint.call_with_http_info(**kwargs) - - def list_hardcoded_retention_filters( - self, - app_id: str, - ) -> RumHardcodedRetentionFiltersResponse: - """Get all hardcoded retention filters. - - Get the list of hardcoded retention filters for a RUM application. - - :param app_id: RUM application ID. - :type app_id: str - :rtype: RumHardcodedRetentionFiltersResponse - """ - kwargs: Dict[str, Any] = {} - kwargs["app_id"] = app_id - - return self._list_hardcoded_retention_filters_endpoint.call_with_http_info(**kwargs) - - def update_hardcoded_retention_filter( - self, - app_id: str, - rf_id: str, - body: RumHardcodedRetentionFilterUpdateRequest, - ) -> RumHardcodedRetentionFilterResponse: - """Update a hardcoded retention filter. - - Update the cross-product sample rates of a hardcoded retention filter for a RUM application. - Only fields whose matching flag in ``cross_product_sampling_editability`` is ``true`` can be updated. - Any other field is read-only and cannot be sent in the payload. - Returns the updated hardcoded retention filter when the request is successful. - - :param app_id: RUM application ID. - :type app_id: str - :param rf_id: Hardcoded retention filter ID. - :type rf_id: str - :param body: New cross-product sample rates for the hardcoded retention filter. - :type body: RumHardcodedRetentionFilterUpdateRequest - :rtype: RumHardcodedRetentionFilterResponse - """ - kwargs: Dict[str, Any] = {} - kwargs["app_id"] = app_id - - kwargs["rf_id"] = rf_id - - kwargs["body"] = body - - return self._update_hardcoded_retention_filter_endpoint.call_with_http_info(**kwargs) diff --git a/src/datadog_api_client/v2/apis/__init__.py b/src/datadog_api_client/v2/apis/__init__.py index 229b9cae28..e95caceecf 100644 --- a/src/datadog_api_client/v2/apis/__init__.py +++ b/src/datadog_api_client/v2/apis/__init__.py @@ -40,6 +40,7 @@ from datadog_api_client.v2.api.dashboard_sharing_api import DashboardSharingApi from datadog_api_client.v2.api.dashboards_api import DashboardsApi from datadog_api_client.v2.api.data_deletion_api import DataDeletionApi +from datadog_api_client.v2.api.data_observability_api import DataObservabilityApi from datadog_api_client.v2.api.datasets_api import DatasetsApi from datadog_api_client.v2.api.deployment_gates_api import DeploymentGatesApi from datadog_api_client.v2.api.domain_allowlist_api import DomainAllowlistApi @@ -87,7 +88,6 @@ from datadog_api_client.v2.api.product_analytics_api import ProductAnalyticsApi from datadog_api_client.v2.api.rum_api import RUMApi from datadog_api_client.v2.api.rum_insights_api import RUMInsightsApi -from datadog_api_client.v2.api.rum_retention_filters_hardcoded_api import RUMRetentionFiltersHardcodedApi from datadog_api_client.v2.api.reference_tables_api import ReferenceTablesApi from datadog_api_client.v2.api.report_schedules_api import ReportSchedulesApi from datadog_api_client.v2.api.restriction_policies_api import RestrictionPoliciesApi @@ -173,6 +173,7 @@ "DashboardSharingApi", "DashboardsApi", "DataDeletionApi", + "DataObservabilityApi", "DatasetsApi", "DeploymentGatesApi", "DomainAllowlistApi", @@ -220,7 +221,6 @@ "ProductAnalyticsApi", "RUMApi", "RUMInsightsApi", - "RUMRetentionFiltersHardcodedApi", "ReferenceTablesApi", "ReportSchedulesApi", "RestrictionPoliciesApi", diff --git a/src/datadog_api_client/v2/model/data_observability_monitor_run_status.py b/src/datadog_api_client/v2/model/data_observability_monitor_run_status.py new file mode 100644 index 0000000000..d31d97400a --- /dev/null +++ b/src/datadog_api_client/v2/model/data_observability_monitor_run_status.py @@ -0,0 +1,47 @@ +# 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 DataObservabilityMonitorRunStatus(ModelSimple): + """ + The status of a data observability monitor run. + + :param value: Must be one of ["pending", "ok", "warn", "alert", "error"]. + :type value: str + """ + + allowed_values = { + "pending", + "ok", + "warn", + "alert", + "error", + } + PENDING: ClassVar["DataObservabilityMonitorRunStatus"] + OK: ClassVar["DataObservabilityMonitorRunStatus"] + WARN: ClassVar["DataObservabilityMonitorRunStatus"] + ALERT: ClassVar["DataObservabilityMonitorRunStatus"] + ERROR: ClassVar["DataObservabilityMonitorRunStatus"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +DataObservabilityMonitorRunStatus.PENDING = DataObservabilityMonitorRunStatus("pending") +DataObservabilityMonitorRunStatus.OK = DataObservabilityMonitorRunStatus("ok") +DataObservabilityMonitorRunStatus.WARN = DataObservabilityMonitorRunStatus("warn") +DataObservabilityMonitorRunStatus.ALERT = DataObservabilityMonitorRunStatus("alert") +DataObservabilityMonitorRunStatus.ERROR = DataObservabilityMonitorRunStatus("error") diff --git a/src/datadog_api_client/v2/model/rum_hardcoded_retention_filter_type.py b/src/datadog_api_client/v2/model/data_observability_monitor_run_type.py similarity index 53% rename from src/datadog_api_client/v2/model/rum_hardcoded_retention_filter_type.py rename to src/datadog_api_client/v2/model/data_observability_monitor_run_type.py index b6cb057a9b..94df70285c 100644 --- a/src/datadog_api_client/v2/model/rum_hardcoded_retention_filter_type.py +++ b/src/datadog_api_client/v2/model/data_observability_monitor_run_type.py @@ -12,18 +12,18 @@ from typing import ClassVar -class RumHardcodedRetentionFilterType(ModelSimple): +class DataObservabilityMonitorRunType(ModelSimple): """ - The resource type. The value must be `hardcoded_retention_filters`. + The JSON:API resource type for a data observability monitor run. - :param value: If omitted defaults to "hardcoded_retention_filters". Must be one of ["hardcoded_retention_filters"]. + :param value: If omitted defaults to "monitor_run". Must be one of ["monitor_run"]. :type value: str """ allowed_values = { - "hardcoded_retention_filters", + "monitor_run", } - HARDCODED_RETENTION_FILTERS: ClassVar["RumHardcodedRetentionFilterType"] + MONITOR_RUN: ClassVar["DataObservabilityMonitorRunType"] @cached_property def openapi_types(_): @@ -32,6 +32,4 @@ def openapi_types(_): } -RumHardcodedRetentionFilterType.HARDCODED_RETENTION_FILTERS = RumHardcodedRetentionFilterType( - "hardcoded_retention_filters" -) +DataObservabilityMonitorRunType.MONITOR_RUN = DataObservabilityMonitorRunType("monitor_run") diff --git a/src/datadog_api_client/v2/model/get_data_observability_monitor_run_status_response.py b/src/datadog_api_client/v2/model/get_data_observability_monitor_run_status_response.py new file mode 100644 index 0000000000..00234ada98 --- /dev/null +++ b/src/datadog_api_client/v2/model/get_data_observability_monitor_run_status_response.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 typing import TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.get_data_observability_monitor_run_status_response_data import ( + GetDataObservabilityMonitorRunStatusResponseData, + ) + + +class GetDataObservabilityMonitorRunStatusResponse(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.get_data_observability_monitor_run_status_response_data import ( + GetDataObservabilityMonitorRunStatusResponseData, + ) + + return { + "data": (GetDataObservabilityMonitorRunStatusResponseData,), + } + + attribute_map = { + "data": "data", + } + + def __init__(self_, data: GetDataObservabilityMonitorRunStatusResponseData, **kwargs): + """ + The response for getting the status of a data observability monitor run. + + :param data: The data object for a data observability monitor run status response. + :type data: GetDataObservabilityMonitorRunStatusResponseData + """ + super().__init__(kwargs) + + self_.data = data diff --git a/src/datadog_api_client/v2/model/get_data_observability_monitor_run_status_response_attributes.py b/src/datadog_api_client/v2/model/get_data_observability_monitor_run_status_response_attributes.py new file mode 100644 index 0000000000..afca0c8dc6 --- /dev/null +++ b/src/datadog_api_client/v2/model/get_data_observability_monitor_run_status_response_attributes.py @@ -0,0 +1,51 @@ +# 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.data_observability_monitor_run_status import DataObservabilityMonitorRunStatus + + +class GetDataObservabilityMonitorRunStatusResponseAttributes(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.data_observability_monitor_run_status import DataObservabilityMonitorRunStatus + + return { + "error_message": (str,), + "status": (DataObservabilityMonitorRunStatus,), + } + + attribute_map = { + "error_message": "error_message", + "status": "status", + } + + def __init__( + self_, status: DataObservabilityMonitorRunStatus, error_message: Union[str, UnsetType] = unset, **kwargs + ): + """ + The attributes of a data observability monitor run status response. + + :param error_message: Error message describing why the monitor run failed. Only present when status is error. + :type error_message: str, optional + + :param status: The status of a data observability monitor run. + :type status: DataObservabilityMonitorRunStatus + """ + if error_message is not unset: + kwargs["error_message"] = error_message + super().__init__(kwargs) + + self_.status = status diff --git a/src/datadog_api_client/v2/model/get_data_observability_monitor_run_status_response_data.py b/src/datadog_api_client/v2/model/get_data_observability_monitor_run_status_response_data.py new file mode 100644 index 0000000000..78936a1b58 --- /dev/null +++ b/src/datadog_api_client/v2/model/get_data_observability_monitor_run_status_response_data.py @@ -0,0 +1,64 @@ +# 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 TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.get_data_observability_monitor_run_status_response_attributes import ( + GetDataObservabilityMonitorRunStatusResponseAttributes, + ) + from datadog_api_client.v2.model.data_observability_monitor_run_type import DataObservabilityMonitorRunType + + +class GetDataObservabilityMonitorRunStatusResponseData(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.get_data_observability_monitor_run_status_response_attributes import ( + GetDataObservabilityMonitorRunStatusResponseAttributes, + ) + from datadog_api_client.v2.model.data_observability_monitor_run_type import DataObservabilityMonitorRunType + + return { + "attributes": (GetDataObservabilityMonitorRunStatusResponseAttributes,), + "id": (str,), + "type": (DataObservabilityMonitorRunType,), + } + + attribute_map = { + "attributes": "attributes", + "id": "id", + "type": "type", + } + + def __init__( + self_, + attributes: GetDataObservabilityMonitorRunStatusResponseAttributes, + id: str, + type: DataObservabilityMonitorRunType, + **kwargs, + ): + """ + The data object for a data observability monitor run status response. + + :param attributes: The attributes of a data observability monitor run status response. + :type attributes: GetDataObservabilityMonitorRunStatusResponseAttributes + + :param id: The unique identifier of the monitor run. + :type id: str + + :param type: The JSON:API resource type for a data observability monitor run. + :type type: DataObservabilityMonitorRunType + """ + super().__init__(kwargs) + + self_.attributes = attributes + self_.id = id + self_.type = type diff --git a/src/datadog_api_client/v2/model/rum_hardcoded_cross_product_sampling.py b/src/datadog_api_client/v2/model/rum_hardcoded_cross_product_sampling.py deleted file mode 100644 index b8e4ad5a06..0000000000 --- a/src/datadog_api_client/v2/model/rum_hardcoded_cross_product_sampling.py +++ /dev/null @@ -1,75 +0,0 @@ -# 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 RumHardcodedCrossProductSampling(ModelNormal): - validations = { - "session_replay_sample_rate": { - "inclusive_maximum": 100, - "inclusive_minimum": 0, - }, - "trace_sample_rate": { - "inclusive_maximum": 100, - "inclusive_minimum": 0, - }, - } - - @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, - ): - """ - Cross-product retention settings for a hardcoded retention filter. - - :param session_replay_enabled: Indicates whether Session Replay cross-product retention is active. - :type session_replay_enabled: bool, optional - - :param session_replay_sample_rate: Percentage (0–100) of retained sessions with an ingested replay whose replay data is kept. - :type session_replay_sample_rate: float, optional - - :param trace_enabled: Indicates whether Trace cross-product retention is active. - :type trace_enabled: bool, optional - - :param trace_sample_rate: Percentage (0–100) of retained sessions with ingested traces whose traces are indexed. - :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: - kwargs["trace_sample_rate"] = trace_sample_rate - super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/rum_hardcoded_cross_product_sampling_editability.py b/src/datadog_api_client/v2/model/rum_hardcoded_cross_product_sampling_editability.py deleted file mode 100644 index 3f0afdaf3b..0000000000 --- a/src/datadog_api_client/v2/model/rum_hardcoded_cross_product_sampling_editability.py +++ /dev/null @@ -1,48 +0,0 @@ -# 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 RumHardcodedCrossProductSamplingEditability(ModelNormal): - @cached_property - def openapi_types(_): - return { - "session_replay_sample_rate": (bool,), - "trace_sample_rate": (bool,), - } - - attribute_map = { - "session_replay_sample_rate": "session_replay_sample_rate", - "trace_sample_rate": "trace_sample_rate", - } - - def __init__( - self_, - session_replay_sample_rate: Union[bool, UnsetType] = unset, - trace_sample_rate: Union[bool, UnsetType] = unset, - **kwargs, - ): - """ - Flags indicating which ``cross_product_sampling`` fields can be updated. Read-only. - - :param session_replay_sample_rate: If ``true`` , ``cross_product_sampling.session_replay_sample_rate`` can be updated on this filter. - :type session_replay_sample_rate: bool, optional - - :param trace_sample_rate: If ``true`` , ``cross_product_sampling.trace_sample_rate`` can be updated on this filter. - :type trace_sample_rate: bool, optional - """ - if session_replay_sample_rate is not unset: - kwargs["session_replay_sample_rate"] = session_replay_sample_rate - if trace_sample_rate is not unset: - kwargs["trace_sample_rate"] = trace_sample_rate - super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/rum_hardcoded_cross_product_sampling_update.py b/src/datadog_api_client/v2/model/rum_hardcoded_cross_product_sampling_update.py deleted file mode 100644 index 680ae7f33f..0000000000 --- a/src/datadog_api_client/v2/model/rum_hardcoded_cross_product_sampling_update.py +++ /dev/null @@ -1,78 +0,0 @@ -# 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 RumHardcodedCrossProductSamplingUpdate(ModelNormal): - validations = { - "session_replay_sample_rate": { - "inclusive_maximum": 100, - "inclusive_minimum": 0, - }, - "trace_sample_rate": { - "inclusive_maximum": 100, - "inclusive_minimum": 0, - }, - } - - @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, - ): - """ - Partial update for cross-product retention of a hardcoded retention filter. - Only fields whose matching flag in ``cross_product_sampling_editability`` is ``true`` can be updated. - - :param session_replay_enabled: Controls whether Session Replay cross-product retention is active. Omit to leave unchanged. - :type session_replay_enabled: bool, optional - - :param session_replay_sample_rate: Percentage (0–100) of retained sessions with an ingested replay whose replay data is kept. - Omit to leave unchanged. - :type session_replay_sample_rate: float, optional - - :param trace_enabled: Controls whether Trace cross-product retention is active. Omit to leave unchanged. - :type trace_enabled: bool, optional - - :param trace_sample_rate: Percentage (0–100) of retained sessions with ingested traces whose traces are indexed. - Omit to leave unchanged. - :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: - kwargs["trace_sample_rate"] = trace_sample_rate - super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/rum_hardcoded_retention_filter_attributes.py b/src/datadog_api_client/v2/model/rum_hardcoded_retention_filter_attributes.py deleted file mode 100644 index f1474f2357..0000000000 --- a/src/datadog_api_client/v2/model/rum_hardcoded_retention_filter_attributes.py +++ /dev/null @@ -1,113 +0,0 @@ -# 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_hardcoded_cross_product_sampling import RumHardcodedCrossProductSampling - from datadog_api_client.v2.model.rum_hardcoded_cross_product_sampling_editability import ( - RumHardcodedCrossProductSamplingEditability, - ) - from datadog_api_client.v2.model.rum_hardcoded_retention_filter_event_type import ( - RumHardcodedRetentionFilterEventType, - ) - - -class RumHardcodedRetentionFilterAttributes(ModelNormal): - validations = { - "sample_rate": { - "inclusive_maximum": 100, - "inclusive_minimum": 0, - }, - } - - @cached_property - def openapi_types(_): - from datadog_api_client.v2.model.rum_hardcoded_cross_product_sampling import RumHardcodedCrossProductSampling - from datadog_api_client.v2.model.rum_hardcoded_cross_product_sampling_editability import ( - RumHardcodedCrossProductSamplingEditability, - ) - from datadog_api_client.v2.model.rum_hardcoded_retention_filter_event_type import ( - RumHardcodedRetentionFilterEventType, - ) - - return { - "cross_product_sampling": (RumHardcodedCrossProductSampling,), - "cross_product_sampling_editability": (RumHardcodedCrossProductSamplingEditability,), - "enabled": (bool,), - "event_type": (RumHardcodedRetentionFilterEventType,), - "name": (str,), - "query": (str,), - "sample_rate": (float,), - } - - attribute_map = { - "cross_product_sampling": "cross_product_sampling", - "cross_product_sampling_editability": "cross_product_sampling_editability", - "enabled": "enabled", - "event_type": "event_type", - "name": "name", - "query": "query", - "sample_rate": "sample_rate", - } - - def __init__( - self_, - cross_product_sampling: Union[RumHardcodedCrossProductSampling, UnsetType] = unset, - cross_product_sampling_editability: Union[RumHardcodedCrossProductSamplingEditability, UnsetType] = unset, - enabled: Union[bool, UnsetType] = unset, - event_type: Union[RumHardcodedRetentionFilterEventType, UnsetType] = unset, - name: Union[str, UnsetType] = unset, - query: Union[str, UnsetType] = unset, - sample_rate: Union[float, UnsetType] = unset, - **kwargs, - ): - """ - The attributes of a hardcoded retention filter. - - :param cross_product_sampling: Cross-product retention settings for a hardcoded retention filter. - :type cross_product_sampling: RumHardcodedCrossProductSampling, optional - - :param cross_product_sampling_editability: Flags indicating which ``cross_product_sampling`` fields can be updated. Read-only. - :type cross_product_sampling_editability: RumHardcodedCrossProductSamplingEditability, optional - - :param enabled: Indicates whether the hardcoded retention filter is active. Read-only. - :type enabled: bool, optional - - :param event_type: The type of RUM events the hardcoded filter applies to. Read-only. - :type event_type: RumHardcodedRetentionFilterEventType, optional - - :param name: The name of the hardcoded retention filter. Read-only. - :type name: str, optional - - :param query: The query string for the hardcoded retention filter. Read-only. - :type query: str, optional - - :param sample_rate: The retention sample rate (0–100) for the hardcoded filter. Read-only. - :type sample_rate: float, optional - """ - if cross_product_sampling is not unset: - kwargs["cross_product_sampling"] = cross_product_sampling - if cross_product_sampling_editability is not unset: - kwargs["cross_product_sampling_editability"] = cross_product_sampling_editability - if enabled is not unset: - kwargs["enabled"] = enabled - if event_type is not unset: - kwargs["event_type"] = event_type - if name is not unset: - kwargs["name"] = name - if query is not unset: - kwargs["query"] = query - if sample_rate is not unset: - kwargs["sample_rate"] = sample_rate - super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/rum_hardcoded_retention_filter_data.py b/src/datadog_api_client/v2/model/rum_hardcoded_retention_filter_data.py deleted file mode 100644 index 1af6575e70..0000000000 --- a/src/datadog_api_client/v2/model/rum_hardcoded_retention_filter_data.py +++ /dev/null @@ -1,78 +0,0 @@ -# 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_hardcoded_retention_filter_attributes import ( - RumHardcodedRetentionFilterAttributes, - ) - from datadog_api_client.v2.model.rum_hardcoded_retention_filter_meta import RumHardcodedRetentionFilterMeta - from datadog_api_client.v2.model.rum_hardcoded_retention_filter_type import RumHardcodedRetentionFilterType - - -class RumHardcodedRetentionFilterData(ModelNormal): - @cached_property - def openapi_types(_): - from datadog_api_client.v2.model.rum_hardcoded_retention_filter_attributes import ( - RumHardcodedRetentionFilterAttributes, - ) - from datadog_api_client.v2.model.rum_hardcoded_retention_filter_meta import RumHardcodedRetentionFilterMeta - from datadog_api_client.v2.model.rum_hardcoded_retention_filter_type import RumHardcodedRetentionFilterType - - return { - "attributes": (RumHardcodedRetentionFilterAttributes,), - "id": (str,), - "meta": (RumHardcodedRetentionFilterMeta,), - "type": (RumHardcodedRetentionFilterType,), - } - - attribute_map = { - "attributes": "attributes", - "id": "id", - "meta": "meta", - "type": "type", - } - - def __init__( - self_, - attributes: Union[RumHardcodedRetentionFilterAttributes, UnsetType] = unset, - id: Union[str, UnsetType] = unset, - meta: Union[RumHardcodedRetentionFilterMeta, UnsetType] = unset, - type: Union[RumHardcodedRetentionFilterType, UnsetType] = unset, - **kwargs, - ): - """ - A hardcoded retention filter. - - :param attributes: The attributes of a hardcoded retention filter. - :type attributes: RumHardcodedRetentionFilterAttributes, optional - - :param id: The ID of the hardcoded retention filter. - :type id: str, optional - - :param meta: Metadata about the hardcoded retention filter. - :type meta: RumHardcodedRetentionFilterMeta, optional - - :param type: The resource type. The value must be ``hardcoded_retention_filters``. - :type type: RumHardcodedRetentionFilterType, optional - """ - if attributes is not unset: - 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_hardcoded_retention_filter_event_type.py b/src/datadog_api_client/v2/model/rum_hardcoded_retention_filter_event_type.py deleted file mode 100644 index abc2ee2f43..0000000000 --- a/src/datadog_api_client/v2/model/rum_hardcoded_retention_filter_event_type.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 RumHardcodedRetentionFilterEventType(ModelSimple): - """ - The type of RUM events the hardcoded filter applies to. Read-only. - - :param value: Must be one of ["session", "view", "action", "error", "resource", "long_task", "vital"]. - :type value: str - """ - - allowed_values = { - "session", - "view", - "action", - "error", - "resource", - "long_task", - "vital", - } - SESSION: ClassVar["RumHardcodedRetentionFilterEventType"] - VIEW: ClassVar["RumHardcodedRetentionFilterEventType"] - ACTION: ClassVar["RumHardcodedRetentionFilterEventType"] - ERROR: ClassVar["RumHardcodedRetentionFilterEventType"] - RESOURCE: ClassVar["RumHardcodedRetentionFilterEventType"] - LONG_TASK: ClassVar["RumHardcodedRetentionFilterEventType"] - VITAL: ClassVar["RumHardcodedRetentionFilterEventType"] - - @cached_property - def openapi_types(_): - return { - "value": (str,), - } - - -RumHardcodedRetentionFilterEventType.SESSION = RumHardcodedRetentionFilterEventType("session") -RumHardcodedRetentionFilterEventType.VIEW = RumHardcodedRetentionFilterEventType("view") -RumHardcodedRetentionFilterEventType.ACTION = RumHardcodedRetentionFilterEventType("action") -RumHardcodedRetentionFilterEventType.ERROR = RumHardcodedRetentionFilterEventType("error") -RumHardcodedRetentionFilterEventType.RESOURCE = RumHardcodedRetentionFilterEventType("resource") -RumHardcodedRetentionFilterEventType.LONG_TASK = RumHardcodedRetentionFilterEventType("long_task") -RumHardcodedRetentionFilterEventType.VITAL = RumHardcodedRetentionFilterEventType("vital") diff --git a/src/datadog_api_client/v2/model/rum_hardcoded_retention_filter_meta.py b/src/datadog_api_client/v2/model/rum_hardcoded_retention_filter_meta.py deleted file mode 100644 index 7b90351a50..0000000000 --- a/src/datadog_api_client/v2/model/rum_hardcoded_retention_filter_meta.py +++ /dev/null @@ -1,66 +0,0 @@ -# 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_hardcoded_retention_filter_meta_source import ( - RumHardcodedRetentionFilterMetaSource, - ) - - -class RumHardcodedRetentionFilterMeta(ModelNormal): - @cached_property - def openapi_types(_): - from datadog_api_client.v2.model.rum_hardcoded_retention_filter_meta_source import ( - RumHardcodedRetentionFilterMetaSource, - ) - - return { - "source": (RumHardcodedRetentionFilterMetaSource,), - "updated_at": (int,), - "updated_by_handle": (str,), - } - - attribute_map = { - "source": "source", - "updated_at": "updated_at", - "updated_by_handle": "updated_by_handle", - } - - def __init__( - self_, - source: Union[RumHardcodedRetentionFilterMetaSource, UnsetType] = unset, - updated_at: Union[int, UnsetType] = unset, - updated_by_handle: Union[str, UnsetType] = unset, - **kwargs, - ): - """ - Metadata about the hardcoded retention filter. - - :param source: The source of the last update to a hardcoded retention filter. - :type source: RumHardcodedRetentionFilterMetaSource, optional - - :param updated_at: Unix epoch (in milliseconds) of the last update. - :type updated_at: int, optional - - :param updated_by_handle: Handle of the user who last updated the filter. - :type updated_by_handle: str, optional - """ - 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_hardcoded_retention_filter_meta_source.py b/src/datadog_api_client/v2/model/rum_hardcoded_retention_filter_meta_source.py deleted file mode 100644 index 5d16968853..0000000000 --- a/src/datadog_api_client/v2/model/rum_hardcoded_retention_filter_meta_source.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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 RumHardcodedRetentionFilterMetaSource(ModelSimple): - """ - The source of the last update to a hardcoded retention filter. - - :param value: Must be one of ["default", "ui", "terraform"]. - :type value: str - """ - - allowed_values = { - "default", - "ui", - "terraform", - } - DEFAULT: ClassVar["RumHardcodedRetentionFilterMetaSource"] - UI: ClassVar["RumHardcodedRetentionFilterMetaSource"] - TERRAFORM: ClassVar["RumHardcodedRetentionFilterMetaSource"] - - @cached_property - def openapi_types(_): - return { - "value": (str,), - } - - -RumHardcodedRetentionFilterMetaSource.DEFAULT = RumHardcodedRetentionFilterMetaSource("default") -RumHardcodedRetentionFilterMetaSource.UI = RumHardcodedRetentionFilterMetaSource("ui") -RumHardcodedRetentionFilterMetaSource.TERRAFORM = RumHardcodedRetentionFilterMetaSource("terraform") diff --git a/src/datadog_api_client/v2/model/rum_hardcoded_retention_filter_response.py b/src/datadog_api_client/v2/model/rum_hardcoded_retention_filter_response.py deleted file mode 100644 index 68abe0dd1a..0000000000 --- a/src/datadog_api_client/v2/model/rum_hardcoded_retention_filter_response.py +++ /dev/null @@ -1,42 +0,0 @@ -# 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_hardcoded_retention_filter_data import RumHardcodedRetentionFilterData - - -class RumHardcodedRetentionFilterResponse(ModelNormal): - @cached_property - def openapi_types(_): - from datadog_api_client.v2.model.rum_hardcoded_retention_filter_data import RumHardcodedRetentionFilterData - - return { - "data": (RumHardcodedRetentionFilterData,), - } - - attribute_map = { - "data": "data", - } - - def __init__(self_, data: Union[RumHardcodedRetentionFilterData, UnsetType] = unset, **kwargs): - """ - A hardcoded retention filter response body. - - :param data: A hardcoded retention filter. - :type data: RumHardcodedRetentionFilterData, optional - """ - if data is not unset: - kwargs["data"] = data - super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/rum_hardcoded_retention_filter_update_attributes.py b/src/datadog_api_client/v2/model/rum_hardcoded_retention_filter_update_attributes.py deleted file mode 100644 index 5aca054b30..0000000000 --- a/src/datadog_api_client/v2/model/rum_hardcoded_retention_filter_update_attributes.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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_hardcoded_cross_product_sampling_update import ( - RumHardcodedCrossProductSamplingUpdate, - ) - - -class RumHardcodedRetentionFilterUpdateAttributes(ModelNormal): - @cached_property - def openapi_types(_): - from datadog_api_client.v2.model.rum_hardcoded_cross_product_sampling_update import ( - RumHardcodedCrossProductSamplingUpdate, - ) - - return { - "cross_product_sampling": (RumHardcodedCrossProductSamplingUpdate,), - } - - attribute_map = { - "cross_product_sampling": "cross_product_sampling", - } - - def __init__( - self_, cross_product_sampling: Union[RumHardcodedCrossProductSamplingUpdate, UnsetType] = unset, **kwargs - ): - """ - The attributes of a hardcoded retention filter that can be updated. - Only fields whose matching flag in ``cross_product_sampling_editability`` is ``true`` can be modified. - - :param cross_product_sampling: Partial update for cross-product retention of a hardcoded retention filter. - Only fields whose matching flag in ``cross_product_sampling_editability`` is ``true`` can be updated. - :type cross_product_sampling: RumHardcodedCrossProductSamplingUpdate, optional - """ - if cross_product_sampling is not unset: - kwargs["cross_product_sampling"] = cross_product_sampling - super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/rum_hardcoded_retention_filter_update_data.py b/src/datadog_api_client/v2/model/rum_hardcoded_retention_filter_update_data.py deleted file mode 100644 index db67623f1e..0000000000 --- a/src/datadog_api_client/v2/model/rum_hardcoded_retention_filter_update_data.py +++ /dev/null @@ -1,65 +0,0 @@ -# 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 TYPE_CHECKING - -from datadog_api_client.model_utils import ( - ModelNormal, - cached_property, -) - - -if TYPE_CHECKING: - from datadog_api_client.v2.model.rum_hardcoded_retention_filter_update_attributes import ( - RumHardcodedRetentionFilterUpdateAttributes, - ) - from datadog_api_client.v2.model.rum_hardcoded_retention_filter_type import RumHardcodedRetentionFilterType - - -class RumHardcodedRetentionFilterUpdateData(ModelNormal): - @cached_property - def openapi_types(_): - from datadog_api_client.v2.model.rum_hardcoded_retention_filter_update_attributes import ( - RumHardcodedRetentionFilterUpdateAttributes, - ) - from datadog_api_client.v2.model.rum_hardcoded_retention_filter_type import RumHardcodedRetentionFilterType - - return { - "attributes": (RumHardcodedRetentionFilterUpdateAttributes,), - "id": (str,), - "type": (RumHardcodedRetentionFilterType,), - } - - attribute_map = { - "attributes": "attributes", - "id": "id", - "type": "type", - } - - def __init__( - self_, - attributes: RumHardcodedRetentionFilterUpdateAttributes, - id: str, - type: RumHardcodedRetentionFilterType, - **kwargs, - ): - """ - The hardcoded retention filter properties to update. - - :param attributes: The attributes of a hardcoded retention filter that can be updated. - Only fields whose matching flag in ``cross_product_sampling_editability`` is ``true`` can be modified. - :type attributes: RumHardcodedRetentionFilterUpdateAttributes - - :param id: The ID of the hardcoded retention filter. Must match the ``rf_id`` path parameter. - :type id: str - - :param type: The resource type. The value must be ``hardcoded_retention_filters``. - :type type: RumHardcodedRetentionFilterType - """ - super().__init__(kwargs) - - self_.attributes = attributes - self_.id = id - self_.type = type diff --git a/src/datadog_api_client/v2/model/rum_hardcoded_retention_filter_update_request.py b/src/datadog_api_client/v2/model/rum_hardcoded_retention_filter_update_request.py deleted file mode 100644 index e562703a6a..0000000000 --- a/src/datadog_api_client/v2/model/rum_hardcoded_retention_filter_update_request.py +++ /dev/null @@ -1,44 +0,0 @@ -# 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 TYPE_CHECKING - -from datadog_api_client.model_utils import ( - ModelNormal, - cached_property, -) - - -if TYPE_CHECKING: - from datadog_api_client.v2.model.rum_hardcoded_retention_filter_update_data import ( - RumHardcodedRetentionFilterUpdateData, - ) - - -class RumHardcodedRetentionFilterUpdateRequest(ModelNormal): - @cached_property - def openapi_types(_): - from datadog_api_client.v2.model.rum_hardcoded_retention_filter_update_data import ( - RumHardcodedRetentionFilterUpdateData, - ) - - return { - "data": (RumHardcodedRetentionFilterUpdateData,), - } - - attribute_map = { - "data": "data", - } - - def __init__(self_, data: RumHardcodedRetentionFilterUpdateData, **kwargs): - """ - The hardcoded retention filter body to update. - - :param data: The hardcoded retention filter properties to update. - :type data: RumHardcodedRetentionFilterUpdateData - """ - super().__init__(kwargs) - - self_.data = data diff --git a/src/datadog_api_client/v2/model/rum_hardcoded_retention_filters_response.py b/src/datadog_api_client/v2/model/rum_hardcoded_retention_filters_response.py deleted file mode 100644 index 3359bd3434..0000000000 --- a/src/datadog_api_client/v2/model/rum_hardcoded_retention_filters_response.py +++ /dev/null @@ -1,42 +0,0 @@ -# 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 List, 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_hardcoded_retention_filter_data import RumHardcodedRetentionFilterData - - -class RumHardcodedRetentionFiltersResponse(ModelNormal): - @cached_property - def openapi_types(_): - from datadog_api_client.v2.model.rum_hardcoded_retention_filter_data import RumHardcodedRetentionFilterData - - return { - "data": ([RumHardcodedRetentionFilterData],), - } - - attribute_map = { - "data": "data", - } - - def __init__(self_, data: Union[List[RumHardcodedRetentionFilterData], UnsetType] = unset, **kwargs): - """ - All hardcoded retention filters for a RUM application. - - :param data: A list of hardcoded retention filters. - :type data: [RumHardcodedRetentionFilterData], optional - """ - if data is not unset: - kwargs["data"] = data - super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/run_data_observability_monitor_response.py b/src/datadog_api_client/v2/model/run_data_observability_monitor_response.py new file mode 100644 index 0000000000..e03a51b913 --- /dev/null +++ b/src/datadog_api_client/v2/model/run_data_observability_monitor_response.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 typing import TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.run_data_observability_monitor_response_data import ( + RunDataObservabilityMonitorResponseData, + ) + + +class RunDataObservabilityMonitorResponse(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.run_data_observability_monitor_response_data import ( + RunDataObservabilityMonitorResponseData, + ) + + return { + "data": (RunDataObservabilityMonitorResponseData,), + } + + attribute_map = { + "data": "data", + } + + def __init__(self_, data: RunDataObservabilityMonitorResponseData, **kwargs): + """ + The response returned when a data observability monitor run is triggered. + + :param data: The data object returned when a data observability monitor run is triggered. + :type data: RunDataObservabilityMonitorResponseData + """ + super().__init__(kwargs) + + self_.data = data diff --git a/src/datadog_api_client/v2/model/run_data_observability_monitor_response_data.py b/src/datadog_api_client/v2/model/run_data_observability_monitor_response_data.py new file mode 100644 index 0000000000..b6928eb96f --- /dev/null +++ b/src/datadog_api_client/v2/model/run_data_observability_monitor_response_data.py @@ -0,0 +1,46 @@ +# 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 TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.data_observability_monitor_run_type import DataObservabilityMonitorRunType + + +class RunDataObservabilityMonitorResponseData(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.data_observability_monitor_run_type import DataObservabilityMonitorRunType + + return { + "id": (str,), + "type": (DataObservabilityMonitorRunType,), + } + + attribute_map = { + "id": "id", + "type": "type", + } + + def __init__(self_, id: str, type: DataObservabilityMonitorRunType, **kwargs): + """ + The data object returned when a data observability monitor run is triggered. + + :param id: The unique identifier of the monitor run. + :type id: str + + :param type: The JSON:API resource type for a data observability monitor run. + :type type: DataObservabilityMonitorRunType + """ + super().__init__(kwargs) + + self_.id = id + self_.type = type diff --git a/src/datadog_api_client/v2/models/__init__.py b/src/datadog_api_client/v2/models/__init__.py index 5adc0b4e1b..c7879b593a 100644 --- a/src/datadog_api_client/v2/models/__init__.py +++ b/src/datadog_api_client/v2/models/__init__.py @@ -2121,6 +2121,8 @@ from datadog_api_client.v2.model.data_deletion_response_item_attributes import DataDeletionResponseItemAttributes from datadog_api_client.v2.model.data_deletion_response_meta import DataDeletionResponseMeta from datadog_api_client.v2.model.data_export_config import DataExportConfig +from datadog_api_client.v2.model.data_observability_monitor_run_status import DataObservabilityMonitorRunStatus +from datadog_api_client.v2.model.data_observability_monitor_run_type import DataObservabilityMonitorRunType from datadog_api_client.v2.model.data_relationships_teams import DataRelationshipsTeams from datadog_api_client.v2.model.data_relationships_teams_data_items import DataRelationshipsTeamsDataItems from datadog_api_client.v2.model.data_relationships_teams_data_items_type import DataRelationshipsTeamsDataItemsType @@ -2925,6 +2927,15 @@ from datadog_api_client.v2.model.get_blueprints_response import GetBlueprintsResponse from datadog_api_client.v2.model.get_custom_framework_response import GetCustomFrameworkResponse from datadog_api_client.v2.model.get_data_deletions_response_body import GetDataDeletionsResponseBody +from datadog_api_client.v2.model.get_data_observability_monitor_run_status_response import ( + GetDataObservabilityMonitorRunStatusResponse, +) +from datadog_api_client.v2.model.get_data_observability_monitor_run_status_response_attributes import ( + GetDataObservabilityMonitorRunStatusResponseAttributes, +) +from datadog_api_client.v2.model.get_data_observability_monitor_run_status_response_data import ( + GetDataObservabilityMonitorRunStatusResponseData, +) from datadog_api_client.v2.model.get_device_attributes import GetDeviceAttributes from datadog_api_client.v2.model.get_device_data import GetDeviceData from datadog_api_client.v2.model.get_device_response import GetDeviceResponse @@ -6517,28 +6528,6 @@ from datadog_api_client.v2.model.rum_cross_product_sampling import RumCrossProductSampling from datadog_api_client.v2.model.rum_cross_product_sampling_create import RumCrossProductSamplingCreate from datadog_api_client.v2.model.rum_cross_product_sampling_update import RumCrossProductSamplingUpdate -from datadog_api_client.v2.model.rum_hardcoded_cross_product_sampling import RumHardcodedCrossProductSampling -from datadog_api_client.v2.model.rum_hardcoded_cross_product_sampling_editability import ( - RumHardcodedCrossProductSamplingEditability, -) -from datadog_api_client.v2.model.rum_hardcoded_cross_product_sampling_update import ( - RumHardcodedCrossProductSamplingUpdate, -) -from datadog_api_client.v2.model.rum_hardcoded_retention_filter_attributes import RumHardcodedRetentionFilterAttributes -from datadog_api_client.v2.model.rum_hardcoded_retention_filter_data import RumHardcodedRetentionFilterData -from datadog_api_client.v2.model.rum_hardcoded_retention_filter_event_type import RumHardcodedRetentionFilterEventType -from datadog_api_client.v2.model.rum_hardcoded_retention_filter_meta import RumHardcodedRetentionFilterMeta -from datadog_api_client.v2.model.rum_hardcoded_retention_filter_meta_source import RumHardcodedRetentionFilterMetaSource -from datadog_api_client.v2.model.rum_hardcoded_retention_filter_response import RumHardcodedRetentionFilterResponse -from datadog_api_client.v2.model.rum_hardcoded_retention_filter_type import RumHardcodedRetentionFilterType -from datadog_api_client.v2.model.rum_hardcoded_retention_filter_update_attributes import ( - RumHardcodedRetentionFilterUpdateAttributes, -) -from datadog_api_client.v2.model.rum_hardcoded_retention_filter_update_data import RumHardcodedRetentionFilterUpdateData -from datadog_api_client.v2.model.rum_hardcoded_retention_filter_update_request import ( - RumHardcodedRetentionFilterUpdateRequest, -) -from datadog_api_client.v2.model.rum_hardcoded_retention_filters_response import RumHardcodedRetentionFiltersResponse from datadog_api_client.v2.model.rum_metric_compute import RumMetricCompute from datadog_api_client.v2.model.rum_metric_compute_aggregation_type import RumMetricComputeAggregationType from datadog_api_client.v2.model.rum_metric_create_attributes import RumMetricCreateAttributes @@ -6606,6 +6595,10 @@ from datadog_api_client.v2.model.rum_retention_filters_order_request import RumRetentionFiltersOrderRequest from datadog_api_client.v2.model.rum_retention_filters_order_response import RumRetentionFiltersOrderResponse from datadog_api_client.v2.model.rum_retention_filters_response import RumRetentionFiltersResponse +from datadog_api_client.v2.model.run_data_observability_monitor_response import RunDataObservabilityMonitorResponse +from datadog_api_client.v2.model.run_data_observability_monitor_response_data import ( + RunDataObservabilityMonitorResponseData, +) from datadog_api_client.v2.model.run_historical_job_request import RunHistoricalJobRequest from datadog_api_client.v2.model.run_historical_job_request_attributes import RunHistoricalJobRequestAttributes from datadog_api_client.v2.model.run_historical_job_request_data import RunHistoricalJobRequestData @@ -10765,6 +10758,8 @@ "DataDeletionResponseItemAttributes", "DataDeletionResponseMeta", "DataExportConfig", + "DataObservabilityMonitorRunStatus", + "DataObservabilityMonitorRunType", "DataRelationshipsTeams", "DataRelationshipsTeamsDataItems", "DataRelationshipsTeamsDataItemsType", @@ -11417,6 +11412,9 @@ "GetBlueprintsResponse", "GetCustomFrameworkResponse", "GetDataDeletionsResponseBody", + "GetDataObservabilityMonitorRunStatusResponse", + "GetDataObservabilityMonitorRunStatusResponseAttributes", + "GetDataObservabilityMonitorRunStatusResponseData", "GetDeviceAttributes", "GetDeviceData", "GetDeviceResponse", @@ -13881,20 +13879,6 @@ "RumCrossProductSampling", "RumCrossProductSamplingCreate", "RumCrossProductSamplingUpdate", - "RumHardcodedCrossProductSampling", - "RumHardcodedCrossProductSamplingEditability", - "RumHardcodedCrossProductSamplingUpdate", - "RumHardcodedRetentionFilterAttributes", - "RumHardcodedRetentionFilterData", - "RumHardcodedRetentionFilterEventType", - "RumHardcodedRetentionFilterMeta", - "RumHardcodedRetentionFilterMetaSource", - "RumHardcodedRetentionFilterResponse", - "RumHardcodedRetentionFilterType", - "RumHardcodedRetentionFilterUpdateAttributes", - "RumHardcodedRetentionFilterUpdateData", - "RumHardcodedRetentionFilterUpdateRequest", - "RumHardcodedRetentionFiltersResponse", "RumMetricCompute", "RumMetricComputeAggregationType", "RumMetricCreateAttributes", @@ -13956,6 +13940,8 @@ "RumRetentionFiltersOrderRequest", "RumRetentionFiltersOrderResponse", "RumRetentionFiltersResponse", + "RunDataObservabilityMonitorResponse", + "RunDataObservabilityMonitorResponseData", "RunHistoricalJobRequest", "RunHistoricalJobRequestAttributes", "RunHistoricalJobRequestData", diff --git a/tests/v2/features/rum_hardcoded_retention_filters.feature b/tests/v2/features/rum_hardcoded_retention_filters.feature deleted file mode 100644 index 05e942989b..0000000000 --- a/tests/v2/features/rum_hardcoded_retention_filters.feature +++ /dev/null @@ -1,59 +0,0 @@ -@endpoint(rum-hardcoded-retention-filters) @endpoint(rum-hardcoded-retention-filters-v2) -Feature: RUM Retention Filters Hardcoded - Manage hardcoded retention filters through [Manage - Applications](https://app.datadoghq.com/rum/list) in RUM. - - Background: - Given a valid "apiKeyAuth" key in the system - And a valid "appKeyAuth" key in the system - And an instance of "RUMRetentionFiltersHardcoded" API - - @generated @skip @team:DataDog/rum-backend - Scenario: Get a hardcoded retention filter returns "Not Found" response - Given new "GetHardcodedRetentionFilter" request - And request contains "app_id" parameter with value "{{ unique }}" - And request contains "rf_id" parameter with value "{{ unique }}" - When the request is sent - Then the response status is 404 Not Found - - @generated @skip @team:DataDog/rum-backend - Scenario: Get a hardcoded retention filter returns "OK" response - Given new "GetHardcodedRetentionFilter" request - And request contains "app_id" parameter with value "{{ unique }}" - And request contains "rf_id" parameter with value "{{ unique }}" - When the request is sent - Then the response status is 200 OK - - @generated @skip @team:DataDog/rum-backend - Scenario: Get all hardcoded retention filters returns "OK" response - Given new "ListHardcodedRetentionFilters" request - And request contains "app_id" parameter with value "{{ unique }}" - When the request is sent - Then the response status is 200 OK - - @generated @skip @team:DataDog/rum-backend - Scenario: Update a hardcoded retention filter returns "Bad Request" response - Given new "UpdateHardcodedRetentionFilter" request - And request contains "app_id" parameter with value "{{ unique }}" - And request contains "rf_id" parameter with value "{{ unique }}" - And body with value {"data": {"id": "REPLACE.ME", "type": "hardcoded_retention_filters", "attributes": {"cross_product_sampling": {"session_replay_sample_rate": 50.0}}}} - When the request is sent - Then the response status is 400 Bad Request - - @generated @skip @team:DataDog/rum-backend - Scenario: Update a hardcoded retention filter returns "Not Found" response - Given new "UpdateHardcodedRetentionFilter" request - And request contains "app_id" parameter with value "{{ unique }}" - And request contains "rf_id" parameter with value "{{ unique }}" - And body with value {"data": {"id": "REPLACE.ME", "type": "hardcoded_retention_filters", "attributes": {"cross_product_sampling": {"session_replay_sample_rate": 50.0}}}} - When the request is sent - Then the response status is 404 Not Found - - @generated @skip @team:DataDog/rum-backend - Scenario: Update a hardcoded retention filter returns "Updated" response - Given new "UpdateHardcodedRetentionFilter" request - And request contains "app_id" parameter with value "{{ unique }}" - And request contains "rf_id" parameter with value "{{ unique }}" - And body with value {"data": {"id": "REPLACE.ME", "type": "hardcoded_retention_filters", "attributes": {"cross_product_sampling": {"session_replay_sample_rate": 50.0, "session_replay_enabled": true}}}} - When the request is sent - Then the response status is 200 OK diff --git a/tests/v2/features/rum_retention_filters_hardcoded.feature b/tests/v2/features/rum_retention_filters_hardcoded.feature deleted file mode 100644 index 2ce25e7a3a..0000000000 --- a/tests/v2/features/rum_retention_filters_hardcoded.feature +++ /dev/null @@ -1,59 +0,0 @@ -@endpoint(rum-retention-filters-hardcoded) @endpoint(rum-retention-filters-hardcoded-v2) -Feature: RUM Retention Filters Hardcoded - Manage hardcoded retention filters through [Manage - Applications](https://app.datadoghq.com/rum/list) in RUM. - - Background: - Given a valid "apiKeyAuth" key in the system - And a valid "appKeyAuth" key in the system - And an instance of "RUMRetentionFiltersHardcoded" API - - @generated @skip @team:DataDog/rum-backend - Scenario: Get a hardcoded retention filter returns "Not Found" response - Given new "GetHardcodedRetentionFilter" request - And request contains "app_id" parameter from "REPLACE.ME" - And request contains "rf_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 404 Not Found - - @generated @skip @team:DataDog/rum-backend - Scenario: Get a hardcoded retention filter returns "OK" response - Given new "GetHardcodedRetentionFilter" request - And request contains "app_id" parameter from "REPLACE.ME" - And request contains "rf_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 200 OK - - @generated @skip @team:DataDog/rum-backend - Scenario: Get all hardcoded retention filters returns "OK" response - Given new "ListHardcodedRetentionFilters" request - And request contains "app_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 200 OK - - @generated @skip @team:DataDog/rum-backend - Scenario: Update a hardcoded retention filter returns "Bad Request" response - Given new "UpdateHardcodedRetentionFilter" request - And request contains "app_id" parameter from "REPLACE.ME" - And request contains "rf_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"cross_product_sampling": {"session_replay_enabled": true, "session_replay_sample_rate": 50.0, "trace_enabled": true, "trace_sample_rate": 25.0}}, "id": "forced_replay_sessions", "type": "hardcoded_retention_filters"}} - When the request is sent - Then the response status is 400 Bad Request - - @generated @skip @team:DataDog/rum-backend - Scenario: Update a hardcoded retention filter returns "Not Found" response - Given new "UpdateHardcodedRetentionFilter" request - And request contains "app_id" parameter from "REPLACE.ME" - And request contains "rf_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"cross_product_sampling": {"session_replay_enabled": true, "session_replay_sample_rate": 50.0, "trace_enabled": true, "trace_sample_rate": 25.0}}, "id": "forced_replay_sessions", "type": "hardcoded_retention_filters"}} - When the request is sent - Then the response status is 404 Not Found - - @generated @skip @team:DataDog/rum-backend - Scenario: Update a hardcoded retention filter returns "Updated" response - Given new "UpdateHardcodedRetentionFilter" request - And request contains "app_id" parameter from "REPLACE.ME" - And request contains "rf_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"cross_product_sampling": {"session_replay_enabled": true, "session_replay_sample_rate": 50.0, "trace_enabled": true, "trace_sample_rate": 25.0}}, "id": "forced_replay_sessions", "type": "hardcoded_retention_filters"}} - When the request is sent - Then the response status is 200 Updated diff --git a/tests/v2/features/undo.json b/tests/v2/features/undo.json index 54f20db646..b047963c2a 100644 --- a/tests/v2/features/undo.json +++ b/tests/v2/features/undo.json @@ -6419,24 +6419,6 @@ "type": "unsafe" } }, - "ListHardcodedRetentionFilters": { - "tag": "RUM Retention Filters Hardcoded", - "undo": { - "type": "safe" - } - }, - "GetHardcodedRetentionFilter": { - "tag": "RUM Retention Filters Hardcoded", - "undo": { - "type": "safe" - } - }, - "UpdateHardcodedRetentionFilter": { - "tag": "RUM Retention Filters Hardcoded", - "undo": { - "type": "idempotent" - } - }, "OrderRetentionFilters": { "tag": "Rum Retention Filters", "undo": {