Skip to content

Commit b6ace8c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 16c48ca of spec repo
1 parent 78fb7bf commit b6ace8c

11 files changed

Lines changed: 54 additions & 54 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30372,7 +30372,7 @@ components:
3037230372
type: array
3037330373
type: object
3037430374
GetInvestigationResponse:
30375-
description: Response for a single Bits AI investigation.
30375+
description: Response for a single Bits AI SRE investigation.
3037630376
properties:
3037730377
data:
3037830378
$ref: "#/components/schemas/GetInvestigationResponseData"
@@ -87059,7 +87059,7 @@ paths:
8705987059
- user_access_manage
8706087060
/api/v2/bits-ai/investigations:
8706187061
get:
87062-
description: List all Bits AI investigations for the organization.
87062+
description: List all Bits AI SRE investigations for the organization.
8706387063
operationId: ListInvestigations
8706487064
parameters:
8706587065
- description: Offset for pagination.
@@ -87126,9 +87126,9 @@ paths:
8712687126
appKeyAuth: []
8712787127
- AuthZ:
8712887128
- bits_investigations_read
87129-
summary: List Bits AI investigations
87129+
summary: List Bits AI SRE investigations
8713087130
tags:
87131-
- Bits AI
87131+
- Bits AI SRE
8713287132
x-pagination:
8713387133
limitParam: page[limit]
8713487134
pageOffsetParam: page[offset]
@@ -87141,7 +87141,7 @@ paths:
8714187141
**Note**: This endpoint is in preview and is subject to change.
8714287142
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
8714387143
post:
87144-
description: Trigger a new Bits AI investigation based on a monitor alert.
87144+
description: Trigger a new Bits AI SRE investigation based on a monitor alert.
8714587145
operationId: TriggerInvestigation
8714687146
requestBody:
8714787147
content:
@@ -87190,9 +87190,9 @@ paths:
8719087190
appKeyAuth: []
8719187191
- AuthZ:
8719287192
- bits_investigations_write
87193-
summary: Trigger a Bits AI investigation
87193+
summary: Trigger a Bits AI SRE investigation
8719487194
tags:
87195-
- Bits AI
87195+
- Bits AI SRE
8719687196
x-codegen-request-body-name: body
8719787197
"x-permission":
8719887198
operator: OR
@@ -87203,7 +87203,7 @@ paths:
8720387203
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
8720487204
/api/v2/bits-ai/investigations/{id}:
8720587205
get:
87206-
description: Get a specific Bits AI investigation by ID.
87206+
description: Get a specific Bits AI SRE investigation by ID.
8720787207
operationId: GetInvestigation
8720887208
parameters:
8720987209
- description: The ID of the investigation.
@@ -87254,9 +87254,9 @@ paths:
8725487254
appKeyAuth: []
8725587255
- AuthZ:
8725687256
- bits_investigations_read
87257-
summary: Get a Bits AI investigation
87257+
summary: Get a Bits AI SRE investigation
8725887258
tags:
87259-
- Bits AI
87259+
- Bits AI SRE
8726087260
"x-permission":
8726187261
operator: OR
8726287262
permissions:
@@ -132955,8 +132955,8 @@ tags:
132955132955
sent from Identity Providers. Use these endpoints to manage your AuthN Mappings.
132956132956
name: AuthN Mappings
132957132957
- description: |-
132958-
Use the Bits AI endpoints to retrieve AI-powered investigations.
132959-
name: Bits AI
132958+
Use the Bits AI SRE endpoints to retrieve AI-powered investigations.
132959+
name: Bits AI SRE
132960132960
- description: |-
132961132961
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.
132962132962
name: CI Visibility Pipelines

docs/datadog_api_client.v2.api.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ datadog\_api\_client.v2.api.aws\_logs\_integration\_api module
8888
:members:
8989
:show-inheritance:
9090

91-
datadog\_api\_client.v2.api.bits\_ai\_api module
92-
------------------------------------------------
91+
datadog\_api\_client.v2.api.bits\_ai\_sre\_api module
92+
-----------------------------------------------------
9393

94-
.. automodule:: datadog_api_client.v2.api.bits_ai_api
94+
.. automodule:: datadog_api_client.v2.api.bits_ai_sre_api
9595
:members:
9696
:show-inheritance:
9797

examples/v2/bits-ai/GetInvestigation.py renamed to examples/v2/bits-ai-sre/GetInvestigation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
"""
2-
Get a Bits AI investigation returns "OK" response
2+
Get a Bits AI SRE investigation returns "OK" response
33
"""
44

55
from datadog_api_client import ApiClient, Configuration
6-
from datadog_api_client.v2.api.bits_ai_api import BitsAIApi
6+
from datadog_api_client.v2.api.bits_aisre_api import BitsAISREApi
77

88
configuration = Configuration()
99
configuration.unstable_operations["get_investigation"] = True
1010
with ApiClient(configuration) as api_client:
11-
api_instance = BitsAIApi(api_client)
11+
api_instance = BitsAISREApi(api_client)
1212
response = api_instance.get_investigation(
1313
id="id",
1414
)
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
"""
2-
List Bits AI investigations returns "OK" response
2+
List Bits AI SRE investigations returns "OK" response
33
"""
44

55
from datadog_api_client import ApiClient, Configuration
6-
from datadog_api_client.v2.api.bits_ai_api import BitsAIApi
6+
from datadog_api_client.v2.api.bits_aisre_api import BitsAISREApi
77

88
configuration = Configuration()
99
configuration.unstable_operations["list_investigations"] = True
1010
with ApiClient(configuration) as api_client:
11-
api_instance = BitsAIApi(api_client)
11+
api_instance = BitsAISREApi(api_client)
1212
response = api_instance.list_investigations()
1313

1414
print(response)

examples/v2/bits-ai/ListInvestigations_130750454.py renamed to examples/v2/bits-ai-sre/ListInvestigations_1361254656.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
"""
2-
List Bits AI investigations returns "OK" response with pagination
2+
List Bits AI SRE investigations returns "OK" response with pagination
33
"""
44

55
from datadog_api_client import ApiClient, Configuration
6-
from datadog_api_client.v2.api.bits_ai_api import BitsAIApi
6+
from datadog_api_client.v2.api.bits_aisre_api import BitsAISREApi
77

88
configuration = Configuration()
99
configuration.unstable_operations["list_investigations"] = True
1010
with ApiClient(configuration) as api_client:
11-
api_instance = BitsAIApi(api_client)
11+
api_instance = BitsAISREApi(api_client)
1212
items = api_instance.list_investigations_with_pagination()
1313
for item in items:
1414
print(item)

examples/v2/bits-ai/TriggerInvestigation.py renamed to examples/v2/bits-ai-sre/TriggerInvestigation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""
2-
Trigger a Bits AI investigation returns "OK" response
2+
Trigger a Bits AI SRE investigation returns "OK" response
33
"""
44

55
from datadog_api_client import ApiClient, Configuration
6-
from datadog_api_client.v2.api.bits_ai_api import BitsAIApi
6+
from datadog_api_client.v2.api.bits_aisre_api import BitsAISREApi
77
from datadog_api_client.v2.model.monitor_alert_trigger_attributes import MonitorAlertTriggerAttributes
88
from datadog_api_client.v2.model.trigger_attributes import TriggerAttributes
99
from datadog_api_client.v2.model.trigger_investigation_request import TriggerInvestigationRequest
@@ -33,7 +33,7 @@
3333
configuration = Configuration()
3434
configuration.unstable_operations["trigger_investigation"] = True
3535
with ApiClient(configuration) as api_client:
36-
api_instance = BitsAIApi(api_client)
36+
api_instance = BitsAISREApi(api_client)
3737
response = api_instance.trigger_investigation(body=body)
3838

3939
print(response)

src/datadog_api_client/v2/api/bits_ai_api.py renamed to src/datadog_api_client/v2/api/bits_ai_sre_api.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
from datadog_api_client.v2.model.get_investigation_response import GetInvestigationResponse
2222

2323

24-
class BitsAIApi:
24+
class BitsAISREApi:
2525
"""
26-
Use the Bits AI endpoints to retrieve AI-powered investigations.
26+
Use the Bits AI SRE endpoints to retrieve AI-powered investigations.
2727
"""
2828

2929
def __init__(self, api_client=None):
@@ -113,9 +113,9 @@ def get_investigation(
113113
self,
114114
id: str,
115115
) -> GetInvestigationResponse:
116-
"""Get a Bits AI investigation.
116+
"""Get a Bits AI SRE investigation.
117117
118-
Get a specific Bits AI investigation by ID.
118+
Get a specific Bits AI SRE investigation by ID.
119119
120120
:param id: The ID of the investigation.
121121
:type id: str
@@ -133,9 +133,9 @@ def list_investigations(
133133
page_limit: Union[int, UnsetType] = unset,
134134
filter_monitor_id: Union[int, UnsetType] = unset,
135135
) -> ListInvestigationsResponse:
136-
"""List Bits AI investigations.
136+
"""List Bits AI SRE investigations.
137137
138-
List all Bits AI investigations for the organization.
138+
List all Bits AI SRE investigations for the organization.
139139
140140
:param page_offset: Offset for pagination.
141141
:type page_offset: int, optional
@@ -164,7 +164,7 @@ def list_investigations_with_pagination(
164164
page_limit: Union[int, UnsetType] = unset,
165165
filter_monitor_id: Union[int, UnsetType] = unset,
166166
) -> collections.abc.Iterable[ListInvestigationsResponseData]:
167-
"""List Bits AI investigations.
167+
"""List Bits AI SRE investigations.
168168
169169
Provide a paginated version of :meth:`list_investigations`, returning all items.
170170
@@ -204,9 +204,9 @@ def trigger_investigation(
204204
self,
205205
body: TriggerInvestigationRequest,
206206
) -> TriggerInvestigationResponse:
207-
"""Trigger a Bits AI investigation.
207+
"""Trigger a Bits AI SRE investigation.
208208
209-
Trigger a new Bits AI investigation based on a monitor alert.
209+
Trigger a new Bits AI SRE investigation based on a monitor alert.
210210
211211
:param body: Trigger investigation request body.
212212
:type body: TriggerInvestigationRequest

src/datadog_api_client/v2/apis/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from datadog_api_client.v2.api.application_security_api import ApplicationSecurityApi
1111
from datadog_api_client.v2.api.audit_api import AuditApi
1212
from datadog_api_client.v2.api.authn_mappings_api import AuthNMappingsApi
13-
from datadog_api_client.v2.api.bits_ai_api import BitsAIApi
13+
from datadog_api_client.v2.api.bits_aisre_api import BitsAISREApi
1414
from datadog_api_client.v2.api.ci_visibility_pipelines_api import CIVisibilityPipelinesApi
1515
from datadog_api_client.v2.api.ci_visibility_tests_api import CIVisibilityTestsApi
1616
from datadog_api_client.v2.api.csm_agents_api import CSMAgentsApi
@@ -121,7 +121,7 @@
121121
"ApplicationSecurityApi",
122122
"AuditApi",
123123
"AuthNMappingsApi",
124-
"BitsAIApi",
124+
"BitsAISREApi",
125125
"CIVisibilityPipelinesApi",
126126
"CIVisibilityTestsApi",
127127
"CSMAgentsApi",

src/datadog_api_client/v2/model/get_investigation_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def openapi_types(_):
3434

3535
def __init__(self_, data: GetInvestigationResponseData, links: GetInvestigationResponseLinks, **kwargs):
3636
"""
37-
Response for a single Bits AI investigation.
37+
Response for a single Bits AI SRE investigation.
3838
3939
:param data: Data for the get investigation response.
4040
:type data: GetInvestigationResponseData
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,67 @@
1-
@endpoint(bits-ai) @endpoint(bits-ai-v2)
2-
Feature: Bits AI
3-
Use the Bits AI endpoints to retrieve AI-powered investigations.
1+
@endpoint(bits-ai-sre) @endpoint(bits-ai-sre-v2)
2+
Feature: Bits AI SRE
3+
Use the Bits AI SRE endpoints to retrieve AI-powered investigations.
44

55
Background:
66
Given a valid "apiKeyAuth" key in the system
77
And a valid "appKeyAuth" key in the system
8-
And an instance of "BitsAI" API
8+
And an instance of "BitsAISRE" API
99

1010
@generated @skip @team:DataDog/bits-ai
11-
Scenario: Get a Bits AI investigation returns "Bad Request" response
11+
Scenario: Get a Bits AI SRE investigation returns "Bad Request" response
1212
Given operation "GetInvestigation" enabled
1313
And new "GetInvestigation" request
1414
And request contains "id" parameter from "REPLACE.ME"
1515
When the request is sent
1616
Then the response status is 400 Bad Request
1717

1818
@generated @skip @team:DataDog/bits-ai
19-
Scenario: Get a Bits AI investigation returns "Not Found" response
19+
Scenario: Get a Bits AI SRE investigation returns "Not Found" response
2020
Given operation "GetInvestigation" enabled
2121
And new "GetInvestigation" request
2222
And request contains "id" parameter from "REPLACE.ME"
2323
When the request is sent
2424
Then the response status is 404 Not Found
2525

2626
@generated @skip @team:DataDog/bits-ai
27-
Scenario: Get a Bits AI investigation returns "OK" response
27+
Scenario: Get a Bits AI SRE investigation returns "OK" response
2828
Given operation "GetInvestigation" enabled
2929
And new "GetInvestigation" request
3030
And request contains "id" parameter from "REPLACE.ME"
3131
When the request is sent
3232
Then the response status is 200 OK
3333

3434
@generated @skip @team:DataDog/bits-ai
35-
Scenario: List Bits AI investigations returns "Bad Request" response
35+
Scenario: List Bits AI SRE investigations returns "Bad Request" response
3636
Given operation "ListInvestigations" enabled
3737
And new "ListInvestigations" request
3838
When the request is sent
3939
Then the response status is 400 Bad Request
4040

4141
@generated @skip @team:DataDog/bits-ai
42-
Scenario: List Bits AI investigations returns "OK" response
42+
Scenario: List Bits AI SRE investigations returns "OK" response
4343
Given operation "ListInvestigations" enabled
4444
And new "ListInvestigations" request
4545
When the request is sent
4646
Then the response status is 200 OK
4747

4848
@generated @skip @team:DataDog/bits-ai @with-pagination
49-
Scenario: List Bits AI investigations returns "OK" response with pagination
49+
Scenario: List Bits AI SRE investigations returns "OK" response with pagination
5050
Given operation "ListInvestigations" enabled
5151
And new "ListInvestigations" request
5252
When the request with pagination is sent
5353
Then the response status is 200 OK
5454

5555
@generated @skip @team:DataDog/bits-ai
56-
Scenario: Trigger a Bits AI investigation returns "Bad Request" response
56+
Scenario: Trigger a Bits AI SRE investigation returns "Bad Request" response
5757
Given operation "TriggerInvestigation" enabled
5858
And new "TriggerInvestigation" request
5959
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"}}
6060
When the request is sent
6161
Then the response status is 400 Bad Request
6262

6363
@generated @skip @team:DataDog/bits-ai
64-
Scenario: Trigger a Bits AI investigation returns "OK" response
64+
Scenario: Trigger a Bits AI SRE investigation returns "OK" response
6565
Given operation "TriggerInvestigation" enabled
6666
And new "TriggerInvestigation" request
6767
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"}}

0 commit comments

Comments
 (0)