Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-06-26 16:04:30.288372",
"spec_repo_commit": "c051b78b"
"regenerated": "2025-06-26 17:56:33.436535",
"spec_repo_commit": "76086f13"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-06-26 16:04:30.304279",
"spec_repo_commit": "c051b78b"
"regenerated": "2025-06-26 17:56:33.454744",
"spec_repo_commit": "76086f13"
}
}
}
7 changes: 0 additions & 7 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19592,12 +19592,6 @@ components:
JobDefinitionFromRule:
description: Definition of a historical job based on a security monitoring rule.
properties:
caseIndex:
description: Index of the rule case applied by the job.
example: 0
format: int32
maximum: 9
type: integer
from:
description: Starting time of data analyzed by the job.
example: 1729843470000
Expand Down Expand Up @@ -19628,7 +19622,6 @@ components:
- from
- to
- index
- caseIndex
type: object
KindAttributes:
description: Kind attributes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

/** Definition of a historical job based on a security monitoring rule. */
@JsonPropertyOrder({
JobDefinitionFromRule.JSON_PROPERTY_CASE_INDEX,
JobDefinitionFromRule.JSON_PROPERTY_FROM,
JobDefinitionFromRule.JSON_PROPERTY_ID,
JobDefinitionFromRule.JSON_PROPERTY_INDEX,
Expand All @@ -32,9 +31,6 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class JobDefinitionFromRule {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_CASE_INDEX = "caseIndex";
private Integer caseIndex;

public static final String JSON_PROPERTY_FROM = "from";
private Long from;

Expand All @@ -54,38 +50,16 @@ public JobDefinitionFromRule() {}

@JsonCreator
public JobDefinitionFromRule(
@JsonProperty(required = true, value = JSON_PROPERTY_CASE_INDEX) Integer caseIndex,
@JsonProperty(required = true, value = JSON_PROPERTY_FROM) Long from,
@JsonProperty(required = true, value = JSON_PROPERTY_ID) String id,
@JsonProperty(required = true, value = JSON_PROPERTY_INDEX) String index,
@JsonProperty(required = true, value = JSON_PROPERTY_TO) Long to) {
this.caseIndex = caseIndex;
this.from = from;
this.id = id;
this.index = index;
this.to = to;
}

public JobDefinitionFromRule caseIndex(Integer caseIndex) {
this.caseIndex = caseIndex;
return this;
}

/**
* Index of the rule case applied by the job. maximum: 9
*
* @return caseIndex
*/
@JsonProperty(JSON_PROPERTY_CASE_INDEX)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getCaseIndex() {
return caseIndex;
}

public void setCaseIndex(Integer caseIndex) {
this.caseIndex = caseIndex;
}

public JobDefinitionFromRule from(Long from) {
this.from = from;
return this;
Expand Down Expand Up @@ -251,8 +225,7 @@ public boolean equals(Object o) {
return false;
}
JobDefinitionFromRule jobDefinitionFromRule = (JobDefinitionFromRule) o;
return Objects.equals(this.caseIndex, jobDefinitionFromRule.caseIndex)
&& Objects.equals(this.from, jobDefinitionFromRule.from)
return Objects.equals(this.from, jobDefinitionFromRule.from)
&& Objects.equals(this.id, jobDefinitionFromRule.id)
&& Objects.equals(this.index, jobDefinitionFromRule.index)
&& Objects.equals(this.notifications, jobDefinitionFromRule.notifications)
Expand All @@ -262,14 +235,13 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(caseIndex, from, id, index, notifications, to, additionalProperties);
return Objects.hash(from, id, index, notifications, to, additionalProperties);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class JobDefinitionFromRule {\n");
sb.append(" caseIndex: ").append(toIndentedString(caseIndex)).append("\n");
sb.append(" from: ").append(toIndentedString(from)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" index: ").append(toIndentedString(index)).append("\n");
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-11-08T09:54:40.192Z
2025-06-26T16:57:47.524Z
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"httpRequest": {
"body": {
"type": "JSON",
"json": "{\"data\":{\"attributes\":{\"fromRule\":{\"caseIndex\":0,\"from\":1730201035064,\"id\":\"non-existng\",\"index\":\"main\",\"notifications\":[],\"to\":1730204635115}},\"type\":\"historicalDetectionsJobCreate\"}}"
"json": "{\"data\":{\"attributes\":{\"fromRule\":{\"from\":1730201035064,\"id\":\"non-existng\",\"index\":\"main\",\"notifications\":[],\"to\":1730204635115}},\"type\":\"historicalDetectionsJobCreate\"}}"
},
"headers": {},
"method": "POST",
Expand All @@ -12,7 +12,7 @@
"secure": true
},
"httpResponse": {
"body": "{\"errors\":[{\"status\":\"404\",\"detail\":\"failed to get rule details\"}]}",
"body": "{\"errors\":[{\"status\":\"404\",\"title\":\"Not Found\"}]}",
"headers": {
"Content-Type": [
"application/vnd.api+json"
Expand All @@ -27,6 +27,6 @@
"timeToLive": {
"unlimited": true
},
"id": "8056350d-00d9-df6e-525e-771fe22b1354"
"id": "6baefcd2-575a-7f9d-36bf-f35d836edcfc"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ Feature: Security Monitoring
Scenario: Run a historical job returns "Not Found" response
Given operation "RunHistoricalJob" enabled
And new "RunHistoricalJob" request
And body with value {"data": { "type": "historicalDetectionsJobCreate", "attributes": {"fromRule": {"caseIndex": 0, "from": 1730201035064, "id": "non-existng", "index": "main", "notifications": [], "to": 1730204635115}}}}
And body with value {"data": { "type": "historicalDetectionsJobCreate", "attributes": {"fromRule": {"from": 1730201035064, "id": "non-existng", "index": "main", "notifications": [], "to": 1730204635115}}}}
When the request is sent
Then the response status is 404 Not Found

Expand Down
Loading