From 4312acfb8e97edcd661b1aa10267f540ba51da40 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Mon, 27 Apr 2026 14:49:35 +0000 Subject: [PATCH] Regenerate client from commit 16c48ca of spec repo --- .generator/schemas/v2/openapi.yaml | 24 +++++------ .../GetInvestigation.rb | 4 +- .../ListInvestigations.rb | 4 +- .../ListInvestigations_1361254656.rb} | 4 +- .../TriggerInvestigation.rb | 4 +- .../{bits_ai.feature => bits_ai_sre.feature} | 24 +++++------ features/v2/undo.json | 6 +-- lib/datadog_api_client/inflector.rb | 2 +- .../{bits_ai_api.rb => bits_ai_sre_api.rb} | 40 +++++++++---------- .../v2/models/get_investigation_response.rb | 2 +- 10 files changed, 57 insertions(+), 57 deletions(-) rename examples/v2/{bits-ai => bits-ai-sre}/GetInvestigation.rb (61%) rename examples/v2/{bits-ai => bits-ai-sre}/ListInvestigations.rb (61%) rename examples/v2/{bits-ai/ListInvestigations_130750454.rb => bits-ai-sre/ListInvestigations_1361254656.rb} (62%) rename examples/v2/{bits-ai => bits-ai-sre}/TriggerInvestigation.rb (88%) rename features/v2/{bits_ai.feature => bits_ai_sre.feature} (76%) rename lib/datadog_api_client/v2/api/{bits_ai_api.rb => bits_ai_sre_api.rb} (86%) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 7ab82fd266b0..3f1b2e7402e9 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -30372,7 +30372,7 @@ components: type: array type: object GetInvestigationResponse: - description: Response for a single Bits AI investigation. + description: Response for a single Bits AI SRE investigation. properties: data: $ref: "#/components/schemas/GetInvestigationResponseData" @@ -87059,7 +87059,7 @@ paths: - user_access_manage /api/v2/bits-ai/investigations: get: - description: List all Bits AI investigations for the organization. + description: List all Bits AI SRE investigations for the organization. operationId: ListInvestigations parameters: - description: Offset for pagination. @@ -87126,9 +87126,9 @@ paths: appKeyAuth: [] - AuthZ: - bits_investigations_read - summary: List Bits AI investigations + summary: List Bits AI SRE investigations tags: - - Bits AI + - Bits AI SRE x-pagination: limitParam: page[limit] pageOffsetParam: page[offset] @@ -87141,7 +87141,7 @@ paths: **Note**: This endpoint is in preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). post: - description: Trigger a new Bits AI investigation based on a monitor alert. + description: Trigger a new Bits AI SRE investigation based on a monitor alert. operationId: TriggerInvestigation requestBody: content: @@ -87190,9 +87190,9 @@ paths: appKeyAuth: [] - AuthZ: - bits_investigations_write - summary: Trigger a Bits AI investigation + summary: Trigger a Bits AI SRE investigation tags: - - Bits AI + - Bits AI SRE x-codegen-request-body-name: body "x-permission": operator: OR @@ -87203,7 +87203,7 @@ paths: If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/bits-ai/investigations/{id}: get: - description: Get a specific Bits AI investigation by ID. + description: Get a specific Bits AI SRE investigation by ID. operationId: GetInvestigation parameters: - description: The ID of the investigation. @@ -87254,9 +87254,9 @@ paths: appKeyAuth: [] - AuthZ: - bits_investigations_read - summary: Get a Bits AI investigation + summary: Get a Bits AI SRE investigation tags: - - Bits AI + - Bits AI SRE "x-permission": operator: OR permissions: @@ -132955,8 +132955,8 @@ tags: sent from Identity Providers. Use these endpoints to manage your AuthN Mappings. name: AuthN Mappings - description: |- - Use the Bits AI endpoints to retrieve AI-powered investigations. - name: Bits AI + Use the Bits AI SRE endpoints to retrieve AI-powered investigations. + name: Bits AI SRE - description: |- Search or aggregate your CI Visibility pipeline events and send them to your Datadog site over HTTP. See the [CI Pipeline Visibility in Datadog page](https://docs.datadoghq.com/continuous_integration/pipelines/) for more information. name: CI Visibility Pipelines diff --git a/examples/v2/bits-ai/GetInvestigation.rb b/examples/v2/bits-ai-sre/GetInvestigation.rb similarity index 61% rename from examples/v2/bits-ai/GetInvestigation.rb rename to examples/v2/bits-ai-sre/GetInvestigation.rb index 77fd1e55a933..ec122c779d9d 100644 --- a/examples/v2/bits-ai/GetInvestigation.rb +++ b/examples/v2/bits-ai-sre/GetInvestigation.rb @@ -1,8 +1,8 @@ -# Get a Bits AI investigation returns "OK" response +# Get a Bits AI SRE investigation returns "OK" response require "datadog_api_client" DatadogAPIClient.configure do |config| config.unstable_operations["v2.get_investigation".to_sym] = true end -api_instance = DatadogAPIClient::V2::BitsAIAPI.new +api_instance = DatadogAPIClient::V2::BitsAISREAPI.new p api_instance.get_investigation("id") diff --git a/examples/v2/bits-ai/ListInvestigations.rb b/examples/v2/bits-ai-sre/ListInvestigations.rb similarity index 61% rename from examples/v2/bits-ai/ListInvestigations.rb rename to examples/v2/bits-ai-sre/ListInvestigations.rb index 6adb019d762f..5a2dbf8b4a5e 100644 --- a/examples/v2/bits-ai/ListInvestigations.rb +++ b/examples/v2/bits-ai-sre/ListInvestigations.rb @@ -1,8 +1,8 @@ -# List Bits AI investigations returns "OK" response +# List Bits AI SRE investigations returns "OK" response require "datadog_api_client" DatadogAPIClient.configure do |config| config.unstable_operations["v2.list_investigations".to_sym] = true end -api_instance = DatadogAPIClient::V2::BitsAIAPI.new +api_instance = DatadogAPIClient::V2::BitsAISREAPI.new p api_instance.list_investigations() diff --git a/examples/v2/bits-ai/ListInvestigations_130750454.rb b/examples/v2/bits-ai-sre/ListInvestigations_1361254656.rb similarity index 62% rename from examples/v2/bits-ai/ListInvestigations_130750454.rb rename to examples/v2/bits-ai-sre/ListInvestigations_1361254656.rb index 6fc2e686b127..dd14a414e4c2 100644 --- a/examples/v2/bits-ai/ListInvestigations_130750454.rb +++ b/examples/v2/bits-ai-sre/ListInvestigations_1361254656.rb @@ -1,8 +1,8 @@ -# List Bits AI investigations returns "OK" response with pagination +# List Bits AI SRE investigations returns "OK" response with pagination require "datadog_api_client" DatadogAPIClient.configure do |config| config.unstable_operations["v2.list_investigations".to_sym] = true end -api_instance = DatadogAPIClient::V2::BitsAIAPI.new +api_instance = DatadogAPIClient::V2::BitsAISREAPI.new api_instance.list_investigations_with_pagination() { |item| puts item } diff --git a/examples/v2/bits-ai/TriggerInvestigation.rb b/examples/v2/bits-ai-sre/TriggerInvestigation.rb similarity index 88% rename from examples/v2/bits-ai/TriggerInvestigation.rb rename to examples/v2/bits-ai-sre/TriggerInvestigation.rb index d77c8abb1998..3f8e706b804d 100644 --- a/examples/v2/bits-ai/TriggerInvestigation.rb +++ b/examples/v2/bits-ai-sre/TriggerInvestigation.rb @@ -1,10 +1,10 @@ -# Trigger a Bits AI investigation returns "OK" response +# Trigger a Bits AI SRE investigation returns "OK" response require "datadog_api_client" DatadogAPIClient.configure do |config| config.unstable_operations["v2.trigger_investigation".to_sym] = true end -api_instance = DatadogAPIClient::V2::BitsAIAPI.new +api_instance = DatadogAPIClient::V2::BitsAISREAPI.new body = DatadogAPIClient::V2::TriggerInvestigationRequest.new({ data: DatadogAPIClient::V2::TriggerInvestigationRequestData.new({ diff --git a/features/v2/bits_ai.feature b/features/v2/bits_ai_sre.feature similarity index 76% rename from features/v2/bits_ai.feature rename to features/v2/bits_ai_sre.feature index bc5ec941d8fa..12c8a3a1870a 100644 --- a/features/v2/bits_ai.feature +++ b/features/v2/bits_ai_sre.feature @@ -1,14 +1,14 @@ -@endpoint(bits-ai) @endpoint(bits-ai-v2) -Feature: Bits AI - Use the Bits AI endpoints to retrieve AI-powered investigations. +@endpoint(bits-ai-sre) @endpoint(bits-ai-sre-v2) +Feature: Bits AI SRE + Use the Bits AI SRE endpoints to retrieve AI-powered investigations. Background: Given a valid "apiKeyAuth" key in the system And a valid "appKeyAuth" key in the system - And an instance of "BitsAI" API + And an instance of "BitsAISRE" API @generated @skip @team:DataDog/bits-ai - Scenario: Get a Bits AI investigation returns "Bad Request" response + Scenario: Get a Bits AI SRE investigation returns "Bad Request" response Given operation "GetInvestigation" enabled And new "GetInvestigation" request And request contains "id" parameter from "REPLACE.ME" @@ -16,7 +16,7 @@ Feature: Bits AI Then the response status is 400 Bad Request @generated @skip @team:DataDog/bits-ai - Scenario: Get a Bits AI investigation returns "Not Found" response + Scenario: Get a Bits AI SRE investigation returns "Not Found" response Given operation "GetInvestigation" enabled And new "GetInvestigation" request And request contains "id" parameter from "REPLACE.ME" @@ -24,7 +24,7 @@ Feature: Bits AI Then the response status is 404 Not Found @generated @skip @team:DataDog/bits-ai - Scenario: Get a Bits AI investigation returns "OK" response + Scenario: Get a Bits AI SRE investigation returns "OK" response Given operation "GetInvestigation" enabled And new "GetInvestigation" request And request contains "id" parameter from "REPLACE.ME" @@ -32,28 +32,28 @@ Feature: Bits AI Then the response status is 200 OK @generated @skip @team:DataDog/bits-ai - Scenario: List Bits AI investigations returns "Bad Request" response + Scenario: List Bits AI SRE investigations returns "Bad Request" response Given operation "ListInvestigations" enabled And new "ListInvestigations" request When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/bits-ai - Scenario: List Bits AI investigations returns "OK" response + Scenario: List Bits AI SRE investigations returns "OK" response Given operation "ListInvestigations" enabled And new "ListInvestigations" request When the request is sent Then the response status is 200 OK @generated @skip @team:DataDog/bits-ai @with-pagination - Scenario: List Bits AI investigations returns "OK" response with pagination + Scenario: List Bits AI SRE investigations returns "OK" response with pagination Given operation "ListInvestigations" enabled And new "ListInvestigations" request When the request with pagination is sent Then the response status is 200 OK @generated @skip @team:DataDog/bits-ai - Scenario: Trigger a Bits AI investigation returns "Bad Request" response + Scenario: Trigger a Bits AI SRE investigation returns "Bad Request" response Given operation "TriggerInvestigation" enabled And new "TriggerInvestigation" request And body with value {"data": {"attributes": {"trigger": {"monitor_alert_trigger": {"event_id": "1234567890123456789", "event_ts": 1700000000000, "monitor_id": 12345678}, "type": "monitor_alert_trigger"}}, "type": "trigger_investigation_request"}} @@ -61,7 +61,7 @@ Feature: Bits AI Then the response status is 400 Bad Request @generated @skip @team:DataDog/bits-ai - Scenario: Trigger a Bits AI investigation returns "OK" response + Scenario: Trigger a Bits AI SRE investigation returns "OK" response Given operation "TriggerInvestigation" enabled And new "TriggerInvestigation" request And body with value {"data": {"attributes": {"trigger": {"monitor_alert_trigger": {"event_id": "1234567890123456789", "event_ts": 1700000000000, "monitor_id": 12345678}, "type": "monitor_alert_trigger"}}, "type": "trigger_investigation_request"}} diff --git a/features/v2/undo.json b/features/v2/undo.json index 71b0e9ba7aff..ba5790b70cdd 100644 --- a/features/v2/undo.json +++ b/features/v2/undo.json @@ -706,19 +706,19 @@ } }, "ListInvestigations": { - "tag": "Bits AI", + "tag": "Bits AI SRE", "undo": { "type": "safe" } }, "TriggerInvestigation": { - "tag": "Bits AI", + "tag": "Bits AI SRE", "undo": { "type": "unsafe" } }, "GetInvestigation": { - "tag": "Bits AI", + "tag": "Bits AI SRE", "undo": { "type": "safe" } diff --git a/lib/datadog_api_client/inflector.rb b/lib/datadog_api_client/inflector.rb index 704f53e51da0..ebed7c107c75 100644 --- a/lib/datadog_api_client/inflector.rb +++ b/lib/datadog_api_client/inflector.rb @@ -6316,7 +6316,7 @@ def overrides "v2.authn_mappings_api" => "AuthNMappingsAPI", "v2.aws_integration_api" => "AWSIntegrationAPI", "v2.aws_logs_integration_api" => "AWSLogsIntegrationAPI", - "v2.bits_ai_api" => "BitsAIAPI", + "v2.bits_ai_sre_api" => "BitsAISREAPI", "v2.case_management_api" => "CaseManagementAPI", "v2.case_management_attribute_api" => "CaseManagementAttributeAPI", "v2.case_management_type_api" => "CaseManagementTypeAPI", diff --git a/lib/datadog_api_client/v2/api/bits_ai_api.rb b/lib/datadog_api_client/v2/api/bits_ai_sre_api.rb similarity index 86% rename from lib/datadog_api_client/v2/api/bits_ai_api.rb rename to lib/datadog_api_client/v2/api/bits_ai_sre_api.rb index 07fde84a7ac4..bd4c3c40aa96 100644 --- a/lib/datadog_api_client/v2/api/bits_ai_api.rb +++ b/lib/datadog_api_client/v2/api/bits_ai_sre_api.rb @@ -16,14 +16,14 @@ require 'cgi' module DatadogAPIClient::V2 - class BitsAIAPI + class BitsAISREAPI attr_accessor :api_client def initialize(api_client = DatadogAPIClient::APIClient.default) @api_client = api_client end - # Get a Bits AI investigation. + # Get a Bits AI SRE investigation. # # @see #get_investigation_with_http_info def get_investigation(id, opts = {}) @@ -31,9 +31,9 @@ def get_investigation(id, opts = {}) data end - # Get a Bits AI investigation. + # Get a Bits AI SRE investigation. # - # Get a specific Bits AI investigation by ID. + # Get a specific Bits AI SRE investigation by ID. # # @param id [String] The ID of the investigation. # @param opts [Hash] the optional parameters @@ -47,11 +47,11 @@ def get_investigation_with_http_info(id, opts = {}) end if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: BitsAIAPI.get_investigation ...' + @api_client.config.logger.debug 'Calling API: BitsAISREAPI.get_investigation ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? - fail ArgumentError, "Missing the required parameter 'id' when calling BitsAIAPI.get_investigation" + fail ArgumentError, "Missing the required parameter 'id' when calling BitsAISREAPI.get_investigation" end # resource path local_var_path = '/api/v2/bits-ai/investigations/{id}'.sub('{id}', CGI.escape(id.to_s).gsub('%2F', '/')) @@ -89,12 +89,12 @@ def get_investigation_with_http_info(id, opts = {}) data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: BitsAIAPI#get_investigation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: BitsAISREAPI#get_investigation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # List Bits AI investigations. + # List Bits AI SRE investigations. # # @see #list_investigations_with_http_info def list_investigations(opts = {}) @@ -102,9 +102,9 @@ def list_investigations(opts = {}) data end - # List Bits AI investigations. + # List Bits AI SRE investigations. # - # List all Bits AI investigations for the organization. + # List all Bits AI SRE investigations for the organization. # # @param opts [Hash] the optional parameters # @option opts [Integer] :page_offset Offset for pagination. @@ -120,10 +120,10 @@ def list_investigations_with_http_info(opts = {}) end if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: BitsAIAPI.list_investigations ...' + @api_client.config.logger.debug 'Calling API: BitsAISREAPI.list_investigations ...' end if @api_client.config.client_side_validation && !opts[:'page_limit'].nil? && opts[:'page_limit'] > 100 - fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling BitsAIAPI.list_investigations, must be smaller than or equal to 100.' + fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling BitsAISREAPI.list_investigations, must be smaller than or equal to 100.' end # resource path local_var_path = '/api/v2/bits-ai/investigations' @@ -164,12 +164,12 @@ def list_investigations_with_http_info(opts = {}) data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: BitsAIAPI#list_investigations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: BitsAISREAPI#list_investigations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # List Bits AI investigations. + # List Bits AI SRE investigations. # # Provide a paginated version of {#list_investigations}, returning all items. # @@ -190,7 +190,7 @@ def list_investigations_with_pagination(opts = {}) end end - # Trigger a Bits AI investigation. + # Trigger a Bits AI SRE investigation. # # @see #trigger_investigation_with_http_info def trigger_investigation(body, opts = {}) @@ -198,9 +198,9 @@ def trigger_investigation(body, opts = {}) data end - # Trigger a Bits AI investigation. + # Trigger a Bits AI SRE investigation. # - # Trigger a new Bits AI investigation based on a monitor alert. + # Trigger a new Bits AI SRE investigation based on a monitor alert. # # @param body [TriggerInvestigationRequest] Trigger investigation request body. # @param opts [Hash] the optional parameters @@ -214,11 +214,11 @@ def trigger_investigation_with_http_info(body, opts = {}) end if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: BitsAIAPI.trigger_investigation ...' + @api_client.config.logger.debug 'Calling API: BitsAISREAPI.trigger_investigation ...' end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling BitsAIAPI.trigger_investigation" + fail ArgumentError, "Missing the required parameter 'body' when calling BitsAISREAPI.trigger_investigation" end # resource path local_var_path = '/api/v2/bits-ai/investigations' @@ -258,7 +258,7 @@ def trigger_investigation_with_http_info(body, opts = {}) data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: BitsAIAPI#trigger_investigation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: BitsAISREAPI#trigger_investigation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end diff --git a/lib/datadog_api_client/v2/models/get_investigation_response.rb b/lib/datadog_api_client/v2/models/get_investigation_response.rb index 4caf7f17585a..46fff03f9f79 100644 --- a/lib/datadog_api_client/v2/models/get_investigation_response.rb +++ b/lib/datadog_api_client/v2/models/get_investigation_response.rb @@ -17,7 +17,7 @@ require 'time' module DatadogAPIClient::V2 - # Response for a single Bits AI investigation. + # Response for a single Bits AI SRE investigation. class GetInvestigationResponse include BaseGenericModel