diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index dcfb4f81ce17..256e3e6b4f8a 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -75708,12 +75708,14 @@ components: - to type: object IssuesSearchRequestDataAttributesOrderBy: - description: The attribute to sort the search results by. + description: |- + The attribute to sort the search results by, in descending order. Defaults to `TOTAL_COUNT`. enum: - TOTAL_COUNT - FIRST_SEEN - IMPACTED_SESSIONS - PRIORITY + - IMPACTED_ACCOUNTS example: "IMPACTED_SESSIONS" type: string x-enum-varnames: @@ -75721,9 +75723,12 @@ components: - FIRST_SEEN - IMPACTED_SESSIONS - PRIORITY + - IMPACTED_ACCOUNTS IssuesSearchRequestDataAttributesPersona: - description: Persona for the search. Either track(s) or persona(s) must be specified. - enum: ["ALL", "BROWSER", "MOBILE", "BACKEND"] + description: |- + Persona for the search. Either `track` or `persona` must be specified. + Ignored if `track` is specified. + enum: ["ALL", "BROWSER", "MOBILE", "BACKEND", "AGENT"] example: "BACKEND" type: string x-enum-varnames: @@ -75731,15 +75736,19 @@ components: - BROWSER - MOBILE - BACKEND + - AGENT IssuesSearchRequestDataAttributesTrack: - description: Track of the events to query. Either track(s) or persona(s) must be specified. - enum: ["trace", "logs", "rum"] + description: |- + Track of the events to query. Either `track` or `persona` must be specified. + If both are specified, `persona` is ignored. + enum: ["trace", "logs", "rum", "llmobs"] example: "trace" type: string x-enum-varnames: - TRACE - LOGS - RUM + - LLMOBS IssuesSearchRequestDataType: description: Type of the object. enum: ["search_request"] @@ -75785,7 +75794,7 @@ components: impacted_sessions: description: |- Count of sessions impacted by the issue over the queried time window. - Returned for RUM, LLM Observability, browser, and mobile searches, + Returned for RUM and LLM Observability tracks, for browser, mobile, and agent personas, or when `issue.impacted_sessions` is requested in the `include` query parameter. Omitted when zero unless requested in the `include` query parameter. example: 12 @@ -75794,7 +75803,7 @@ components: impacted_users: description: |- Count of users impacted by the issue over the queried time window. - Returned for RUM, browser, and mobile searches, + Returned for the RUM track, for browser and mobile personas, or when `issue.impacted_users` is requested in the `include` query parameter. Omitted when zero unless requested in the `include` query parameter. example: 4 @@ -181593,7 +181602,9 @@ paths: - monitors_downtime /api/v2/error-tracking/issues/search: post: - description: Search issues endpoint allows you to programmatically search for issues within your organization. This endpoint returns a list of issues that match a given search query, following the event search syntax. The search results are limited to a maximum of 100 issues per request. + description: |- + Search issues endpoint allows you to programmatically search for issues within your organization. This endpoint returns a list of issues that match a given search query, following the event search syntax. The search results are limited to a maximum of 100 issues per issue state. + Returns 400 if neither `track` nor `persona` is specified, or if a `team_ids` value does not match an existing team. operationId: SearchIssues parameters: - $ref: "#/components/parameters/SearchIssuesIncludeQueryParameter" diff --git a/lib/datadog_api_client/v2/api/error_tracking_api.rb b/lib/datadog_api_client/v2/api/error_tracking_api.rb index 1869ca03e960..eff90e968ef7 100644 --- a/lib/datadog_api_client/v2/api/error_tracking_api.rb +++ b/lib/datadog_api_client/v2/api/error_tracking_api.rb @@ -168,7 +168,8 @@ def search_issues(body, opts = {}) # Search error tracking issues. # - # Search issues endpoint allows you to programmatically search for issues within your organization. This endpoint returns a list of issues that match a given search query, following the event search syntax. The search results are limited to a maximum of 100 issues per request. + # Search issues endpoint allows you to programmatically search for issues within your organization. This endpoint returns a list of issues that match a given search query, following the event search syntax. The search results are limited to a maximum of 100 issues per issue state. + # Returns 400 if neither `track` nor `persona` is specified, or if a `team_ids` value does not match an existing team. # # @param body [IssuesSearchRequest] Search issues request payload. # @param opts [Hash] the optional parameters diff --git a/lib/datadog_api_client/v2/models/issues_search_request_data_attributes.rb b/lib/datadog_api_client/v2/models/issues_search_request_data_attributes.rb index ba0fc098297e..e89c68c145a9 100644 --- a/lib/datadog_api_client/v2/models/issues_search_request_data_attributes.rb +++ b/lib/datadog_api_client/v2/models/issues_search_request_data_attributes.rb @@ -27,10 +27,11 @@ class IssuesSearchRequestDataAttributes # Start date (inclusive) of the query in milliseconds since the Unix epoch. attr_reader :from - # The attribute to sort the search results by. + # The attribute to sort the search results by, in descending order. Defaults to `TOTAL_COUNT`. attr_accessor :order_by - # Persona for the search. Either track(s) or persona(s) must be specified. + # Persona for the search. Either `track` or `persona` must be specified. + # Ignored if `track` is specified. attr_accessor :persona # Search query following the event search syntax. @@ -45,7 +46,8 @@ class IssuesSearchRequestDataAttributes # End date (exclusive) of the query in milliseconds since the Unix epoch. attr_reader :to - # Track of the events to query. Either track(s) or persona(s) must be specified. + # Track of the events to query. Either `track` or `persona` must be specified. + # If both are specified, `persona` is ignored. attr_accessor :track attr_accessor :additional_properties diff --git a/lib/datadog_api_client/v2/models/issues_search_request_data_attributes_order_by.rb b/lib/datadog_api_client/v2/models/issues_search_request_data_attributes_order_by.rb index ca5cec3b3048..c1cb70725f4a 100644 --- a/lib/datadog_api_client/v2/models/issues_search_request_data_attributes_order_by.rb +++ b/lib/datadog_api_client/v2/models/issues_search_request_data_attributes_order_by.rb @@ -17,7 +17,7 @@ require 'time' module DatadogAPIClient::V2 - # The attribute to sort the search results by. + # The attribute to sort the search results by, in descending order. Defaults to `TOTAL_COUNT`. class IssuesSearchRequestDataAttributesOrderBy include BaseEnumModel @@ -25,5 +25,6 @@ class IssuesSearchRequestDataAttributesOrderBy FIRST_SEEN = "FIRST_SEEN".freeze IMPACTED_SESSIONS = "IMPACTED_SESSIONS".freeze PRIORITY = "PRIORITY".freeze + IMPACTED_ACCOUNTS = "IMPACTED_ACCOUNTS".freeze end end diff --git a/lib/datadog_api_client/v2/models/issues_search_request_data_attributes_persona.rb b/lib/datadog_api_client/v2/models/issues_search_request_data_attributes_persona.rb index 12f092db5946..51efa726a80a 100644 --- a/lib/datadog_api_client/v2/models/issues_search_request_data_attributes_persona.rb +++ b/lib/datadog_api_client/v2/models/issues_search_request_data_attributes_persona.rb @@ -17,7 +17,8 @@ require 'time' module DatadogAPIClient::V2 - # Persona for the search. Either track(s) or persona(s) must be specified. + # Persona for the search. Either `track` or `persona` must be specified. + # Ignored if `track` is specified. class IssuesSearchRequestDataAttributesPersona include BaseEnumModel @@ -25,5 +26,6 @@ class IssuesSearchRequestDataAttributesPersona BROWSER = "BROWSER".freeze MOBILE = "MOBILE".freeze BACKEND = "BACKEND".freeze + AGENT = "AGENT".freeze end end diff --git a/lib/datadog_api_client/v2/models/issues_search_request_data_attributes_track.rb b/lib/datadog_api_client/v2/models/issues_search_request_data_attributes_track.rb index 32642d0324c3..9d6d991a9037 100644 --- a/lib/datadog_api_client/v2/models/issues_search_request_data_attributes_track.rb +++ b/lib/datadog_api_client/v2/models/issues_search_request_data_attributes_track.rb @@ -17,12 +17,14 @@ require 'time' module DatadogAPIClient::V2 - # Track of the events to query. Either track(s) or persona(s) must be specified. + # Track of the events to query. Either `track` or `persona` must be specified. + # If both are specified, `persona` is ignored. class IssuesSearchRequestDataAttributesTrack include BaseEnumModel TRACE = "trace".freeze LOGS = "logs".freeze RUM = "rum".freeze + LLMOBS = "llmobs".freeze end end diff --git a/lib/datadog_api_client/v2/models/issues_search_result_attributes.rb b/lib/datadog_api_client/v2/models/issues_search_result_attributes.rb index 308fcfdb3f45..876b52127431 100644 --- a/lib/datadog_api_client/v2/models/issues_search_result_attributes.rb +++ b/lib/datadog_api_client/v2/models/issues_search_result_attributes.rb @@ -22,13 +22,13 @@ class IssuesSearchResultAttributes include BaseGenericModel # Count of sessions impacted by the issue over the queried time window. - # Returned for RUM, LLM Observability, browser, and mobile searches, + # Returned for RUM and LLM Observability tracks, for browser, mobile, and agent personas, # or when `issue.impacted_sessions` is requested in the `include` query parameter. # Omitted when zero unless requested in the `include` query parameter. attr_accessor :impacted_sessions # Count of users impacted by the issue over the queried time window. - # Returned for RUM, browser, and mobile searches, + # Returned for the RUM track, for browser and mobile personas, # or when `issue.impacted_users` is requested in the `include` query parameter. # Omitted when zero unless requested in the `include` query parameter. attr_accessor :impacted_users