Skip to content

Commit 4327e1f

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b9938f1 of spec repo
1 parent f4e7682 commit 4327e1f

9 files changed

Lines changed: 12153 additions & 79 deletions

File tree

.generator/schemas/v1/openapi.yaml

Lines changed: 2140 additions & 11 deletions
Large diffs are not rendered by default.

.generator/schemas/v2/openapi.yaml

Lines changed: 9990 additions & 45 deletions
Large diffs are not rendered by default.

examples/v2/llm-observability/CreateLLMObsAnnotationQueue.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
description="Rating of the response quality.",
2424
has_assessment=False,
2525
has_reasoning=False,
26-
id="ab12cd34",
26+
id="abc-123",
2727
is_assessment=False,
2828
is_integer=False,
2929
is_required=True,
@@ -41,7 +41,7 @@
4141
),
4242
description="Queue for annotating customer support traces",
4343
name="My annotation queue",
44-
project_id="a33671aa-24fd-4dcd-9b33-a8ec7dde7751",
44+
project_id="00000000-0000-0000-0000-000000000002",
4545
),
4646
type=LLMObsAnnotationQueueType.QUEUES,
4747
),

examples/v2/llm-observability/UpdateLLMObsAnnotationQueue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
description="Rating of the response quality.",
2626
has_assessment=False,
2727
has_reasoning=False,
28-
id="ab12cd34",
28+
id="abc-123",
2929
is_assessment=False,
3030
is_integer=False,
3131
is_required=True,

examples/v2/llm-observability/UpdateLLMObsAnnotationQueueLabelSchema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
description="Rating of the response quality.",
2828
has_assessment=False,
2929
has_reasoning=False,
30-
id="ab12cd34",
30+
id="abc-123",
3131
is_assessment=False,
3232
is_integer=False,
3333
is_required=True,

examples/v2/security-monitoring/MuteSecurityFindings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
reason=MuteFindingsReason.PENDING_FIX,
2626
),
2727
),
28-
id="93bfeb70-af47-424d-908a-948d3f08e37f",
28+
id="00000000-0000-0000-0000-000000000001",
2929
relationships=MuteFindingsRequestDataRelationships(
3030
findings=Findings(
3131
data=[

src/datadog_api_client/v2/model/security_entity_risk_score_attributes.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ def openapi_types(_):
4141
"first_detected": (int,),
4242
"last_activity_title": (str,),
4343
"last_detected": (int,),
44-
"risk_score": (float,),
45-
"risk_score_evolution": (float,),
44+
"risk_score": (int,),
45+
"risk_score_evolution": (int,),
4646
"severity": (SecurityEntityRiskScoreAttributesSeverity,),
4747
"signals_detected": (int,),
4848
}
@@ -74,8 +74,8 @@ def __init__(
7474
first_detected: int,
7575
last_activity_title: str,
7676
last_detected: int,
77-
risk_score: float,
78-
risk_score_evolution: float,
77+
risk_score: int,
78+
risk_score_evolution: int,
7979
severity: SecurityEntityRiskScoreAttributesSeverity,
8080
signals_detected: int,
8181
entity_name: Union[str, UnsetType] = unset,
@@ -116,10 +116,10 @@ def __init__(
116116
:type last_detected: int
117117
118118
:param risk_score: Current risk score for the entity
119-
:type risk_score: float
119+
:type risk_score: int
120120
121121
:param risk_score_evolution: Change in risk score compared to previous period
122-
:type risk_score_evolution: float
122+
:type risk_score_evolution: int
123123
124124
:param severity: Severity level based on risk score
125125
:type severity: SecurityEntityRiskScoreAttributesSeverity

tests/v2/features/llm_observability.feature

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ Feature: LLM Observability
7979
Scenario: Create an LLM Observability annotation queue returns "Bad Request" response
8080
Given operation "CreateLLMObsAnnotationQueue" enabled
8181
And new "CreateLLMObsAnnotationQueue" request
82-
And body with value {"data": {"attributes": {"annotation_schema": {"label_schemas": [{"description": "Rating of the response quality.", "has_assessment": false, "has_reasoning": false, "id": "ab12cd34", "is_assessment": false, "is_integer": false, "is_required": true, "max": 5.0, "min": 0.0, "name": "quality", "type": "score", "values": ["good", "bad", "neutral"]}]}, "description": "Queue for annotating customer support traces", "name": "My annotation queue", "project_id": "a33671aa-24fd-4dcd-9b33-a8ec7dde7751"}, "type": "queues"}}
82+
And body with value {"data": {"attributes": {"annotation_schema": {"label_schemas": [{"description": "Rating of the response quality.", "has_assessment": false, "has_reasoning": false, "id": "abc-123", "is_assessment": false, "is_integer": false, "is_required": true, "max": 5.0, "min": 0.0, "name": "quality", "type": "score", "values": ["good", "bad", "neutral"]}]}, "description": "Queue for annotating customer support traces", "name": "My annotation queue", "project_id": "00000000-0000-0000-0000-000000000002"}, "type": "queues"}}
8383
When the request is sent
8484
Then the response status is 400 Bad Request
8585

8686
@generated @skip @team:DataDog/ml-observability
8787
Scenario: Create an LLM Observability annotation queue returns "Created" response
8888
Given operation "CreateLLMObsAnnotationQueue" enabled
8989
And new "CreateLLMObsAnnotationQueue" request
90-
And body with value {"data": {"attributes": {"annotation_schema": {"label_schemas": [{"description": "Rating of the response quality.", "has_assessment": false, "has_reasoning": false, "id": "ab12cd34", "is_assessment": false, "is_integer": false, "is_required": true, "max": 5.0, "min": 0.0, "name": "quality", "type": "score", "values": ["good", "bad", "neutral"]}]}, "description": "Queue for annotating customer support traces", "name": "My annotation queue", "project_id": "a33671aa-24fd-4dcd-9b33-a8ec7dde7751"}, "type": "queues"}}
90+
And body with value {"data": {"attributes": {"annotation_schema": {"label_schemas": [{"description": "Rating of the response quality.", "has_assessment": false, "has_reasoning": false, "id": "abc-123", "is_assessment": false, "is_integer": false, "is_required": true, "max": 5.0, "min": 0.0, "name": "quality", "type": "score", "values": ["good", "bad", "neutral"]}]}, "description": "Queue for annotating customer support traces", "name": "My annotation queue", "project_id": "00000000-0000-0000-0000-000000000002"}, "type": "queues"}}
9191
When the request is sent
9292
Then the response status is 201 Created
9393

@@ -586,7 +586,7 @@ Feature: LLM Observability
586586
Given operation "UpdateLLMObsAnnotationQueue" enabled
587587
And new "UpdateLLMObsAnnotationQueue" request
588588
And request contains "queue_id" parameter from "REPLACE.ME"
589-
And body with value {"data": {"attributes": {"annotation_schema": {"label_schemas": [{"description": "Rating of the response quality.", "has_assessment": false, "has_reasoning": false, "id": "ab12cd34", "is_assessment": false, "is_integer": false, "is_required": true, "max": 5.0, "min": 0.0, "name": "quality", "type": "score", "values": ["good", "bad", "neutral"]}]}, "description": "Updated description", "name": "Updated queue name"}, "type": "queues"}}
589+
And body with value {"data": {"attributes": {"annotation_schema": {"label_schemas": [{"description": "Rating of the response quality.", "has_assessment": false, "has_reasoning": false, "id": "abc-123", "is_assessment": false, "is_integer": false, "is_required": true, "max": 5.0, "min": 0.0, "name": "quality", "type": "score", "values": ["good", "bad", "neutral"]}]}, "description": "Updated description", "name": "Updated queue name"}, "type": "queues"}}
590590
When the request is sent
591591
Then the response status is 400 Bad Request
592592

@@ -595,7 +595,7 @@ Feature: LLM Observability
595595
Given operation "UpdateLLMObsAnnotationQueue" enabled
596596
And new "UpdateLLMObsAnnotationQueue" request
597597
And request contains "queue_id" parameter from "REPLACE.ME"
598-
And body with value {"data": {"attributes": {"annotation_schema": {"label_schemas": [{"description": "Rating of the response quality.", "has_assessment": false, "has_reasoning": false, "id": "ab12cd34", "is_assessment": false, "is_integer": false, "is_required": true, "max": 5.0, "min": 0.0, "name": "quality", "type": "score", "values": ["good", "bad", "neutral"]}]}, "description": "Updated description", "name": "Updated queue name"}, "type": "queues"}}
598+
And body with value {"data": {"attributes": {"annotation_schema": {"label_schemas": [{"description": "Rating of the response quality.", "has_assessment": false, "has_reasoning": false, "id": "abc-123", "is_assessment": false, "is_integer": false, "is_required": true, "max": 5.0, "min": 0.0, "name": "quality", "type": "score", "values": ["good", "bad", "neutral"]}]}, "description": "Updated description", "name": "Updated queue name"}, "type": "queues"}}
599599
When the request is sent
600600
Then the response status is 404 Not Found
601601

@@ -604,7 +604,7 @@ Feature: LLM Observability
604604
Given operation "UpdateLLMObsAnnotationQueue" enabled
605605
And new "UpdateLLMObsAnnotationQueue" request
606606
And request contains "queue_id" parameter from "REPLACE.ME"
607-
And body with value {"data": {"attributes": {"annotation_schema": {"label_schemas": [{"description": "Rating of the response quality.", "has_assessment": false, "has_reasoning": false, "id": "ab12cd34", "is_assessment": false, "is_integer": false, "is_required": true, "max": 5.0, "min": 0.0, "name": "quality", "type": "score", "values": ["good", "bad", "neutral"]}]}, "description": "Updated description", "name": "Updated queue name"}, "type": "queues"}}
607+
And body with value {"data": {"attributes": {"annotation_schema": {"label_schemas": [{"description": "Rating of the response quality.", "has_assessment": false, "has_reasoning": false, "id": "abc-123", "is_assessment": false, "is_integer": false, "is_required": true, "max": 5.0, "min": 0.0, "name": "quality", "type": "score", "values": ["good", "bad", "neutral"]}]}, "description": "Updated description", "name": "Updated queue name"}, "type": "queues"}}
608608
When the request is sent
609609
Then the response status is 200 OK
610610

@@ -697,7 +697,7 @@ Feature: LLM Observability
697697
Given operation "UpdateLLMObsAnnotationQueueLabelSchema" enabled
698698
And new "UpdateLLMObsAnnotationQueueLabelSchema" request
699699
And request contains "queue_id" parameter from "REPLACE.ME"
700-
And body with value {"data": {"attributes": {"annotation_schema": {"label_schemas": [{"description": "Rating of the response quality.", "has_assessment": false, "has_reasoning": false, "id": "ab12cd34", "is_assessment": false, "is_integer": false, "is_required": true, "max": 5.0, "min": 0.0, "name": "quality", "type": "score", "values": ["good", "bad", "neutral"]}]}}, "type": "queues"}}
700+
And body with value {"data": {"attributes": {"annotation_schema": {"label_schemas": [{"description": "Rating of the response quality.", "has_assessment": false, "has_reasoning": false, "id": "abc-123", "is_assessment": false, "is_integer": false, "is_required": true, "max": 5.0, "min": 0.0, "name": "quality", "type": "score", "values": ["good", "bad", "neutral"]}]}}, "type": "queues"}}
701701
When the request is sent
702702
Then the response status is 400 Bad Request
703703

@@ -706,7 +706,7 @@ Feature: LLM Observability
706706
Given operation "UpdateLLMObsAnnotationQueueLabelSchema" enabled
707707
And new "UpdateLLMObsAnnotationQueueLabelSchema" request
708708
And request contains "queue_id" parameter from "REPLACE.ME"
709-
And body with value {"data": {"attributes": {"annotation_schema": {"label_schemas": [{"description": "Rating of the response quality.", "has_assessment": false, "has_reasoning": false, "id": "ab12cd34", "is_assessment": false, "is_integer": false, "is_required": true, "max": 5.0, "min": 0.0, "name": "quality", "type": "score", "values": ["good", "bad", "neutral"]}]}}, "type": "queues"}}
709+
And body with value {"data": {"attributes": {"annotation_schema": {"label_schemas": [{"description": "Rating of the response quality.", "has_assessment": false, "has_reasoning": false, "id": "abc-123", "is_assessment": false, "is_integer": false, "is_required": true, "max": 5.0, "min": 0.0, "name": "quality", "type": "score", "values": ["good", "bad", "neutral"]}]}}, "type": "queues"}}
710710
When the request is sent
711711
Then the response status is 404 Not Found
712712

@@ -715,6 +715,6 @@ Feature: LLM Observability
715715
Given operation "UpdateLLMObsAnnotationQueueLabelSchema" enabled
716716
And new "UpdateLLMObsAnnotationQueueLabelSchema" request
717717
And request contains "queue_id" parameter from "REPLACE.ME"
718-
And body with value {"data": {"attributes": {"annotation_schema": {"label_schemas": [{"description": "Rating of the response quality.", "has_assessment": false, "has_reasoning": false, "id": "ab12cd34", "is_assessment": false, "is_integer": false, "is_required": true, "max": 5.0, "min": 0.0, "name": "quality", "type": "score", "values": ["good", "bad", "neutral"]}]}}, "type": "queues"}}
718+
And body with value {"data": {"attributes": {"annotation_schema": {"label_schemas": [{"description": "Rating of the response quality.", "has_assessment": false, "has_reasoning": false, "id": "abc-123", "is_assessment": false, "is_integer": false, "is_required": true, "max": 5.0, "min": 0.0, "name": "quality", "type": "score", "values": ["good", "bad", "neutral"]}]}}, "type": "queues"}}
719719
When the request is sent
720720
Then the response status is 200 OK

tests/v2/features/security_monitoring.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1889,31 +1889,31 @@ Feature: Security Monitoring
18891889
Scenario: Mute or unmute security findings returns "Accepted" response
18901890
Given operation "MuteSecurityFindings" enabled
18911891
And new "MuteSecurityFindings" request
1892-
And body with value {"data": {"attributes": {"mute": {"description": "To be resolved later.", "expire_at": 1778721573794, "is_muted": true, "reason": "PENDING_FIX"}}, "id": "93bfeb70-af47-424d-908a-948d3f08e37f", "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}}, "type": "mute"}}
1892+
And body with value {"data": {"attributes": {"mute": {"description": "To be resolved later.", "expire_at": 1778721573794, "is_muted": true, "reason": "PENDING_FIX"}}, "id": "00000000-0000-0000-0000-000000000001", "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}}, "type": "mute"}}
18931893
When the request is sent
18941894
Then the response status is 202 Accepted
18951895

18961896
@generated @skip @team:DataDog/k9-investigation
18971897
Scenario: Mute or unmute security findings returns "Bad Request" response
18981898
Given operation "MuteSecurityFindings" enabled
18991899
And new "MuteSecurityFindings" request
1900-
And body with value {"data": {"attributes": {"mute": {"description": "To be resolved later.", "expire_at": 1778721573794, "is_muted": true, "reason": "PENDING_FIX"}}, "id": "93bfeb70-af47-424d-908a-948d3f08e37f", "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}}, "type": "mute"}}
1900+
And body with value {"data": {"attributes": {"mute": {"description": "To be resolved later.", "expire_at": 1778721573794, "is_muted": true, "reason": "PENDING_FIX"}}, "id": "00000000-0000-0000-0000-000000000001", "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}}, "type": "mute"}}
19011901
When the request is sent
19021902
Then the response status is 400 Bad Request
19031903

19041904
@generated @skip @team:DataDog/k9-investigation
19051905
Scenario: Mute or unmute security findings returns "Not Found" response
19061906
Given operation "MuteSecurityFindings" enabled
19071907
And new "MuteSecurityFindings" request
1908-
And body with value {"data": {"attributes": {"mute": {"description": "To be resolved later.", "expire_at": 1778721573794, "is_muted": true, "reason": "PENDING_FIX"}}, "id": "93bfeb70-af47-424d-908a-948d3f08e37f", "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}}, "type": "mute"}}
1908+
And body with value {"data": {"attributes": {"mute": {"description": "To be resolved later.", "expire_at": 1778721573794, "is_muted": true, "reason": "PENDING_FIX"}}, "id": "00000000-0000-0000-0000-000000000001", "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}}, "type": "mute"}}
19091909
When the request is sent
19101910
Then the response status is 404 Not Found
19111911

19121912
@generated @skip @team:DataDog/k9-investigation
19131913
Scenario: Mute or unmute security findings returns "Unprocessable Entity" response
19141914
Given operation "MuteSecurityFindings" enabled
19151915
And new "MuteSecurityFindings" request
1916-
And body with value {"data": {"attributes": {"mute": {"description": "To be resolved later.", "expire_at": 1778721573794, "is_muted": true, "reason": "PENDING_FIX"}}, "id": "93bfeb70-af47-424d-908a-948d3f08e37f", "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}}, "type": "mute"}}
1916+
And body with value {"data": {"attributes": {"mute": {"description": "To be resolved later.", "expire_at": 1778721573794, "is_muted": true, "reason": "PENDING_FIX"}}, "id": "00000000-0000-0000-0000-000000000001", "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}}, "type": "mute"}}
19171917
When the request is sent
19181918
Then the response status is 422 Unprocessable Entity
19191919

0 commit comments

Comments
 (0)