Skip to content

Commit a96c20f

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit aa27fbf of spec repo (#4148)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 30fae74 commit a96c20f

22 files changed

Lines changed: 468 additions & 108 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 55 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19385,9 +19385,6 @@ components:
1938519385
ConvertJobResultsToSignalsAttributes:
1938619386
description: Attributes for converting historical job results to signals.
1938719387
properties:
19388-
id:
19389-
description: Request ID.
19390-
type: string
1939119388
jobResultIds:
1939219389
description: Job result IDs.
1939319390
example:
@@ -38180,10 +38177,34 @@ components:
3818038177
HistoricalJobQuery:
3818138178
description: Query for selecting logs analyzed by the historical job.
3818238179
properties:
38180+
additionalFilters:
38181+
description: Additional filters appended to the query at evaluation time.
38182+
type: string
3818338183
aggregation:
3818438184
$ref: "#/components/schemas/SecurityMonitoringRuleQueryAggregation"
38185+
correlatedByFields:
38186+
description: Fields used to correlate results across queries in sequence detection rules.
38187+
items:
38188+
description: Field.
38189+
type: string
38190+
type: array
38191+
correlatedQueryIndex:
38192+
description: Zero-based index of the query to correlate with in sequence detection rules. Up to 10 queries are supported, so valid values are 0 to 9.
38193+
format: int64
38194+
maximum: 9
38195+
minimum: 0
38196+
type: integer
38197+
customQueryExtension:
38198+
description: Custom query extension used to refine the base query.
38199+
type: string
3818538200
dataSource:
3818638201
$ref: "#/components/schemas/SecurityMonitoringStandardDataSource"
38202+
datasetIds:
38203+
description: IDs of reference datasets used by this query.
38204+
items:
38205+
description: Dataset ID.
38206+
type: string
38207+
type: array
3818738208
distinctFields:
3818838209
description: Field for which the cardinality is measured. Sent as an array.
3818938210
items:
@@ -38201,6 +38222,15 @@ components:
3820138222
description: When false, events without a group-by value are ignored by the query. When true, events with missing group-by fields are processed with `N/A`, replacing the missing values.
3820238223
example: false
3820338224
type: boolean
38225+
index:
38226+
description: Index used to load the data for this query.
38227+
type: string
38228+
indexes:
38229+
description: Indexes used to load the data for this query. Mutually exclusive with `index`.
38230+
items:
38231+
description: Index name.
38232+
type: string
38233+
type: array
3820438234
metrics:
3820538235
description: Group of target fields to aggregate over when using the sum, max, geo data, or new value aggregations. The sum, max, and geo data aggregations only accept one value in this list, whereas the new value aggregation accepts up to five values.
3820638236
items:
@@ -38214,6 +38244,9 @@ components:
3821438244
description: Query to run on logs.
3821538245
example: a > 3
3821638246
type: string
38247+
queryLanguage:
38248+
description: Language used to parse the query string.
38249+
type: string
3821738250
type: object
3821838251
HistoricalJobResponse:
3821938252
description: Historical job response.
@@ -38247,6 +38280,10 @@ components:
3824738280
modifiedAt:
3824838281
description: Last modification time of the job.
3824938282
type: string
38283+
progressRate:
38284+
description: Job execution progress as a value between 0 and 1. Available for ongoing jobs.
38285+
format: double
38286+
type: number
3825038287
signalOutput:
3825138288
description: Whether the job outputs signals.
3825238289
type: boolean
@@ -43777,9 +43814,10 @@ components:
4377743814
$ref: "#/components/schemas/CalculatedField"
4377843815
type: array
4377943816
cases:
43780-
description: Cases used for generating job results.
43817+
description: Cases used for generating job results. Up to 10 cases are allowed.
4378143818
items:
4378243819
$ref: "#/components/schemas/SecurityMonitoringRuleCaseCreate"
43820+
maxItems: 10
4378343821
type: array
4378443822
from:
4378543823
description: Starting time of data analyzed by the job.
@@ -43809,9 +43847,10 @@ components:
4380943847
options:
4381043848
$ref: "#/components/schemas/HistoricalJobOptions"
4381143849
queries:
43812-
description: Queries for selecting logs analyzed by the job.
43850+
description: Queries for selecting logs analyzed by the job. Up to 10 queries are allowed.
4381343851
items:
4381443852
$ref: "#/components/schemas/HistoricalJobQuery"
43853+
maxItems: 10
4381543854
type: array
4381643855
referenceTables:
4381743856
description: Reference tables used in the queries.
@@ -43825,10 +43864,11 @@ components:
4382543864
type: string
4382643865
type: array
4382743866
thirdPartyCases:
43828-
description: Cases for generating results from third-party detection method. Only available for third-party detection method.
43867+
description: Cases for generating results from third-party detection method. Only available for third-party detection method. Up to 10 cases are allowed.
4382943868
example: []
4383043869
items:
4383143870
$ref: "#/components/schemas/SecurityMonitoringThirdPartyRuleCaseCreate"
43871+
maxItems: 10
4383243872
type: array
4383343873
to:
4383443874
description: Ending time of data analyzed by the job.
@@ -43850,6 +43890,12 @@ components:
4385043890
JobDefinitionFromRule:
4385143891
description: Definition of a historical job based on a security monitoring rule.
4385243892
properties:
43893+
caseIndex:
43894+
description: Zero-based index of the rule case to use as the job's signal condition. When omitted, all cases are evaluated. Up to 10 cases are supported, so valid values are 0 to 9.
43895+
format: int32
43896+
maximum: 9
43897+
minimum: 0
43898+
type: integer
4385343899
from:
4385443900
description: Starting time of data analyzed by the job.
4385543901
example: 1729843470000
@@ -71345,11 +71391,11 @@ components:
7134571391
properties:
7134671392
fromRule:
7134771393
$ref: "#/components/schemas/JobDefinitionFromRule"
71348-
id:
71349-
description: Request ID.
71350-
type: string
7135171394
jobDefinition:
7135271395
$ref: "#/components/schemas/JobDefinition"
71396+
signalOutput:
71397+
description: Whether the job outputs signals when results are converted.
71398+
type: boolean
7135371399
type: object
7135471400
RunHistoricalJobRequestData:
7135571401
description: Data for running a historical job request.

api/datadogV2/model_convert_job_results_to_signals_attributes.go

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ import (
1212

1313
// ConvertJobResultsToSignalsAttributes Attributes for converting historical job results to signals.
1414
type ConvertJobResultsToSignalsAttributes struct {
15-
// Request ID.
16-
Id *string `json:"id,omitempty"`
1715
// Job result IDs.
1816
JobResultIds []string `json:"jobResultIds"`
1917
// Notifications sent.
@@ -48,34 +46,6 @@ func NewConvertJobResultsToSignalsAttributesWithDefaults() *ConvertJobResultsToS
4846
return &this
4947
}
5048

51-
// GetId returns the Id field value if set, zero value otherwise.
52-
func (o *ConvertJobResultsToSignalsAttributes) GetId() string {
53-
if o == nil || o.Id == nil {
54-
var ret string
55-
return ret
56-
}
57-
return *o.Id
58-
}
59-
60-
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
61-
// and a boolean to check if the value has been set.
62-
func (o *ConvertJobResultsToSignalsAttributes) GetIdOk() (*string, bool) {
63-
if o == nil || o.Id == nil {
64-
return nil, false
65-
}
66-
return o.Id, true
67-
}
68-
69-
// HasId returns a boolean if a field has been set.
70-
func (o *ConvertJobResultsToSignalsAttributes) HasId() bool {
71-
return o != nil && o.Id != nil
72-
}
73-
74-
// SetId gets a reference to the given string and assigns it to the Id field.
75-
func (o *ConvertJobResultsToSignalsAttributes) SetId(v string) {
76-
o.Id = &v
77-
}
78-
7949
// GetJobResultIds returns the JobResultIds field value.
8050
func (o *ConvertJobResultsToSignalsAttributes) GetJobResultIds() []string {
8151
if o == nil {
@@ -174,9 +144,6 @@ func (o ConvertJobResultsToSignalsAttributes) MarshalJSON() ([]byte, error) {
174144
if o.UnparsedObject != nil {
175145
return datadog.Marshal(o.UnparsedObject)
176146
}
177-
if o.Id != nil {
178-
toSerialize["id"] = o.Id
179-
}
180147
toSerialize["jobResultIds"] = o.JobResultIds
181148
toSerialize["notifications"] = o.Notifications
182149
toSerialize["signalMessage"] = o.SignalMessage
@@ -191,7 +158,6 @@ func (o ConvertJobResultsToSignalsAttributes) MarshalJSON() ([]byte, error) {
191158
// UnmarshalJSON deserializes the given payload.
192159
func (o *ConvertJobResultsToSignalsAttributes) UnmarshalJSON(bytes []byte) (err error) {
193160
all := struct {
194-
Id *string `json:"id,omitempty"`
195161
JobResultIds *[]string `json:"jobResultIds"`
196162
Notifications *[]string `json:"notifications"`
197163
SignalMessage *string `json:"signalMessage"`
@@ -214,13 +180,12 @@ func (o *ConvertJobResultsToSignalsAttributes) UnmarshalJSON(bytes []byte) (err
214180
}
215181
additionalProperties := make(map[string]interface{})
216182
if err = datadog.UnmarshalUseNumber(bytes, &additionalProperties); err == nil {
217-
datadog.DeleteKeys(additionalProperties, &[]string{"id", "jobResultIds", "notifications", "signalMessage", "signalSeverity"})
183+
datadog.DeleteKeys(additionalProperties, &[]string{"jobResultIds", "notifications", "signalMessage", "signalSeverity"})
218184
} else {
219185
return err
220186
}
221187

222188
hasInvalidField := false
223-
o.Id = all.Id
224189
o.JobResultIds = *all.JobResultIds
225190
o.Notifications = *all.Notifications
226191
o.SignalMessage = *all.SignalMessage

0 commit comments

Comments
 (0)