diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 7ab82fd266..3f1b2e7402 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/docs/datadog_api_client.v2.api.rst b/docs/datadog_api_client.v2.api.rst index cbf7b505b3..a8d7a36976 100644 --- a/docs/datadog_api_client.v2.api.rst +++ b/docs/datadog_api_client.v2.api.rst @@ -88,10 +88,10 @@ datadog\_api\_client.v2.api.aws\_logs\_integration\_api module :members: :show-inheritance: -datadog\_api\_client.v2.api.bits\_ai\_api module ------------------------------------------------- +datadog\_api\_client.v2.api.bits\_ai\_sre\_api module +----------------------------------------------------- -.. automodule:: datadog_api_client.v2.api.bits_ai_api +.. automodule:: datadog_api_client.v2.api.bits_ai_sre_api :members: :show-inheritance: diff --git a/examples/v2/bits-ai/GetInvestigation.py b/examples/v2/bits-ai-sre/GetInvestigation.py similarity index 64% rename from examples/v2/bits-ai/GetInvestigation.py rename to examples/v2/bits-ai-sre/GetInvestigation.py index bee2825441..79801cb7c0 100644 --- a/examples/v2/bits-ai/GetInvestigation.py +++ b/examples/v2/bits-ai-sre/GetInvestigation.py @@ -1,14 +1,14 @@ """ -Get a Bits AI investigation returns "OK" response +Get a Bits AI SRE investigation returns "OK" response """ from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.bits_ai_api import BitsAIApi +from datadog_api_client.v2.api.bits_aisre_api import BitsAISREApi configuration = Configuration() configuration.unstable_operations["get_investigation"] = True with ApiClient(configuration) as api_client: - api_instance = BitsAIApi(api_client) + api_instance = BitsAISREApi(api_client) response = api_instance.get_investigation( id="id", ) diff --git a/examples/v2/bits-ai/ListInvestigations.py b/examples/v2/bits-ai-sre/ListInvestigations.py similarity index 62% rename from examples/v2/bits-ai/ListInvestigations.py rename to examples/v2/bits-ai-sre/ListInvestigations.py index b44c9606ca..603b8b7ef7 100644 --- a/examples/v2/bits-ai/ListInvestigations.py +++ b/examples/v2/bits-ai-sre/ListInvestigations.py @@ -1,14 +1,14 @@ """ -List Bits AI investigations returns "OK" response +List Bits AI SRE investigations returns "OK" response """ from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.bits_ai_api import BitsAIApi +from datadog_api_client.v2.api.bits_aisre_api import BitsAISREApi configuration = Configuration() configuration.unstable_operations["list_investigations"] = True with ApiClient(configuration) as api_client: - api_instance = BitsAIApi(api_client) + api_instance = BitsAISREApi(api_client) response = api_instance.list_investigations() print(response) diff --git a/examples/v2/bits-ai/ListInvestigations_130750454.py b/examples/v2/bits-ai-sre/ListInvestigations_1361254656.py similarity index 63% rename from examples/v2/bits-ai/ListInvestigations_130750454.py rename to examples/v2/bits-ai-sre/ListInvestigations_1361254656.py index f874dba113..c2d8e4d617 100644 --- a/examples/v2/bits-ai/ListInvestigations_130750454.py +++ b/examples/v2/bits-ai-sre/ListInvestigations_1361254656.py @@ -1,14 +1,14 @@ """ -List Bits AI investigations returns "OK" response with pagination +List Bits AI SRE investigations returns "OK" response with pagination """ from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.bits_ai_api import BitsAIApi +from datadog_api_client.v2.api.bits_aisre_api import BitsAISREApi configuration = Configuration() configuration.unstable_operations["list_investigations"] = True with ApiClient(configuration) as api_client: - api_instance = BitsAIApi(api_client) + api_instance = BitsAISREApi(api_client) items = api_instance.list_investigations_with_pagination() for item in items: print(item) diff --git a/examples/v2/bits-ai/TriggerInvestigation.py b/examples/v2/bits-ai-sre/TriggerInvestigation.py similarity index 90% rename from examples/v2/bits-ai/TriggerInvestigation.py rename to examples/v2/bits-ai-sre/TriggerInvestigation.py index 77a3e92275..b8a4a29f60 100644 --- a/examples/v2/bits-ai/TriggerInvestigation.py +++ b/examples/v2/bits-ai-sre/TriggerInvestigation.py @@ -1,9 +1,9 @@ """ -Trigger a Bits AI investigation returns "OK" response +Trigger a Bits AI SRE investigation returns "OK" response """ from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.bits_ai_api import BitsAIApi +from datadog_api_client.v2.api.bits_aisre_api import BitsAISREApi from datadog_api_client.v2.model.monitor_alert_trigger_attributes import MonitorAlertTriggerAttributes from datadog_api_client.v2.model.trigger_attributes import TriggerAttributes from datadog_api_client.v2.model.trigger_investigation_request import TriggerInvestigationRequest @@ -33,7 +33,7 @@ configuration = Configuration() configuration.unstable_operations["trigger_investigation"] = True with ApiClient(configuration) as api_client: - api_instance = BitsAIApi(api_client) + api_instance = BitsAISREApi(api_client) response = api_instance.trigger_investigation(body=body) print(response) diff --git a/src/datadog_api_client/v2/api/bits_ai_api.py b/src/datadog_api_client/v2/api/bits_ai_sre_api.py similarity index 94% rename from src/datadog_api_client/v2/api/bits_ai_api.py rename to src/datadog_api_client/v2/api/bits_ai_sre_api.py index d087080048..48693cc992 100644 --- a/src/datadog_api_client/v2/api/bits_ai_api.py +++ b/src/datadog_api_client/v2/api/bits_ai_sre_api.py @@ -21,9 +21,9 @@ from datadog_api_client.v2.model.get_investigation_response import GetInvestigationResponse -class BitsAIApi: +class BitsAISREApi: """ - Use the Bits AI endpoints to retrieve AI-powered investigations. + Use the Bits AI SRE endpoints to retrieve AI-powered investigations. """ def __init__(self, api_client=None): @@ -113,9 +113,9 @@ def get_investigation( self, id: str, ) -> GetInvestigationResponse: - """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: The ID of the investigation. :type id: str @@ -133,9 +133,9 @@ def list_investigations( page_limit: Union[int, UnsetType] = unset, filter_monitor_id: Union[int, UnsetType] = unset, ) -> ListInvestigationsResponse: - """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 page_offset: Offset for pagination. :type page_offset: int, optional @@ -164,7 +164,7 @@ def list_investigations_with_pagination( page_limit: Union[int, UnsetType] = unset, filter_monitor_id: Union[int, UnsetType] = unset, ) -> collections.abc.Iterable[ListInvestigationsResponseData]: - """List Bits AI investigations. + """List Bits AI SRE investigations. Provide a paginated version of :meth:`list_investigations`, returning all items. @@ -204,9 +204,9 @@ def trigger_investigation( self, body: TriggerInvestigationRequest, ) -> TriggerInvestigationResponse: - """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: Trigger investigation request body. :type body: TriggerInvestigationRequest diff --git a/src/datadog_api_client/v2/apis/__init__.py b/src/datadog_api_client/v2/apis/__init__.py index 1cdb0b2c63..a4fa2d7c1d 100644 --- a/src/datadog_api_client/v2/apis/__init__.py +++ b/src/datadog_api_client/v2/apis/__init__.py @@ -10,7 +10,7 @@ from datadog_api_client.v2.api.application_security_api import ApplicationSecurityApi from datadog_api_client.v2.api.audit_api import AuditApi from datadog_api_client.v2.api.authn_mappings_api import AuthNMappingsApi -from datadog_api_client.v2.api.bits_ai_api import BitsAIApi +from datadog_api_client.v2.api.bits_aisre_api import BitsAISREApi from datadog_api_client.v2.api.ci_visibility_pipelines_api import CIVisibilityPipelinesApi from datadog_api_client.v2.api.ci_visibility_tests_api import CIVisibilityTestsApi from datadog_api_client.v2.api.csm_agents_api import CSMAgentsApi @@ -121,7 +121,7 @@ "ApplicationSecurityApi", "AuditApi", "AuthNMappingsApi", - "BitsAIApi", + "BitsAISREApi", "CIVisibilityPipelinesApi", "CIVisibilityTestsApi", "CSMAgentsApi", diff --git a/src/datadog_api_client/v2/model/get_investigation_response.py b/src/datadog_api_client/v2/model/get_investigation_response.py index 8a78ae1878..3452bcc92e 100644 --- a/src/datadog_api_client/v2/model/get_investigation_response.py +++ b/src/datadog_api_client/v2/model/get_investigation_response.py @@ -34,7 +34,7 @@ def openapi_types(_): def __init__(self_, data: GetInvestigationResponseData, links: GetInvestigationResponseLinks, **kwargs): """ - Response for a single Bits AI investigation. + Response for a single Bits AI SRE investigation. :param data: Data for the get investigation response. :type data: GetInvestigationResponseData diff --git a/tests/v2/features/bits_ai.feature b/tests/v2/features/bits_ai_sre.feature similarity index 76% rename from tests/v2/features/bits_ai.feature rename to tests/v2/features/bits_ai_sre.feature index bc5ec941d8..12c8a3a187 100644 --- a/tests/v2/features/bits_ai.feature +++ b/tests/v2/features/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/tests/v2/features/undo.json b/tests/v2/features/undo.json index 71b0e9ba7a..ba5790b70c 100644 --- a/tests/v2/features/undo.json +++ b/tests/v2/features/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" }