Skip to content

Commit fbfac13

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b9938f1 of spec repo
1 parent 2b4fe50 commit fbfac13

9 files changed

Lines changed: 12153 additions & 79 deletions

.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.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ async fn main() {
1414
let body = LLMObsAnnotationQueueRequest::new(LLMObsAnnotationQueueDataRequest::new(
1515
LLMObsAnnotationQueueDataAttributesRequest::new(
1616
"My annotation queue".to_string(),
17-
"a33671aa-24fd-4dcd-9b33-a8ec7dde7751".to_string(),
17+
"00000000-0000-0000-0000-000000000002".to_string(),
1818
)
1919
.annotation_schema(LLMObsAnnotationSchema::new(vec![LLMObsLabelSchema::new(
2020
"quality".to_string(),
@@ -23,7 +23,7 @@ async fn main() {
2323
.description("Rating of the response quality.".to_string())
2424
.has_assessment(false)
2525
.has_reasoning(false)
26-
.id("ab12cd34".to_string())
26+
.id("abc-123".to_string())
2727
.is_assessment(false)
2828
.is_integer(false)
2929
.is_required(true)

examples/v2_llm-observability_UpdateLLMObsAnnotationQueue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ async fn main() {
2121
.description("Rating of the response quality.".to_string())
2222
.has_assessment(false)
2323
.has_reasoning(false)
24-
.id("ab12cd34".to_string())
24+
.id("abc-123".to_string())
2525
.is_assessment(false)
2626
.is_integer(false)
2727
.is_required(true)

examples/v2_llm-observability_UpdateLLMObsAnnotationQueueLabelSchema.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ async fn main() {
1919
.description("Rating of the response quality.".to_string())
2020
.has_assessment(false)
2121
.has_reasoning(false)
22-
.id("ab12cd34".to_string())
22+
.id("abc-123".to_string())
2323
.is_assessment(false)
2424
.is_integer(false)
2525
.is_required(true)

examples/v2_security-monitoring_MuteSecurityFindings.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async fn main() {
2929
])),
3030
MuteDataType::MUTE,
3131
)
32-
.id("93bfeb70-af47-424d-908a-948d3f08e37f".to_string()),
32+
.id("00000000-0000-0000-0000-000000000001".to_string()),
3333
);
3434
let mut configuration = datadog::Configuration::new();
3535
configuration.set_unstable_operation_enabled("v2.MuteSecurityFindings", true);

src/datadogV2/model/model_security_entity_risk_score_attributes.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ pub struct SecurityEntityRiskScoreAttributes {
4343
pub last_detected: i64,
4444
/// Current risk score for the entity
4545
#[serde(rename = "riskScore")]
46-
pub risk_score: f64,
46+
pub risk_score: i64,
4747
/// Change in risk score compared to previous period
4848
#[serde(rename = "riskScoreEvolution")]
49-
pub risk_score_evolution: f64,
49+
pub risk_score_evolution: i64,
5050
/// Severity level based on risk score
5151
#[serde(rename = "severity")]
5252
pub severity: crate::datadogV2::model::SecurityEntityRiskScoreAttributesSeverity,
@@ -70,8 +70,8 @@ impl SecurityEntityRiskScoreAttributes {
7070
first_detected: i64,
7171
last_activity_title: String,
7272
last_detected: i64,
73-
risk_score: f64,
74-
risk_score_evolution: f64,
73+
risk_score: i64,
74+
risk_score_evolution: i64,
7575
severity: crate::datadogV2::model::SecurityEntityRiskScoreAttributesSeverity,
7676
signals_detected: i64,
7777
) -> SecurityEntityRiskScoreAttributes {
@@ -143,8 +143,8 @@ impl<'de> Deserialize<'de> for SecurityEntityRiskScoreAttributes {
143143
let mut first_detected: Option<i64> = None;
144144
let mut last_activity_title: Option<String> = None;
145145
let mut last_detected: Option<i64> = None;
146-
let mut risk_score: Option<f64> = None;
147-
let mut risk_score_evolution: Option<f64> = None;
146+
let mut risk_score: Option<i64> = None;
147+
let mut risk_score_evolution: Option<i64> = None;
148148
let mut severity: Option<
149149
crate::datadogV2::model::SecurityEntityRiskScoreAttributesSeverity,
150150
> = None;

tests/scenarios/features/v2/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/scenarios/features/v2/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)