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
399 changes: 200 additions & 199 deletions .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions api/datadog/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -609,24 +609,24 @@ func NewConfiguration() *Configuration {
"v2.GetOpenAPI": false,
"v2.ListAPIs": false,
"v2.UpdateOpenAPI": false,
"v2.CancelHistoricalJob": false,
"v2.CancelThreatHuntingJob": false,
"v2.ConvertJobResultToSignal": false,
"v2.DeleteHistoricalJob": false,
"v2.DeleteThreatHuntingJob": false,
"v2.GetFinding": false,
"v2.GetHistoricalJob": false,
"v2.GetRuleVersionHistory": false,
"v2.GetSBOM": false,
"v2.GetSecurityMonitoringHistsignal": false,
"v2.GetSecurityMonitoringHistsignalsByJobId": false,
"v2.GetThreatHuntingJob": false,
"v2.ListAssetsSBOMs": false,
"v2.ListFindings": false,
"v2.ListHistoricalJobs": false,
"v2.ListScannedAssetsMetadata": false,
"v2.ListSecurityMonitoringHistsignals": false,
"v2.ListThreatHuntingJobs": false,
"v2.ListVulnerabilities": false,
"v2.ListVulnerableAssets": false,
"v2.MuteFindings": false,
"v2.RunHistoricalJob": false,
"v2.RunThreatHuntingJob": false,
"v2.SearchSecurityMonitoringHistsignals": false,
"v2.CreateDataset": false,
"v2.DeleteDataset": false,
Expand Down
578 changes: 289 additions & 289 deletions api/datadogV2/api_security_monitoring.go

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions api/datadogV2/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@
// - [RumRetentionFiltersApi.ListRetentionFilters]
// - [RumRetentionFiltersApi.OrderRetentionFilters]
// - [RumRetentionFiltersApi.UpdateRetentionFilter]
// - [SecurityMonitoringApi.CancelHistoricalJob]
// - [SecurityMonitoringApi.CancelThreatHuntingJob]
// - [SecurityMonitoringApi.ConvertExistingSecurityMonitoringRule]
// - [SecurityMonitoringApi.ConvertJobResultToSignal]
// - [SecurityMonitoringApi.ConvertSecurityMonitoringRuleFromJSONToTerraform]
Expand All @@ -490,18 +490,17 @@
// - [SecurityMonitoringApi.CreateSignalNotificationRule]
// - [SecurityMonitoringApi.CreateVulnerabilityNotificationRule]
// - [SecurityMonitoringApi.DeleteCustomFramework]
// - [SecurityMonitoringApi.DeleteHistoricalJob]
// - [SecurityMonitoringApi.DeleteSecurityFilter]
// - [SecurityMonitoringApi.DeleteSecurityMonitoringRule]
// - [SecurityMonitoringApi.DeleteSecurityMonitoringSuppression]
// - [SecurityMonitoringApi.DeleteSignalNotificationRule]
// - [SecurityMonitoringApi.DeleteThreatHuntingJob]
// - [SecurityMonitoringApi.DeleteVulnerabilityNotificationRule]
// - [SecurityMonitoringApi.EditSecurityMonitoringSignalAssignee]
// - [SecurityMonitoringApi.EditSecurityMonitoringSignalIncidents]
// - [SecurityMonitoringApi.EditSecurityMonitoringSignalState]
// - [SecurityMonitoringApi.GetCustomFramework]
// - [SecurityMonitoringApi.GetFinding]
// - [SecurityMonitoringApi.GetHistoricalJob]
// - [SecurityMonitoringApi.GetResourceEvaluationFilters]
// - [SecurityMonitoringApi.GetRuleVersionHistory]
// - [SecurityMonitoringApi.GetSBOM]
Expand All @@ -515,23 +514,24 @@
// - [SecurityMonitoringApi.GetSignalNotificationRules]
// - [SecurityMonitoringApi.GetSuppressionsAffectingFutureRule]
// - [SecurityMonitoringApi.GetSuppressionsAffectingRule]
// - [SecurityMonitoringApi.GetThreatHuntingJob]
// - [SecurityMonitoringApi.GetVulnerabilityNotificationRule]
// - [SecurityMonitoringApi.GetVulnerabilityNotificationRules]
// - [SecurityMonitoringApi.ListAssetsSBOMs]
// - [SecurityMonitoringApi.ListFindings]
// - [SecurityMonitoringApi.ListHistoricalJobs]
// - [SecurityMonitoringApi.ListScannedAssetsMetadata]
// - [SecurityMonitoringApi.ListSecurityFilters]
// - [SecurityMonitoringApi.ListSecurityMonitoringHistsignals]
// - [SecurityMonitoringApi.ListSecurityMonitoringRules]
// - [SecurityMonitoringApi.ListSecurityMonitoringSignals]
// - [SecurityMonitoringApi.ListSecurityMonitoringSuppressions]
// - [SecurityMonitoringApi.ListThreatHuntingJobs]
// - [SecurityMonitoringApi.ListVulnerabilities]
// - [SecurityMonitoringApi.ListVulnerableAssets]
// - [SecurityMonitoringApi.MuteFindings]
// - [SecurityMonitoringApi.PatchSignalNotificationRule]
// - [SecurityMonitoringApi.PatchVulnerabilityNotificationRule]
// - [SecurityMonitoringApi.RunHistoricalJob]
// - [SecurityMonitoringApi.RunThreatHuntingJob]
// - [SecurityMonitoringApi.SearchSecurityMonitoringHistsignals]
// - [SecurityMonitoringApi.SearchSecurityMonitoringSignals]
// - [SecurityMonitoringApi.TestExistingSecurityMonitoringRule]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
)

// ConvertJobResultsToSignalsAttributes Attributes for converting historical job results to signals.
// ConvertJobResultsToSignalsAttributes Attributes for converting threat hunting job results to signals.
type ConvertJobResultsToSignalsAttributes struct {
// Request ID.
Id *string `json:"id,omitempty"`
Expand Down
4 changes: 2 additions & 2 deletions api/datadogV2/model_convert_job_results_to_signals_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
)

// ConvertJobResultsToSignalsData Data for converting historical job results to signals.
// ConvertJobResultsToSignalsData Data for converting threat hunting job results to signals.
type ConvertJobResultsToSignalsData struct {
// Attributes for converting historical job results to signals.
// Attributes for converting threat hunting job results to signals.
Attributes *ConvertJobResultsToSignalsAttributes `json:"attributes,omitempty"`
// Type of payload.
Type *ConvertJobResultsToSignalsDataType `json:"type,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
)

// ConvertJobResultsToSignalsRequest Request for converting historical job results to signals.
// ConvertJobResultsToSignalsRequest Request for converting threat hunting job results to signals.
type ConvertJobResultsToSignalsRequest struct {
// Data for converting historical job results to signals.
// Data for converting threat hunting job results to signals.
Data *ConvertJobResultsToSignalsData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
Expand Down
64 changes: 0 additions & 64 deletions api/datadogV2/model_historical_job_data_type.go

This file was deleted.

2 changes: 1 addition & 1 deletion api/datadogV2/model_job_create_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
)

// JobCreateResponse Run a historical job response.
// JobCreateResponse Run a threat hunting job response.
type JobCreateResponse struct {
// The definition of `JobCreateResponseData` object.
Data *JobCreateResponseData `json:"data,omitempty"`
Expand Down
16 changes: 8 additions & 8 deletions api/datadogV2/model_job_create_response_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type JobCreateResponseData struct {
// ID of the created job.
Id *string `json:"id,omitempty"`
// Type of payload.
Type *HistoricalJobDataType `json:"type,omitempty"`
Type *ThreatHuntingJobDataType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{} `json:"-"`
Expand Down Expand Up @@ -65,17 +65,17 @@ func (o *JobCreateResponseData) SetId(v string) {
}

// GetType returns the Type field value if set, zero value otherwise.
func (o *JobCreateResponseData) GetType() HistoricalJobDataType {
func (o *JobCreateResponseData) GetType() ThreatHuntingJobDataType {
if o == nil || o.Type == nil {
var ret HistoricalJobDataType
var ret ThreatHuntingJobDataType
return ret
}
return *o.Type
}

// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *JobCreateResponseData) GetTypeOk() (*HistoricalJobDataType, bool) {
func (o *JobCreateResponseData) GetTypeOk() (*ThreatHuntingJobDataType, bool) {
if o == nil || o.Type == nil {
return nil, false
}
Expand All @@ -87,8 +87,8 @@ func (o *JobCreateResponseData) HasType() bool {
return o != nil && o.Type != nil
}

// SetType gets a reference to the given HistoricalJobDataType and assigns it to the Type field.
func (o *JobCreateResponseData) SetType(v HistoricalJobDataType) {
// SetType gets a reference to the given ThreatHuntingJobDataType and assigns it to the Type field.
func (o *JobCreateResponseData) SetType(v ThreatHuntingJobDataType) {
o.Type = &v
}

Expand All @@ -114,8 +114,8 @@ func (o JobCreateResponseData) MarshalJSON() ([]byte, error) {
// UnmarshalJSON deserializes the given payload.
func (o *JobCreateResponseData) UnmarshalJSON(bytes []byte) (err error) {
all := struct {
Id *string `json:"id,omitempty"`
Type *HistoricalJobDataType `json:"type,omitempty"`
Id *string `json:"id,omitempty"`
Type *ThreatHuntingJobDataType `json:"type,omitempty"`
}{}
if err = datadog.Unmarshal(bytes, &all); err != nil {
return datadog.Unmarshal(bytes, &o.UnparsedObject)
Expand Down
30 changes: 15 additions & 15 deletions api/datadogV2/model_job_definition.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
)

// JobDefinition Definition of a historical job.
// JobDefinition Definition of a threat hunting job.
type JobDefinition struct {
// Calculated fields.
CalculatedFields []CalculatedField `json:"calculatedFields,omitempty"`
Expand All @@ -27,9 +27,9 @@ type JobDefinition struct {
// Job name.
Name string `json:"name"`
// Job options.
Options *HistoricalJobOptions `json:"options,omitempty"`
Options *ThreatHuntingJobOptions `json:"options,omitempty"`
// Queries for selecting logs analyzed by the job.
Queries []HistoricalJobQuery `json:"queries"`
Queries []ThreatHuntingJobQuery `json:"queries"`
// Reference tables used in the queries.
ReferenceTables []SecurityMonitoringReferenceTable `json:"referenceTables,omitempty"`
// Tags for generated signals.
Expand All @@ -49,7 +49,7 @@ type JobDefinition struct {
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed.
func NewJobDefinition(cases []SecurityMonitoringRuleCaseCreate, from int64, index string, message string, name string, queries []HistoricalJobQuery, to int64) *JobDefinition {
func NewJobDefinition(cases []SecurityMonitoringRuleCaseCreate, from int64, index string, message string, name string, queries []ThreatHuntingJobQuery, to int64) *JobDefinition {
this := JobDefinition{}
this.Cases = cases
this.From = from
Expand Down Expand Up @@ -241,17 +241,17 @@ func (o *JobDefinition) SetName(v string) {
}

// GetOptions returns the Options field value if set, zero value otherwise.
func (o *JobDefinition) GetOptions() HistoricalJobOptions {
func (o *JobDefinition) GetOptions() ThreatHuntingJobOptions {
if o == nil || o.Options == nil {
var ret HistoricalJobOptions
var ret ThreatHuntingJobOptions
return ret
}
return *o.Options
}

// GetOptionsOk returns a tuple with the Options field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *JobDefinition) GetOptionsOk() (*HistoricalJobOptions, bool) {
func (o *JobDefinition) GetOptionsOk() (*ThreatHuntingJobOptions, bool) {
if o == nil || o.Options == nil {
return nil, false
}
Expand All @@ -263,31 +263,31 @@ func (o *JobDefinition) HasOptions() bool {
return o != nil && o.Options != nil
}

// SetOptions gets a reference to the given HistoricalJobOptions and assigns it to the Options field.
func (o *JobDefinition) SetOptions(v HistoricalJobOptions) {
// SetOptions gets a reference to the given ThreatHuntingJobOptions and assigns it to the Options field.
func (o *JobDefinition) SetOptions(v ThreatHuntingJobOptions) {
o.Options = &v
}

// GetQueries returns the Queries field value.
func (o *JobDefinition) GetQueries() []HistoricalJobQuery {
func (o *JobDefinition) GetQueries() []ThreatHuntingJobQuery {
if o == nil {
var ret []HistoricalJobQuery
var ret []ThreatHuntingJobQuery
return ret
}
return o.Queries
}

// GetQueriesOk returns a tuple with the Queries field value
// and a boolean to check if the value has been set.
func (o *JobDefinition) GetQueriesOk() (*[]HistoricalJobQuery, bool) {
func (o *JobDefinition) GetQueriesOk() (*[]ThreatHuntingJobQuery, bool) {
if o == nil {
return nil, false
}
return &o.Queries, true
}

// SetQueries sets field value.
func (o *JobDefinition) SetQueries(v []HistoricalJobQuery) {
func (o *JobDefinition) SetQueries(v []ThreatHuntingJobQuery) {
o.Queries = v
}

Expand Down Expand Up @@ -477,8 +477,8 @@ func (o *JobDefinition) UnmarshalJSON(bytes []byte) (err error) {
Index *string `json:"index"`
Message *string `json:"message"`
Name *string `json:"name"`
Options *HistoricalJobOptions `json:"options,omitempty"`
Queries *[]HistoricalJobQuery `json:"queries"`
Options *ThreatHuntingJobOptions `json:"options,omitempty"`
Queries *[]ThreatHuntingJobQuery `json:"queries"`
ReferenceTables []SecurityMonitoringReferenceTable `json:"referenceTables,omitempty"`
Tags []string `json:"tags,omitempty"`
ThirdPartyCases []SecurityMonitoringThirdPartyRuleCaseCreate `json:"thirdPartyCases,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion api/datadogV2/model_job_definition_from_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
)

// JobDefinitionFromRule Definition of a historical job based on a security monitoring rule.
// JobDefinitionFromRule Definition of a threat hunting job based on a security monitoring rule.
type JobDefinitionFromRule struct {
// Starting time of data analyzed by the job.
From int64 `json:"from"`
Expand Down
Loading