Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
124 changes: 63 additions & 61 deletions .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions examples/v2/rum-operations/CreateRUMOperationStrongLink.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Create a RUM operation strong link returns "Created" response
# Create a RUM operation link returns "Created" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
Expand All @@ -11,7 +11,7 @@
data: DatadogAPIClient::V2::RUMOperationStrongLinkCreateRequestData.new({
attributes: DatadogAPIClient::V2::RUMOperationStrongLinkCreateRequestAttributes.new({
description: nil,
feature_id: "feature-123",
feature_id: "journey-123",
operation_id: "abc12345-1234-5678-abcd-ef1234567890",
status: DatadogAPIClient::V2::RUMOperationStrongLinkStatus::CONFIRMED,
tags: [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Delete a RUM operation strong link returns "No Content" response
# Delete a RUM operation link returns "No Content" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# List RUM operation strong links returns "OK" response
# List RUM operation links returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Update a RUM operation strong link returns "OK" response
# Update a RUM operation link returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
Expand Down
154 changes: 77 additions & 77 deletions features/v2/rum_operations.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
39 changes: 20 additions & 19 deletions lib/datadog_api_client/v2/api/rum_operations_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,17 @@ def create_rum_operation_with_http_info(body, opts = {})
return data, status_code, headers
end

# Create a RUM operation strong link.
# Create a RUM operation link.
#
# @see #create_rum_operation_strong_link_with_http_info
def create_rum_operation_strong_link(body, opts = {})
data, _status_code, _headers = create_rum_operation_strong_link_with_http_info(body, opts)
data
end

# Create a RUM operation strong link.
# Create a RUM operation link.
#
# 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.
#
Expand Down Expand Up @@ -242,20 +242,20 @@ def delete_rum_operation_with_http_info(rum_operation_id, opts = {})
return data, status_code, headers
end

# Delete a RUM operation strong link.
# Delete a RUM operation link.
#
# @see #delete_rum_operation_strong_link_with_http_info
def delete_rum_operation_strong_link(rum_operation_id, feature_id, opts = {})
delete_rum_operation_strong_link_with_http_info(rum_operation_id, feature_id, opts)
nil
end

# Delete a RUM operation strong link.
# Delete a RUM operation link.
#
# Delete the strong link between a RUM operation and a feature.
# Delete the link between a RUM operation and a journey.
#
# @param rum_operation_id [String] The unique identifier of the RUM operation.
# @param feature_id [String] The unique identifier of the feature.
# @param feature_id [String] The unique identifier of the journey.
# @param opts [Hash] the optional parameters
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
def delete_rum_operation_strong_link_with_http_info(rum_operation_id, feature_id, opts = {})
Expand Down Expand Up @@ -470,15 +470,16 @@ def list_rum_operations(opts = {})

# Search RUM operations.
#
# 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 opts [Hash] the optional parameters
# @option opts [String] :query A search query to filter operations by name.
# @option opts [Integer] :page_offset Offset for pagination.
# @option opts [Integer] :page_limit Number of items per page. Maximum of 100.
# @option opts [String] :creator Filter operations by the email of their creator.
# @option opts [String] :team Filter operations by team. Accepts a comma-separated list of teams.
# @option opts [String] :feature_id Filter operations by feature ID. Accepts a comma-separated list of feature IDs.
# @option opts [String] :feature_id Filter operations by journey ID. Accepts a comma-separated list of journey IDs.
# @option opts [UUID] :application_id Filter operations by RUM application ID.
# @return [Array<(RUMOperationsListResponse, Integer, Hash)>] RUMOperationsListResponse data, response status code and response headers
def list_rum_operations_with_http_info(opts = {})
Expand Down Expand Up @@ -549,23 +550,23 @@ def list_rum_operations_with_http_info(opts = {})
return data, status_code, headers
end

# List RUM operation strong links.
# List RUM operation links.
#
# @see #list_rum_operation_strong_links_with_http_info
def list_rum_operation_strong_links(opts = {})
data, _status_code, _headers = list_rum_operation_strong_links_with_http_info(opts)
data
end

# List RUM operation strong links.
# List RUM operation links.
#
# 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 opts [Hash] the optional parameters
# @option opts [String] :operation_id Filter strong links by RUM operation ID.
# @option opts [String] :feature_id Filter strong links by feature ID.
# @option opts [String] :operation_id Filter links by RUM operation ID.
# @option opts [String] :feature_id Filter links by journey (feature) ID.
# @option opts [Integer] :page_offset Offset for pagination.
# @option opts [Integer] :page_limit Number of items per page. Maximum of 200.
# @return [Array<(RUMOperationStrongLinksListResponse, Integer, Hash)>] RUMOperationStrongLinksListResponse data, response status code and response headers
Expand Down Expand Up @@ -707,20 +708,20 @@ def update_rum_operation_with_http_info(rum_operation_id, body, opts = {})
return data, status_code, headers
end

# Update a RUM operation strong link.
# Update a RUM operation link.
#
# @see #update_rum_operation_strong_link_with_http_info
def update_rum_operation_strong_link(rum_operation_id, feature_id, body, opts = {})
data, _status_code, _headers = update_rum_operation_strong_link_with_http_info(rum_operation_id, feature_id, body, opts)
data
end

# Update a RUM operation strong link.
# Update a RUM operation link.
#
# 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 rum_operation_id [String] The unique identifier of the RUM operation.
# @param feature_id [String] The unique identifier of the feature.
# @param feature_id [String] The unique identifier of the journey.
# @param body [RUMOperationStrongLinkUpdateRequest]
# @param opts [Hash] the optional parameters
# @return [Array<(RUMOperationStrongLinkResponse, Integer, Hash)>] RUMOperationStrongLinkResponse data, response status code and response headers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class RUMOperationRequestAttributes
# A human-readable display name for the RUM operation.
attr_accessor :display_name

# The list of feature IDs associated with the RUM operation.
# The list of journey IDs associated with the RUM operation.
attr_accessor :feature_ids

# The definition of a RUM operation's journey, used to detect it from RUM events.
Expand Down
Loading
Loading