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
27 changes: 19 additions & 8 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75708,38 +75708,47 @@ 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:
- TOTAL_COUNT
- 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:
- ALL
- 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"]
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion lib/datadog_api_client/v2/api/error_tracking_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@
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

TOTAL_COUNT = "TOTAL_COUNT".freeze
FIRST_SEEN = "FIRST_SEEN".freeze
IMPACTED_SESSIONS = "IMPACTED_SESSIONS".freeze
PRIORITY = "PRIORITY".freeze
IMPACTED_ACCOUNTS = "IMPACTED_ACCOUNTS".freeze
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@
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

ALL = "ALL".freeze
BROWSER = "BROWSER".freeze
MOBILE = "MOBILE".freeze
BACKEND = "BACKEND".freeze
AGENT = "AGENT".freeze
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading