diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 324b65c3ebd7..69dbcf5b3bc9 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -88537,7 +88537,7 @@ components: example: Checkout completed type: string feature_ids: - description: The list of feature IDs associated with the RUM operation. + description: The list of journey IDs associated with the RUM operation. items: type: string type: array @@ -88595,7 +88595,7 @@ components: example: Checkout completed type: string feature_ids: - description: The list of feature IDs associated with the RUM operation. + description: The list of journey IDs associated with the RUM operation. items: type: string type: array @@ -88648,7 +88648,7 @@ components: - attributes type: object RUMOperationStrongLinkCreateRequest: - description: The request body for creating a RUM operation strong link. + description: The request body for creating a RUM operation link. properties: data: $ref: "#/components/schemas/RUMOperationStrongLinkCreateRequestData" @@ -88656,19 +88656,19 @@ components: - data type: object RUMOperationStrongLinkCreateRequestAttributes: - description: Attributes for creating a RUM operation strong link. + description: Attributes for creating a RUM operation link. properties: application_id: description: The RUM application ID used when creating a stub operation from `operation_name`. format: uuid type: string description: - description: A description of the strong link. + description: A description of the link. nullable: true type: string feature_id: - description: The unique identifier of the feature to link. - example: "feature-123" + description: The unique identifier of the journey to link. + example: "journey-123" type: string operation_id: description: |- @@ -88684,7 +88684,7 @@ components: status: $ref: "#/components/schemas/RUMOperationStrongLinkStatus" tags: - description: A list of tags associated with the strong link. + description: A list of tags associated with the link. items: type: string type: array @@ -88692,7 +88692,7 @@ components: - feature_id type: object RUMOperationStrongLinkCreateRequestData: - description: The data object for creating a RUM operation strong link. + description: The data object for creating a RUM operation link. properties: attributes: $ref: "#/components/schemas/RUMOperationStrongLinkCreateRequestAttributes" @@ -88703,7 +88703,7 @@ components: - attributes type: object RUMOperationStrongLinkResponse: - description: The response for a single RUM operation strong link. + description: The response for a single RUM operation link. properties: data: $ref: "#/components/schemas/RUMOperationStrongLinkResponseData" @@ -88711,20 +88711,20 @@ components: - data type: object RUMOperationStrongLinkResponseAttributes: - description: Attributes of a RUM operation strong link response. + description: Attributes of a RUM operation link response. properties: created_at: - description: The timestamp when the strong link was created. + description: The timestamp when the link was created. format: date-time readOnly: true type: string description: - description: A description of the strong link. + description: A description of the link. nullable: true type: string feature_id: - description: The unique identifier of the linked feature. - example: "feature-123" + description: The unique identifier of the linked journey. + example: "journey-123" readOnly: true type: string operation_id: @@ -88735,12 +88735,12 @@ components: status: $ref: "#/components/schemas/RUMOperationStrongLinkStatus" tags: - description: A list of tags associated with the strong link. + description: A list of tags associated with the link. items: type: string type: array updated_at: - description: The timestamp when the strong link was last updated. + description: The timestamp when the link was last updated. format: date-time nullable: true readOnly: true @@ -88751,13 +88751,13 @@ components: - status type: object RUMOperationStrongLinkResponseData: - description: The data object in a RUM operation strong link response. + description: The data object in a RUM operation link response. properties: attributes: $ref: "#/components/schemas/RUMOperationStrongLinkResponseAttributes" id: - description: The unique identifier of the strong link, formatted as `:`. - example: "abc12345-1234-5678-abcd-ef1234567890:feature-123" + description: The unique identifier of the link, formatted as `:`. + example: "abc12345-1234-5678-abcd-ef1234567890:journey-123" readOnly: true type: string type: @@ -88768,7 +88768,7 @@ components: - attributes type: object RUMOperationStrongLinkStatus: - description: The status of a RUM operation strong link. + description: The status of a RUM operation link. enum: - DRAFT - CONFIRMED @@ -88780,7 +88780,7 @@ components: - CONFIRMED - REJECTED RUMOperationStrongLinkType: - description: The JSON:API type for RUM operation strong link resources. + description: The JSON:API type for RUM operation link resources. enum: - strong_links example: strong_links @@ -88788,7 +88788,7 @@ components: x-enum-varnames: - STRONG_LINKS RUMOperationStrongLinkUpdateRequest: - description: The request body for updating a RUM operation strong link. + description: The request body for updating a RUM operation link. properties: data: $ref: "#/components/schemas/RUMOperationStrongLinkUpdateRequestData" @@ -88796,7 +88796,7 @@ components: - data type: object RUMOperationStrongLinkUpdateRequestAttributes: - description: Attributes for updating a RUM operation strong link. + description: Attributes for updating a RUM operation link. properties: status: $ref: "#/components/schemas/RUMOperationStrongLinkUpdateStatus" @@ -88804,7 +88804,7 @@ components: - status type: object RUMOperationStrongLinkUpdateRequestData: - description: The data object for updating a RUM operation strong link. + description: The data object for updating a RUM operation link. properties: attributes: $ref: "#/components/schemas/RUMOperationStrongLinkUpdateRequestAttributes" @@ -88815,7 +88815,7 @@ components: - attributes type: object RUMOperationStrongLinkUpdateStatus: - description: The status of a RUM operation strong link. Can only be set to `CONFIRMED` or `REJECTED`. + description: The status of a RUM operation link. Can only be set to `CONFIRMED` or `REJECTED`. enum: - CONFIRMED - REJECTED @@ -88825,7 +88825,7 @@ components: - CONFIRMED - REJECTED RUMOperationStrongLinksListResponse: - description: The response for a list of RUM operation strong links. + description: The response for a list of RUM operation links. properties: data: items: @@ -88837,7 +88837,7 @@ components: - data type: object RUMOperationStrongLinksListResponseMeta: - description: Metadata for a list of RUM operation strong links. + description: Metadata for a list of RUM operation links. properties: limit: description: The pagination limit. @@ -88848,7 +88848,7 @@ components: format: int64 type: integer total: - description: The total number of strong links matching the request. + description: The total number of links matching the request. format: int64 type: integer type: object @@ -192716,7 +192716,7 @@ paths: description: "Tracks users completing the checkout flow." display_name: Checkout completed feature_ids: - - "feature-123" + - "journey-123" journey_rum: rum_steps: - nodes: @@ -192789,7 +192789,7 @@ paths: description: "Tracks users completing the checkout flow." display_name: Checkout completed feature_ids: - - "feature-123" + - "journey-123" journey_rum: rum_steps: - nodes: @@ -192833,7 +192833,9 @@ paths: If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/rum/operations/search: get: - description: Search RUM operations for your organization. Supports filtering by query, creator, team, feature, and application. + description: |- + Search RUM operations for your organization. Supports filtering by query, creator, team, + journey, and application. operationId: ListRUMOperations parameters: - description: A search query to filter operations by name. @@ -192876,7 +192878,7 @@ paths: schema: example: "frontend,checkout" type: string - - description: Filter operations by feature ID. Accepts a comma-separated list of feature IDs. + - description: Filter operations by journey ID. Accepts a comma-separated list of journey IDs. in: query name: feature_id required: false @@ -192910,7 +192912,7 @@ paths: description: "Tracks users completing the checkout flow." display_name: Checkout completed feature_ids: - - "feature-123" + - "journey-123" journey_rum: rum_steps: - nodes: @@ -192959,18 +192961,18 @@ paths: /api/v2/rum/operations/strong_links: get: description: |- - List strong links between RUM operations and features. A strong link confirms that a feature - belongs to an operation. Provide `operation_id`, `feature_id`, or both to filter results; + List links between RUM operations and journeys. A link confirms that a journey + belongs to an operation. Provide `operation_id`, `feature_id` (journey ID), or both to filter results; at least one is required. operationId: ListRUMOperationStrongLinks parameters: - - description: Filter strong links by RUM operation ID. + - description: Filter links by RUM operation ID. in: query name: operation_id required: false schema: type: string - - description: Filter strong links by feature ID. + - description: Filter links by journey (feature) ID. in: query name: feature_id required: false @@ -193005,14 +193007,14 @@ paths: data: - attributes: created_at: "2024-01-15T10:30:00Z" - description: "Confirmed link between checkout_completed and feature-123." - feature_id: "feature-123" + description: "Confirmed link between checkout_completed and journey-123." + feature_id: "journey-123" operation_id: "abc12345-1234-5678-abcd-ef1234567890" status: CONFIRMED tags: - "team:checkout" updated_at: - id: "abc12345-1234-5678-abcd-ef1234567890:feature-123" + id: "abc12345-1234-5678-abcd-ef1234567890:journey-123" type: strong_links meta: limit: 50 @@ -193029,12 +193031,12 @@ paths: description: Bad Request "429": $ref: "#/components/responses/TooManyRequestsResponse" - summary: List RUM operation strong links + summary: List RUM operation links tags: - RUM Operations post: description: |- - Create a strong link between a RUM operation and a feature, confirming that the feature + Create a link between a RUM operation and a journey, confirming that the journey belongs to the operation. The operation can be identified by `operation_id` or `operation_name`; if `operation_name` does not match an existing operation, a stub operation is created. operationId: CreateRUMOperationStrongLink @@ -193054,14 +193056,14 @@ paths: data: attributes: created_at: "2024-01-15T10:30:00Z" - description: "Confirmed link between checkout_completed and feature-123." - feature_id: "feature-123" + description: "Confirmed link between checkout_completed and journey-123." + feature_id: "journey-123" operation_id: "abc12345-1234-5678-abcd-ef1234567890" status: CONFIRMED tags: - "team:checkout" updated_at: - id: "abc12345-1234-5678-abcd-ef1234567890:feature-123" + id: "abc12345-1234-5678-abcd-ef1234567890:journey-123" type: strong_links schema: $ref: "#/components/schemas/RUMOperationStrongLinkResponse" @@ -193083,10 +193085,10 @@ paths: application/json: schema: $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Conflict. A strong link between this operation and feature already exists. + description: Conflict. A link between this operation and journey already exists. "429": $ref: "#/components/responses/TooManyRequestsResponse" - summary: Create a RUM operation strong link + summary: Create a RUM operation link tags: - RUM Operations x-unstable: |- @@ -193094,7 +193096,7 @@ paths: If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/rum/operations/strong_links/{rum_operation_id}/{feature_id}: delete: - description: Delete the strong link between a RUM operation and a feature. + description: Delete the link between a RUM operation and a journey. operationId: DeleteRUMOperationStrongLink parameters: - description: The unique identifier of the RUM operation. @@ -193103,7 +193105,7 @@ paths: required: true schema: type: string - - description: The unique identifier of the feature. + - description: The unique identifier of the journey. in: path name: feature_id required: true @@ -193120,14 +193122,14 @@ paths: description: Not Found "429": $ref: "#/components/responses/TooManyRequestsResponse" - summary: Delete a RUM operation strong link + summary: Delete a RUM operation link tags: - RUM Operations 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/). put: - description: Update the status of a strong link between a RUM operation and a feature. + description: Update the status of a link between a RUM operation and a journey. operationId: UpdateRUMOperationStrongLink parameters: - description: The unique identifier of the RUM operation. @@ -193136,7 +193138,7 @@ paths: required: true schema: type: string - - description: The unique identifier of the feature. + - description: The unique identifier of the journey. in: path name: feature_id required: true @@ -193158,14 +193160,14 @@ paths: data: attributes: created_at: "2024-01-15T10:30:00Z" - description: "Confirmed link between checkout_completed and feature-123." - feature_id: "feature-123" + description: "Confirmed link between checkout_completed and journey-123." + feature_id: "journey-123" operation_id: "abc12345-1234-5678-abcd-ef1234567890" status: CONFIRMED tags: - "team:checkout" updated_at: "2024-01-16T09:00:00Z" - id: "abc12345-1234-5678-abcd-ef1234567890:feature-123" + id: "abc12345-1234-5678-abcd-ef1234567890:journey-123" type: strong_links schema: $ref: "#/components/schemas/RUMOperationStrongLinkResponse" @@ -193184,7 +193186,7 @@ paths: description: Not Found "429": $ref: "#/components/responses/TooManyRequestsResponse" - summary: Update a RUM operation strong link + summary: Update a RUM operation link tags: - RUM Operations x-unstable: |- @@ -193248,7 +193250,7 @@ paths: description: "Tracks users completing the checkout flow." display_name: Checkout completed feature_ids: - - "feature-123" + - "journey-123" journey_rum: rum_steps: - nodes: @@ -193322,7 +193324,7 @@ paths: description: "Tracks users completing the checkout flow." display_name: Checkout completed feature_ids: - - "feature-123" + - "journey-123" journey_rum: rum_steps: - nodes: @@ -223326,8 +223328,8 @@ tags: name: RUM Insights - description: |- Manage [RUM Operations](https://docs.datadoghq.com/real_user_monitoring/), business - transactions detected from RUM events through a configurable journey, and their strong links - to features. See the [RUM & Session Replay page](https://docs.datadoghq.com/real_user_monitoring/) + transactions detected from RUM events through a configurable journey, and their links + to journeys. See the [RUM & Session Replay page](https://docs.datadoghq.com/real_user_monitoring/) for more information. name: RUM Operations - description: |- diff --git a/examples/v2/rum-operations/CreateRUMOperationStrongLink.ts b/examples/v2/rum-operations/CreateRUMOperationStrongLink.ts index 93a9af4e8f98..27dbea1b1571 100644 --- a/examples/v2/rum-operations/CreateRUMOperationStrongLink.ts +++ b/examples/v2/rum-operations/CreateRUMOperationStrongLink.ts @@ -1,5 +1,5 @@ /** - * Create a RUM operation strong link returns "Created" response + * Create a RUM operation link returns "Created" response */ import { client, v2 } from "@datadog/datadog-api-client"; @@ -13,7 +13,7 @@ const params: v2.RUMOperationsApiCreateRUMOperationStrongLinkRequest = { data: { attributes: { description: undefined, - featureId: "feature-123", + featureId: "journey-123", operationId: "abc12345-1234-5678-abcd-ef1234567890", status: "CONFIRMED", tags: [], diff --git a/examples/v2/rum-operations/DeleteRUMOperationStrongLink.ts b/examples/v2/rum-operations/DeleteRUMOperationStrongLink.ts index e5969d7cec3f..6ec671cf55c8 100644 --- a/examples/v2/rum-operations/DeleteRUMOperationStrongLink.ts +++ b/examples/v2/rum-operations/DeleteRUMOperationStrongLink.ts @@ -1,5 +1,5 @@ /** - * Delete a RUM operation strong link returns "No Content" response + * Delete a RUM operation link returns "No Content" response */ import { client, v2 } from "@datadog/datadog-api-client"; diff --git a/examples/v2/rum-operations/ListRUMOperationStrongLinks.ts b/examples/v2/rum-operations/ListRUMOperationStrongLinks.ts index 6518f39120ab..b4c396f23a01 100644 --- a/examples/v2/rum-operations/ListRUMOperationStrongLinks.ts +++ b/examples/v2/rum-operations/ListRUMOperationStrongLinks.ts @@ -1,5 +1,5 @@ /** - * List RUM operation strong links returns "OK" response + * List RUM operation links returns "OK" response */ import { client, v2 } from "@datadog/datadog-api-client"; diff --git a/examples/v2/rum-operations/UpdateRUMOperationStrongLink.ts b/examples/v2/rum-operations/UpdateRUMOperationStrongLink.ts index 4fcd5ab65e66..ff8a3bfadfb6 100644 --- a/examples/v2/rum-operations/UpdateRUMOperationStrongLink.ts +++ b/examples/v2/rum-operations/UpdateRUMOperationStrongLink.ts @@ -1,5 +1,5 @@ /** - * Update a RUM operation strong link returns "OK" response + * Update a RUM operation link returns "OK" response */ import { client, v2 } from "@datadog/datadog-api-client"; diff --git a/features/v2/rum_operations.feature b/features/v2/rum_operations.feature index e2e2043ed776..ad0b554d9067 100644 --- a/features/v2/rum_operations.feature +++ b/features/v2/rum_operations.feature @@ -2,7 +2,7 @@ Feature: RUM Operations Manage [RUM Operations](https://docs.datadoghq.com/real_user_monitoring/), business transactions detected from RUM events through a configurable - journey, and their strong links to features. See the [RUM & Session Replay + journey, and their links to journeys. See the [RUM & Session Replay page](https://docs.datadoghq.com/real_user_monitoring/) for more information. @@ -11,6 +11,38 @@ Feature: RUM Operations And a valid "appKeyAuth" key in the system And an instance of "RUMOperations" API + @generated @skip @team:DataDog/rum-backend + Scenario: Create a RUM operation link returns "Bad Request" response + Given operation "CreateRUMOperationStrongLink" enabled + And new "CreateRUMOperationStrongLink" request + And body with value {"data": {"attributes": {"description": null, "feature_id": "journey-123", "operation_id": "abc12345-1234-5678-abcd-ef1234567890", "status": "CONFIRMED", "tags": []}, "type": "strong_links"}} + When the request is sent + Then the response status is 400 Bad Request + + @generated @skip @team:DataDog/rum-backend + Scenario: Create a RUM operation link returns "Conflict. A link between this operation and journey already exists." response + Given operation "CreateRUMOperationStrongLink" enabled + And new "CreateRUMOperationStrongLink" request + And body with value {"data": {"attributes": {"description": null, "feature_id": "journey-123", "operation_id": "abc12345-1234-5678-abcd-ef1234567890", "status": "CONFIRMED", "tags": []}, "type": "strong_links"}} + When the request is sent + Then the response status is 409 Conflict. A link between this operation and journey already exists. + + @generated @skip @team:DataDog/rum-backend + Scenario: Create a RUM operation link returns "Created" response + Given operation "CreateRUMOperationStrongLink" enabled + And new "CreateRUMOperationStrongLink" request + And body with value {"data": {"attributes": {"description": null, "feature_id": "journey-123", "operation_id": "abc12345-1234-5678-abcd-ef1234567890", "status": "CONFIRMED", "tags": []}, "type": "strong_links"}} + When the request is sent + Then the response status is 201 Created + + @generated @skip @team:DataDog/rum-backend + Scenario: Create a RUM operation link returns "Not Found. The referenced `operation_id` does not exist." response + Given operation "CreateRUMOperationStrongLink" enabled + And new "CreateRUMOperationStrongLink" request + And body with value {"data": {"attributes": {"description": null, "feature_id": "journey-123", "operation_id": "abc12345-1234-5678-abcd-ef1234567890", "status": "CONFIRMED", "tags": []}, "type": "strong_links"}} + When the request is sent + Then the response status is 404 Not Found. The referenced `operation_id` does not exist. + @generated @skip @team:DataDog/rum-backend Scenario: Create a RUM operation returns "Bad Request" response Given operation "CreateRUMOperation" enabled @@ -36,36 +68,22 @@ Feature: RUM Operations Then the response status is 200 OK @generated @skip @team:DataDog/rum-backend - Scenario: Create a RUM operation strong link returns "Bad Request" response - Given operation "CreateRUMOperationStrongLink" enabled - And new "CreateRUMOperationStrongLink" request - And body with value {"data": {"attributes": {"description": null, "feature_id": "feature-123", "operation_id": "abc12345-1234-5678-abcd-ef1234567890", "status": "CONFIRMED", "tags": []}, "type": "strong_links"}} - When the request is sent - Then the response status is 400 Bad Request - - @generated @skip @team:DataDog/rum-backend - Scenario: Create a RUM operation strong link returns "Conflict. A strong link between this operation and feature already exists." response - Given operation "CreateRUMOperationStrongLink" enabled - And new "CreateRUMOperationStrongLink" request - And body with value {"data": {"attributes": {"description": null, "feature_id": "feature-123", "operation_id": "abc12345-1234-5678-abcd-ef1234567890", "status": "CONFIRMED", "tags": []}, "type": "strong_links"}} - When the request is sent - Then the response status is 409 Conflict. A strong link between this operation and feature already exists. - - @generated @skip @team:DataDog/rum-backend - Scenario: Create a RUM operation strong link returns "Created" response - Given operation "CreateRUMOperationStrongLink" enabled - And new "CreateRUMOperationStrongLink" request - And body with value {"data": {"attributes": {"description": null, "feature_id": "feature-123", "operation_id": "abc12345-1234-5678-abcd-ef1234567890", "status": "CONFIRMED", "tags": []}, "type": "strong_links"}} + Scenario: Delete a RUM operation link returns "No Content" response + Given operation "DeleteRUMOperationStrongLink" enabled + And new "DeleteRUMOperationStrongLink" request + And request contains "rum_operation_id" parameter from "REPLACE.ME" + And request contains "feature_id" parameter from "REPLACE.ME" When the request is sent - Then the response status is 201 Created + Then the response status is 204 No Content @generated @skip @team:DataDog/rum-backend - Scenario: Create a RUM operation strong link returns "Not Found. The referenced `operation_id` does not exist." response - Given operation "CreateRUMOperationStrongLink" enabled - And new "CreateRUMOperationStrongLink" request - And body with value {"data": {"attributes": {"description": null, "feature_id": "feature-123", "operation_id": "abc12345-1234-5678-abcd-ef1234567890", "status": "CONFIRMED", "tags": []}, "type": "strong_links"}} + Scenario: Delete a RUM operation link returns "Not Found" response + Given operation "DeleteRUMOperationStrongLink" enabled + And new "DeleteRUMOperationStrongLink" request + And request contains "rum_operation_id" parameter from "REPLACE.ME" + And request contains "feature_id" parameter from "REPLACE.ME" When the request is sent - Then the response status is 404 Not Found. The referenced `operation_id` does not exist. + Then the response status is 404 Not Found @generated @skip @team:DataDog/rum-backend Scenario: Delete a RUM operation returns "No Content" response @@ -83,24 +101,6 @@ Feature: RUM Operations When the request is sent Then the response status is 404 Not Found - @generated @skip @team:DataDog/rum-backend - Scenario: Delete a RUM operation strong link returns "No Content" response - Given operation "DeleteRUMOperationStrongLink" enabled - And new "DeleteRUMOperationStrongLink" request - And request contains "rum_operation_id" parameter from "REPLACE.ME" - And request contains "feature_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 204 No Content - - @generated @skip @team:DataDog/rum-backend - Scenario: Delete a RUM operation strong link returns "Not Found" response - Given operation "DeleteRUMOperationStrongLink" enabled - And new "DeleteRUMOperationStrongLink" request - And request contains "rum_operation_id" parameter from "REPLACE.ME" - And request contains "feature_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 RUM operation by name returns "Bad Request" response Given operation "GetRUMOperationByName" enabled @@ -142,13 +142,13 @@ Feature: RUM Operations Then the response status is 200 OK @generated @skip @team:DataDog/rum-backend - Scenario: List RUM operation strong links returns "Bad Request" response + Scenario: List RUM operation links returns "Bad Request" response Given new "ListRUMOperationStrongLinks" request When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/rum-backend - Scenario: List RUM operation strong links returns "OK" response + Scenario: List RUM operation links returns "OK" response Given new "ListRUMOperationStrongLinks" request When the request is sent Then the response status is 200 OK @@ -167,6 +167,36 @@ Feature: RUM Operations When the request is sent Then the response status is 200 OK + @generated @skip @team:DataDog/rum-backend + Scenario: Update a RUM operation link returns "Bad Request" response + Given operation "UpdateRUMOperationStrongLink" enabled + And new "UpdateRUMOperationStrongLink" request + And request contains "rum_operation_id" parameter from "REPLACE.ME" + And request contains "feature_id" parameter from "REPLACE.ME" + And body with value {"data": {"attributes": {"status": "CONFIRMED"}, "type": "strong_links"}} + When the request is sent + Then the response status is 400 Bad Request + + @generated @skip @team:DataDog/rum-backend + Scenario: Update a RUM operation link returns "Not Found" response + Given operation "UpdateRUMOperationStrongLink" enabled + And new "UpdateRUMOperationStrongLink" request + And request contains "rum_operation_id" parameter from "REPLACE.ME" + And request contains "feature_id" parameter from "REPLACE.ME" + And body with value {"data": {"attributes": {"status": "CONFIRMED"}, "type": "strong_links"}} + When the request is sent + Then the response status is 404 Not Found + + @generated @skip @team:DataDog/rum-backend + Scenario: Update a RUM operation link returns "OK" response + Given operation "UpdateRUMOperationStrongLink" enabled + And new "UpdateRUMOperationStrongLink" request + And request contains "rum_operation_id" parameter from "REPLACE.ME" + And request contains "feature_id" parameter from "REPLACE.ME" + And body with value {"data": {"attributes": {"status": "CONFIRMED"}, "type": "strong_links"}} + When the request is sent + Then the response status is 200 OK + @generated @skip @team:DataDog/rum-backend Scenario: Update a RUM operation returns "Bad Request" response Given operation "UpdateRUMOperation" enabled @@ -202,33 +232,3 @@ Feature: RUM Operations And body with value {"data": {"attributes": {"application_id": "abc12345-1234-5678-abcd-ef1234567890", "category": null, "description": null, "display_name": "Checkout completed", "feature_ids": [], "journey_rum": {"rum_steps": [{"composite": {"kind": "all_of", "max_window_ms": 30000, "predicates": [{"query": "@type:action @action.type:click"}]}, "nodes": [{"query": "@type:action @action.type:click"}], "type": "start"}]}, "name": "checkout_completed", "tags": ["team:checkout"]}, "id": "abc12345-1234-5678-abcd-ef1234567890", "type": "operations"}} When the request is sent Then the response status is 200 OK - - @generated @skip @team:DataDog/rum-backend - Scenario: Update a RUM operation strong link returns "Bad Request" response - Given operation "UpdateRUMOperationStrongLink" enabled - And new "UpdateRUMOperationStrongLink" request - And request contains "rum_operation_id" parameter from "REPLACE.ME" - And request contains "feature_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"status": "CONFIRMED"}, "type": "strong_links"}} - When the request is sent - Then the response status is 400 Bad Request - - @generated @skip @team:DataDog/rum-backend - Scenario: Update a RUM operation strong link returns "Not Found" response - Given operation "UpdateRUMOperationStrongLink" enabled - And new "UpdateRUMOperationStrongLink" request - And request contains "rum_operation_id" parameter from "REPLACE.ME" - And request contains "feature_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"status": "CONFIRMED"}, "type": "strong_links"}} - When the request is sent - Then the response status is 404 Not Found - - @generated @skip @team:DataDog/rum-backend - Scenario: Update a RUM operation strong link returns "OK" response - Given operation "UpdateRUMOperationStrongLink" enabled - And new "UpdateRUMOperationStrongLink" request - And request contains "rum_operation_id" parameter from "REPLACE.ME" - And request contains "feature_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"status": "CONFIRMED"}, "type": "strong_links"}} - When the request is sent - Then the response status is 200 OK diff --git a/packages/datadog-api-client-v2/apis/RUMOperationsApi.ts b/packages/datadog-api-client-v2/apis/RUMOperationsApi.ts index 028ad3800e7a..6de004277155 100644 --- a/packages/datadog-api-client-v2/apis/RUMOperationsApi.ts +++ b/packages/datadog-api-client-v2/apis/RUMOperationsApi.ts @@ -1441,7 +1441,7 @@ export interface RUMOperationsApiDeleteRUMOperationStrongLinkRequest { */ rumOperationId: string; /** - * The unique identifier of the feature. + * The unique identifier of the journey. * @type string */ featureId: string; @@ -1490,7 +1490,7 @@ export interface RUMOperationsApiListRUMOperationsRequest { */ team?: string; /** - * Filter operations by feature ID. Accepts a comma-separated list of feature IDs. + * Filter operations by journey ID. Accepts a comma-separated list of journey IDs. * @type string */ featureId?: string; @@ -1503,12 +1503,12 @@ export interface RUMOperationsApiListRUMOperationsRequest { export interface RUMOperationsApiListRUMOperationStrongLinksRequest { /** - * Filter strong links by RUM operation ID. + * Filter links by RUM operation ID. * @type string */ operationId?: string; /** - * Filter strong links by feature ID. + * Filter links by journey (feature) ID. * @type string */ featureId?: string; @@ -1543,7 +1543,7 @@ export interface RUMOperationsApiUpdateRUMOperationStrongLinkRequest { */ rumOperationId: string; /** - * The unique identifier of the feature. + * The unique identifier of the journey. * @type string */ featureId: string; @@ -1592,7 +1592,7 @@ export class RUMOperationsApi { } /** - * Create a strong link between a RUM operation and a feature, confirming that the feature + * Create a link between a RUM operation and a journey, confirming that the journey * belongs to the operation. The operation can be identified by `operation_id` or `operation_name`; * if `operation_name` does not match an existing operation, a stub operation is created. * @param param The request object @@ -1636,7 +1636,7 @@ export class RUMOperationsApi { } /** - * Delete the strong link between a RUM operation and a feature. + * Delete the link between a RUM operation and a journey. * @param param The request object */ public deleteRUMOperationStrongLink( @@ -1703,7 +1703,8 @@ export class RUMOperationsApi { } /** - * Search RUM operations for your organization. Supports filtering by query, creator, team, feature, and application. + * Search RUM operations for your organization. Supports filtering by query, creator, team, + * journey, and application. * @param param The request object */ public listRUMOperations( @@ -1730,8 +1731,8 @@ export class RUMOperationsApi { } /** - * List strong links between RUM operations and features. A strong link confirms that a feature - * belongs to an operation. Provide `operation_id`, `feature_id`, or both to filter results; + * List links between RUM operations and journeys. A link confirms that a journey + * belongs to an operation. Provide `operation_id`, `feature_id` (journey ID), or both to filter results; * at least one is required. * @param param The request object */ @@ -1782,7 +1783,7 @@ export class RUMOperationsApi { } /** - * Update the status of a strong link between a RUM operation and a feature. + * Update the status of a link between a RUM operation and a journey. * @param param The request object */ public updateRUMOperationStrongLink( diff --git a/packages/datadog-api-client-v2/models/RUMOperationRequestAttributes.ts b/packages/datadog-api-client-v2/models/RUMOperationRequestAttributes.ts index 100226d8c4bd..5ca14a3e239b 100644 --- a/packages/datadog-api-client-v2/models/RUMOperationRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/RUMOperationRequestAttributes.ts @@ -28,7 +28,7 @@ export class RUMOperationRequestAttributes { */ "displayName"?: string; /** - * The list of feature IDs associated with the RUM operation. + * The list of journey IDs associated with the RUM operation. */ "featureIds"?: Array; /** diff --git a/packages/datadog-api-client-v2/models/RUMOperationResponseAttributes.ts b/packages/datadog-api-client-v2/models/RUMOperationResponseAttributes.ts index 6d5dcf853636..49b2162e7825 100644 --- a/packages/datadog-api-client-v2/models/RUMOperationResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/RUMOperationResponseAttributes.ts @@ -37,7 +37,7 @@ export class RUMOperationResponseAttributes { */ "displayName"?: string; /** - * The list of feature IDs associated with the RUM operation. + * The list of journey IDs associated with the RUM operation. */ "featureIds"?: Array; /** diff --git a/packages/datadog-api-client-v2/models/RUMOperationStrongLinkCreateRequest.ts b/packages/datadog-api-client-v2/models/RUMOperationStrongLinkCreateRequest.ts index ce87fdf0bff8..9846a2c1afd8 100644 --- a/packages/datadog-api-client-v2/models/RUMOperationStrongLinkCreateRequest.ts +++ b/packages/datadog-api-client-v2/models/RUMOperationStrongLinkCreateRequest.ts @@ -8,11 +8,11 @@ import { RUMOperationStrongLinkCreateRequestData } from "./RUMOperationStrongLin import { AttributeTypeMap } from "../../datadog-api-client-common/util"; /** - * The request body for creating a RUM operation strong link. + * The request body for creating a RUM operation link. */ export class RUMOperationStrongLinkCreateRequest { /** - * The data object for creating a RUM operation strong link. + * The data object for creating a RUM operation link. */ "data": RUMOperationStrongLinkCreateRequestData; diff --git a/packages/datadog-api-client-v2/models/RUMOperationStrongLinkCreateRequestAttributes.ts b/packages/datadog-api-client-v2/models/RUMOperationStrongLinkCreateRequestAttributes.ts index c528b80bf19d..934196e5b62d 100644 --- a/packages/datadog-api-client-v2/models/RUMOperationStrongLinkCreateRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/RUMOperationStrongLinkCreateRequestAttributes.ts @@ -8,7 +8,7 @@ import { RUMOperationStrongLinkStatus } from "./RUMOperationStrongLinkStatus"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; /** - * Attributes for creating a RUM operation strong link. + * Attributes for creating a RUM operation link. */ export class RUMOperationStrongLinkCreateRequestAttributes { /** @@ -16,11 +16,11 @@ export class RUMOperationStrongLinkCreateRequestAttributes { */ "applicationId"?: string; /** - * A description of the strong link. + * A description of the link. */ "description"?: string; /** - * The unique identifier of the feature to link. + * The unique identifier of the journey to link. */ "featureId": string; /** @@ -34,11 +34,11 @@ export class RUMOperationStrongLinkCreateRequestAttributes { */ "operationName"?: string; /** - * The status of a RUM operation strong link. + * The status of a RUM operation link. */ "status"?: RUMOperationStrongLinkStatus; /** - * A list of tags associated with the strong link. + * A list of tags associated with the link. */ "tags"?: Array; diff --git a/packages/datadog-api-client-v2/models/RUMOperationStrongLinkCreateRequestData.ts b/packages/datadog-api-client-v2/models/RUMOperationStrongLinkCreateRequestData.ts index 2d8fc1047295..1d2d4236c0ac 100644 --- a/packages/datadog-api-client-v2/models/RUMOperationStrongLinkCreateRequestData.ts +++ b/packages/datadog-api-client-v2/models/RUMOperationStrongLinkCreateRequestData.ts @@ -9,15 +9,15 @@ import { RUMOperationStrongLinkType } from "./RUMOperationStrongLinkType"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; /** - * The data object for creating a RUM operation strong link. + * The data object for creating a RUM operation link. */ export class RUMOperationStrongLinkCreateRequestData { /** - * Attributes for creating a RUM operation strong link. + * Attributes for creating a RUM operation link. */ "attributes": RUMOperationStrongLinkCreateRequestAttributes; /** - * The JSON:API type for RUM operation strong link resources. + * The JSON:API type for RUM operation link resources. */ "type": RUMOperationStrongLinkType; diff --git a/packages/datadog-api-client-v2/models/RUMOperationStrongLinkResponse.ts b/packages/datadog-api-client-v2/models/RUMOperationStrongLinkResponse.ts index 7e2b431e00fb..cb41a4fd9144 100644 --- a/packages/datadog-api-client-v2/models/RUMOperationStrongLinkResponse.ts +++ b/packages/datadog-api-client-v2/models/RUMOperationStrongLinkResponse.ts @@ -8,11 +8,11 @@ import { RUMOperationStrongLinkResponseData } from "./RUMOperationStrongLinkResp import { AttributeTypeMap } from "../../datadog-api-client-common/util"; /** - * The response for a single RUM operation strong link. + * The response for a single RUM operation link. */ export class RUMOperationStrongLinkResponse { /** - * The data object in a RUM operation strong link response. + * The data object in a RUM operation link response. */ "data": RUMOperationStrongLinkResponseData; diff --git a/packages/datadog-api-client-v2/models/RUMOperationStrongLinkResponseAttributes.ts b/packages/datadog-api-client-v2/models/RUMOperationStrongLinkResponseAttributes.ts index 9946423424d6..ea5eba52a628 100644 --- a/packages/datadog-api-client-v2/models/RUMOperationStrongLinkResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/RUMOperationStrongLinkResponseAttributes.ts @@ -8,19 +8,19 @@ import { RUMOperationStrongLinkStatus } from "./RUMOperationStrongLinkStatus"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; /** - * Attributes of a RUM operation strong link response. + * Attributes of a RUM operation link response. */ export class RUMOperationStrongLinkResponseAttributes { /** - * The timestamp when the strong link was created. + * The timestamp when the link was created. */ "createdAt"?: Date; /** - * A description of the strong link. + * A description of the link. */ "description"?: string; /** - * The unique identifier of the linked feature. + * The unique identifier of the linked journey. */ "featureId": string; /** @@ -28,15 +28,15 @@ export class RUMOperationStrongLinkResponseAttributes { */ "operationId": string; /** - * The status of a RUM operation strong link. + * The status of a RUM operation link. */ "status": RUMOperationStrongLinkStatus; /** - * A list of tags associated with the strong link. + * A list of tags associated with the link. */ "tags"?: Array; /** - * The timestamp when the strong link was last updated. + * The timestamp when the link was last updated. */ "updatedAt"?: Date; diff --git a/packages/datadog-api-client-v2/models/RUMOperationStrongLinkResponseData.ts b/packages/datadog-api-client-v2/models/RUMOperationStrongLinkResponseData.ts index 61ce4d52c608..a07c970af03f 100644 --- a/packages/datadog-api-client-v2/models/RUMOperationStrongLinkResponseData.ts +++ b/packages/datadog-api-client-v2/models/RUMOperationStrongLinkResponseData.ts @@ -9,19 +9,19 @@ import { RUMOperationStrongLinkType } from "./RUMOperationStrongLinkType"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; /** - * The data object in a RUM operation strong link response. + * The data object in a RUM operation link response. */ export class RUMOperationStrongLinkResponseData { /** - * Attributes of a RUM operation strong link response. + * Attributes of a RUM operation link response. */ "attributes": RUMOperationStrongLinkResponseAttributes; /** - * The unique identifier of the strong link, formatted as `:`. + * The unique identifier of the link, formatted as `:`. */ "id": string; /** - * The JSON:API type for RUM operation strong link resources. + * The JSON:API type for RUM operation link resources. */ "type": RUMOperationStrongLinkType; diff --git a/packages/datadog-api-client-v2/models/RUMOperationStrongLinkStatus.ts b/packages/datadog-api-client-v2/models/RUMOperationStrongLinkStatus.ts index 7999ddbfdb68..b31c3b6af6f3 100644 --- a/packages/datadog-api-client-v2/models/RUMOperationStrongLinkStatus.ts +++ b/packages/datadog-api-client-v2/models/RUMOperationStrongLinkStatus.ts @@ -7,7 +7,7 @@ import { UnparsedObject } from "../../datadog-api-client-common/util"; /** - * The status of a RUM operation strong link. + * The status of a RUM operation link. */ export type RUMOperationStrongLinkStatus = diff --git a/packages/datadog-api-client-v2/models/RUMOperationStrongLinkType.ts b/packages/datadog-api-client-v2/models/RUMOperationStrongLinkType.ts index 3544a074476f..681ef757ff6a 100644 --- a/packages/datadog-api-client-v2/models/RUMOperationStrongLinkType.ts +++ b/packages/datadog-api-client-v2/models/RUMOperationStrongLinkType.ts @@ -7,7 +7,7 @@ import { UnparsedObject } from "../../datadog-api-client-common/util"; /** - * The JSON:API type for RUM operation strong link resources. + * The JSON:API type for RUM operation link resources. */ export type RUMOperationStrongLinkType = typeof STRONG_LINKS | UnparsedObject; diff --git a/packages/datadog-api-client-v2/models/RUMOperationStrongLinkUpdateRequest.ts b/packages/datadog-api-client-v2/models/RUMOperationStrongLinkUpdateRequest.ts index 9cbfb972000d..f2814f7f9701 100644 --- a/packages/datadog-api-client-v2/models/RUMOperationStrongLinkUpdateRequest.ts +++ b/packages/datadog-api-client-v2/models/RUMOperationStrongLinkUpdateRequest.ts @@ -8,11 +8,11 @@ import { RUMOperationStrongLinkUpdateRequestData } from "./RUMOperationStrongLin import { AttributeTypeMap } from "../../datadog-api-client-common/util"; /** - * The request body for updating a RUM operation strong link. + * The request body for updating a RUM operation link. */ export class RUMOperationStrongLinkUpdateRequest { /** - * The data object for updating a RUM operation strong link. + * The data object for updating a RUM operation link. */ "data": RUMOperationStrongLinkUpdateRequestData; diff --git a/packages/datadog-api-client-v2/models/RUMOperationStrongLinkUpdateRequestAttributes.ts b/packages/datadog-api-client-v2/models/RUMOperationStrongLinkUpdateRequestAttributes.ts index 5bde57bad974..64339437d522 100644 --- a/packages/datadog-api-client-v2/models/RUMOperationStrongLinkUpdateRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/RUMOperationStrongLinkUpdateRequestAttributes.ts @@ -8,11 +8,11 @@ import { RUMOperationStrongLinkUpdateStatus } from "./RUMOperationStrongLinkUpda import { AttributeTypeMap } from "../../datadog-api-client-common/util"; /** - * Attributes for updating a RUM operation strong link. + * Attributes for updating a RUM operation link. */ export class RUMOperationStrongLinkUpdateRequestAttributes { /** - * The status of a RUM operation strong link. Can only be set to `CONFIRMED` or `REJECTED`. + * The status of a RUM operation link. Can only be set to `CONFIRMED` or `REJECTED`. */ "status": RUMOperationStrongLinkUpdateStatus; diff --git a/packages/datadog-api-client-v2/models/RUMOperationStrongLinkUpdateRequestData.ts b/packages/datadog-api-client-v2/models/RUMOperationStrongLinkUpdateRequestData.ts index 73aedd971c48..4d010bf9ba57 100644 --- a/packages/datadog-api-client-v2/models/RUMOperationStrongLinkUpdateRequestData.ts +++ b/packages/datadog-api-client-v2/models/RUMOperationStrongLinkUpdateRequestData.ts @@ -9,15 +9,15 @@ import { RUMOperationStrongLinkUpdateRequestAttributes } from "./RUMOperationStr import { AttributeTypeMap } from "../../datadog-api-client-common/util"; /** - * The data object for updating a RUM operation strong link. + * The data object for updating a RUM operation link. */ export class RUMOperationStrongLinkUpdateRequestData { /** - * Attributes for updating a RUM operation strong link. + * Attributes for updating a RUM operation link. */ "attributes": RUMOperationStrongLinkUpdateRequestAttributes; /** - * The JSON:API type for RUM operation strong link resources. + * The JSON:API type for RUM operation link resources. */ "type": RUMOperationStrongLinkType; diff --git a/packages/datadog-api-client-v2/models/RUMOperationStrongLinkUpdateStatus.ts b/packages/datadog-api-client-v2/models/RUMOperationStrongLinkUpdateStatus.ts index fb755d9a0efb..1b979b7ee78b 100644 --- a/packages/datadog-api-client-v2/models/RUMOperationStrongLinkUpdateStatus.ts +++ b/packages/datadog-api-client-v2/models/RUMOperationStrongLinkUpdateStatus.ts @@ -7,7 +7,7 @@ import { UnparsedObject } from "../../datadog-api-client-common/util"; /** - * The status of a RUM operation strong link. Can only be set to `CONFIRMED` or `REJECTED`. + * The status of a RUM operation link. Can only be set to `CONFIRMED` or `REJECTED`. */ export type RUMOperationStrongLinkUpdateStatus = diff --git a/packages/datadog-api-client-v2/models/RUMOperationStrongLinksListResponse.ts b/packages/datadog-api-client-v2/models/RUMOperationStrongLinksListResponse.ts index c881ad187059..bcdb097c51fa 100644 --- a/packages/datadog-api-client-v2/models/RUMOperationStrongLinksListResponse.ts +++ b/packages/datadog-api-client-v2/models/RUMOperationStrongLinksListResponse.ts @@ -9,12 +9,12 @@ import { RUMOperationStrongLinksListResponseMeta } from "./RUMOperationStrongLin import { AttributeTypeMap } from "../../datadog-api-client-common/util"; /** - * The response for a list of RUM operation strong links. + * The response for a list of RUM operation links. */ export class RUMOperationStrongLinksListResponse { "data": Array; /** - * Metadata for a list of RUM operation strong links. + * Metadata for a list of RUM operation links. */ "meta"?: RUMOperationStrongLinksListResponseMeta; diff --git a/packages/datadog-api-client-v2/models/RUMOperationStrongLinksListResponseMeta.ts b/packages/datadog-api-client-v2/models/RUMOperationStrongLinksListResponseMeta.ts index 0814990e2cfe..f5d1de9d27bc 100644 --- a/packages/datadog-api-client-v2/models/RUMOperationStrongLinksListResponseMeta.ts +++ b/packages/datadog-api-client-v2/models/RUMOperationStrongLinksListResponseMeta.ts @@ -7,7 +7,7 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util"; /** - * Metadata for a list of RUM operation strong links. + * Metadata for a list of RUM operation links. */ export class RUMOperationStrongLinksListResponseMeta { /** @@ -19,7 +19,7 @@ export class RUMOperationStrongLinksListResponseMeta { */ "offset"?: number; /** - * The total number of strong links matching the request. + * The total number of links matching the request. */ "total"?: number;