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
18 changes: 18 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35984,6 +35984,15 @@ components:
IssuesSearchRequestDataAttributes:
description: Object describing a search issue request.
properties:
assignee_ids:
description: Filter issues by assignee IDs. Multiple values are combined with OR logic.
example:
- "00000000-0000-0000-0000-000000000001"
items:
format: uuid
type: string
maxItems: 50
type: array
from:
description: Start date (inclusive) of the query in milliseconds since the Unix epoch.
example: 1671612804000
Expand All @@ -35997,6 +36006,15 @@ components:
description: Search query following the event search syntax.
example: "service:orders-* AND @language:go"
type: string
team_ids:
description: Filter issues by team IDs. Multiple values are combined with OR logic.
example:
- "00000000-0000-0000-0000-000000000002"
items:
format: uuid
type: string
maxItems: 50
type: array
to:
description: End date (exclusive) of the query in milliseconds since the Unix epoch.
example: 1671620004000
Expand Down
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# CHANGELOG

## 2.58.0/2026-04-16

### Added
* Add domain prefix filter query parameter to list status pages API [#3960](https://github.com/DataDog/datadog-api-client-go/pull/3960)
* Add OpenAPI spec for Bits AI SRE investigations [#3955](https://github.com/DataDog/datadog-api-client-go/pull/3955)
* Add Product Analytics widget definitions [#3949](https://github.com/DataDog/datadog-api-client-go/pull/3949)
* Add OpenAPI spec for Dashboard Secure Embed endpoints [#3948](https://github.com/DataDog/datadog-api-client-go/pull/3948)
* Add fleet tracers, clusters, and instrumented pods endpoints [#3947](https://github.com/DataDog/datadog-api-client-go/pull/3947)
* Add public POST/PATCH endpoints for Flaky Tests Management policies [#3946](https://github.com/DataDog/datadog-api-client-go/pull/3946)
* Add CCM spend usage type breakdown fields [#3945](https://github.com/DataDog/datadog-api-client-go/pull/3945)
* Adding all Observability Pipeline new hec_token related features into the api [#3943](https://github.com/DataDog/datadog-api-client-go/pull/3943)
* Adding compression optional field to Amazon S3 source [#3939](https://github.com/DataDog/datadog-api-client-go/pull/3939)
* Add Annotations endpoints [#3936](https://github.com/DataDog/datadog-api-client-go/pull/3936)
* Add Org Groups API specification [#3935](https://github.com/DataDog/datadog-api-client-go/pull/3935)
* Add Obs Pipelines Elasticsearch metrics destination and new fields [#3922](https://github.com/DataDog/datadog-api-client-go/pull/3922)
* Add OpenAPI spec for Bits AI SRE investigations [#3921](https://github.com/DataDog/datadog-api-client-go/pull/3921)
* Add PAT/SAT management API endpoints [#3918](https://github.com/DataDog/datadog-api-client-go/pull/3918)
* Add OpenAPI documentation for signal investigation queries and suggested actions endpoints [#3916](https://github.com/DataDog/datadog-api-client-go/pull/3916)
* add api spec for feature flags allocations and exposure schedules endpoints [#3905](https://github.com/DataDog/datadog-api-client-go/pull/3905)
* Add Publish and Unpublish API documentation for Status Pages [#3902](https://github.com/DataDog/datadog-api-client-go/pull/3902)
* feat: add drag and drop as new synthetics browser step type [#3899](https://github.com/DataDog/datadog-api-client-go/pull/3899)
* Allow monitor notification rule on restriction policy [#3892](https://github.com/DataDog/datadog-api-client-go/pull/3892)
* Add support for configuring Splunk sourcetype in Custom Destinations [#3883](https://github.com/DataDog/datadog-api-client-go/pull/3883)
* Add OpenAPI documentation for scorecards endpoints [#3679](https://github.com/DataDog/datadog-api-client-go/pull/3679)

### Fixed
* fix(generator): empty additionalProperties treated as falsy, breaking nullable map example generation (AAWF-1198) [#3952](https://github.com/DataDog/datadog-api-client-go/pull/3952)
* Add security_signals to SecurityMonitoringStandardDataSource [#3937](https://github.com/DataDog/datadog-api-client-go/pull/3937)

### Changed
* Update SearchFlakyTests endpoint documentation [#3929](https://github.com/DataDog/datadog-api-client-go/pull/3929)

## 2.57.0/2026-04-01

### Added
Expand Down
86 changes: 79 additions & 7 deletions api/datadogV2/model_issues_search_request_data_attributes.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ package datadogV2
import (
"fmt"

"github.com/google/uuid"

"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
)

// IssuesSearchRequestDataAttributes Object describing a search issue request.
type IssuesSearchRequestDataAttributes struct {
// Filter issues by assignee IDs. Multiple values are combined with OR logic.
AssigneeIds []uuid.UUID `json:"assignee_ids,omitempty"`
// Start date (inclusive) of the query in milliseconds since the Unix epoch.
From int64 `json:"from"`
// The attribute to sort the search results by.
Expand All @@ -20,6 +24,8 @@ type IssuesSearchRequestDataAttributes struct {
Persona *IssuesSearchRequestDataAttributesPersona `json:"persona,omitempty"`
// Search query following the event search syntax.
Query string `json:"query"`
// Filter issues by team IDs. Multiple values are combined with OR logic.
TeamIds []uuid.UUID `json:"team_ids,omitempty"`
// End date (exclusive) of the query in milliseconds since the Unix epoch.
To int64 `json:"to"`
// Track of the events to query. Either track(s) or persona(s) must be specified.
Expand Down Expand Up @@ -49,6 +55,34 @@ func NewIssuesSearchRequestDataAttributesWithDefaults() *IssuesSearchRequestData
return &this
}

// GetAssigneeIds returns the AssigneeIds field value if set, zero value otherwise.
func (o *IssuesSearchRequestDataAttributes) GetAssigneeIds() []uuid.UUID {
if o == nil || o.AssigneeIds == nil {
var ret []uuid.UUID
return ret
}
return o.AssigneeIds
}

// GetAssigneeIdsOk returns a tuple with the AssigneeIds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IssuesSearchRequestDataAttributes) GetAssigneeIdsOk() (*[]uuid.UUID, bool) {
if o == nil || o.AssigneeIds == nil {
return nil, false
}
return &o.AssigneeIds, true
}

// HasAssigneeIds returns a boolean if a field has been set.
func (o *IssuesSearchRequestDataAttributes) HasAssigneeIds() bool {
return o != nil && o.AssigneeIds != nil
}

// SetAssigneeIds gets a reference to the given []uuid.UUID and assigns it to the AssigneeIds field.
func (o *IssuesSearchRequestDataAttributes) SetAssigneeIds(v []uuid.UUID) {
o.AssigneeIds = v
}

// GetFrom returns the From field value.
func (o *IssuesSearchRequestDataAttributes) GetFrom() int64 {
if o == nil {
Expand Down Expand Up @@ -151,6 +185,34 @@ func (o *IssuesSearchRequestDataAttributes) SetQuery(v string) {
o.Query = v
}

// GetTeamIds returns the TeamIds field value if set, zero value otherwise.
func (o *IssuesSearchRequestDataAttributes) GetTeamIds() []uuid.UUID {
if o == nil || o.TeamIds == nil {
var ret []uuid.UUID
return ret
}
return o.TeamIds
}

// GetTeamIdsOk returns a tuple with the TeamIds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IssuesSearchRequestDataAttributes) GetTeamIdsOk() (*[]uuid.UUID, bool) {
if o == nil || o.TeamIds == nil {
return nil, false
}
return &o.TeamIds, true
}

// HasTeamIds returns a boolean if a field has been set.
func (o *IssuesSearchRequestDataAttributes) HasTeamIds() bool {
return o != nil && o.TeamIds != nil
}

// SetTeamIds gets a reference to the given []uuid.UUID and assigns it to the TeamIds field.
func (o *IssuesSearchRequestDataAttributes) SetTeamIds(v []uuid.UUID) {
o.TeamIds = v
}

// GetTo returns the To field value.
func (o *IssuesSearchRequestDataAttributes) GetTo() int64 {
if o == nil {
Expand Down Expand Up @@ -208,6 +270,9 @@ func (o IssuesSearchRequestDataAttributes) MarshalJSON() ([]byte, error) {
if o.UnparsedObject != nil {
return datadog.Marshal(o.UnparsedObject)
}
if o.AssigneeIds != nil {
toSerialize["assignee_ids"] = o.AssigneeIds
}
toSerialize["from"] = o.From
if o.OrderBy != nil {
toSerialize["order_by"] = o.OrderBy
Expand All @@ -216,6 +281,9 @@ func (o IssuesSearchRequestDataAttributes) MarshalJSON() ([]byte, error) {
toSerialize["persona"] = o.Persona
}
toSerialize["query"] = o.Query
if o.TeamIds != nil {
toSerialize["team_ids"] = o.TeamIds
}
toSerialize["to"] = o.To
if o.Track != nil {
toSerialize["track"] = o.Track
Expand All @@ -230,12 +298,14 @@ func (o IssuesSearchRequestDataAttributes) MarshalJSON() ([]byte, error) {
// UnmarshalJSON deserializes the given payload.
func (o *IssuesSearchRequestDataAttributes) UnmarshalJSON(bytes []byte) (err error) {
all := struct {
From *int64 `json:"from"`
OrderBy *IssuesSearchRequestDataAttributesOrderBy `json:"order_by,omitempty"`
Persona *IssuesSearchRequestDataAttributesPersona `json:"persona,omitempty"`
Query *string `json:"query"`
To *int64 `json:"to"`
Track *IssuesSearchRequestDataAttributesTrack `json:"track,omitempty"`
AssigneeIds []uuid.UUID `json:"assignee_ids,omitempty"`
From *int64 `json:"from"`
OrderBy *IssuesSearchRequestDataAttributesOrderBy `json:"order_by,omitempty"`
Persona *IssuesSearchRequestDataAttributesPersona `json:"persona,omitempty"`
Query *string `json:"query"`
TeamIds []uuid.UUID `json:"team_ids,omitempty"`
To *int64 `json:"to"`
Track *IssuesSearchRequestDataAttributesTrack `json:"track,omitempty"`
}{}
if err = datadog.Unmarshal(bytes, &all); err != nil {
return datadog.Unmarshal(bytes, &o.UnparsedObject)
Expand All @@ -251,12 +321,13 @@ func (o *IssuesSearchRequestDataAttributes) UnmarshalJSON(bytes []byte) (err err
}
additionalProperties := make(map[string]interface{})
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
datadog.DeleteKeys(additionalProperties, &[]string{"from", "order_by", "persona", "query", "to", "track"})
datadog.DeleteKeys(additionalProperties, &[]string{"assignee_ids", "from", "order_by", "persona", "query", "team_ids", "to", "track"})
} else {
return err
}

hasInvalidField := false
o.AssigneeIds = all.AssigneeIds
o.From = *all.From
if all.OrderBy != nil && !all.OrderBy.IsValid() {
hasInvalidField = true
Expand All @@ -269,6 +340,7 @@ func (o *IssuesSearchRequestDataAttributes) UnmarshalJSON(bytes []byte) (err err
o.Persona = all.Persona
}
o.Query = *all.Query
o.TeamIds = all.TeamIds
o.To = *all.To
if all.Track != nil && !all.Track.IsValid() {
hasInvalidField = true
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package client

// Version used in User-Agent header.
const Version = "2.57.0"
const Version = "2.58.0"
Loading