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.516305",
"spec_repo_commit": "c051b78b"
"regenerated": "2025-06-26 17:56:17.204143",
"spec_repo_commit": "76086f13"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-06-26 16:04:30.532847",
"spec_repo_commit": "c051b78b"
"regenerated": "2025-06-26 17:56:17.219918",
"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
@@ -1 +1 @@
2024-11-08T09:54:40.192Z
2025-06-26T16:57:47.524Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion features/v2/security_monitoring.feature
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
27 changes: 1 addition & 26 deletions lib/datadog_api_client/v2/models/job_definition_from_rule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ module DatadogAPIClient::V2
class JobDefinitionFromRule
include BaseGenericModel

# Index of the rule case applied by the job.
attr_reader :case_index

# Starting time of data analyzed by the job.
attr_reader :from

Expand All @@ -45,7 +42,6 @@ class JobDefinitionFromRule
# @!visibility private
def self.attribute_map
{
:'case_index' => :'caseIndex',
:'from' => :'from',
:'id' => :'id',
:'index' => :'index',
Expand All @@ -58,7 +54,6 @@ def self.attribute_map
# @!visibility private
def self.openapi_types
{
:'case_index' => :'Integer',
:'from' => :'Integer',
:'id' => :'String',
:'index' => :'String',
Expand All @@ -85,10 +80,6 @@ def initialize(attributes = {})
end
}

if attributes.key?(:'case_index')
self.case_index = attributes[:'case_index']
end

if attributes.key?(:'from')
self.from = attributes[:'from']
end
Expand Down Expand Up @@ -116,28 +107,13 @@ def initialize(attributes = {})
# @return true if the model is valid
# @!visibility private
def valid?
return false if @case_index.nil?
return false if @case_index > 9
return false if @from.nil?
return false if @id.nil?
return false if @index.nil?
return false if @to.nil?
true
end

# Custom attribute writer method with validation
# @param case_index [Object] Object to be assigned
# @!visibility private
def case_index=(case_index)
if case_index.nil?
fail ArgumentError, 'invalid value for "case_index", case_index cannot be nil.'
end
if case_index > 9
fail ArgumentError, 'invalid value for "case_index", must be smaller than or equal to 9.'
end
@case_index = case_index
end

# Custom attribute writer method with validation
# @param from [Object] Object to be assigned
# @!visibility private
Expand Down Expand Up @@ -204,7 +180,6 @@ def to_hash
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
case_index == o.case_index &&
from == o.from &&
id == o.id &&
index == o.index &&
Expand All @@ -217,7 +192,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[case_index, from, id, index, notifications, to, additional_properties].hash
[from, id, index, notifications, to, additional_properties].hash
end
end
end
Loading