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 src/datadog_api_client/v2/api/error_tracking_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ def search_issues(
) -> IssuesSearchResponse:
"""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: Search issues request payload.
:type body: IssuesSearchRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,11 @@ def __init__(
:param _from: Start date (inclusive) of the query in milliseconds since the Unix epoch.
:type _from: int

:param order_by: The attribute to sort the search results by.
:param order_by: The attribute to sort the search results by, in descending order. Defaults to ``TOTAL_COUNT``.
:type order_by: IssuesSearchRequestDataAttributesOrderBy, optional

:param persona: Persona for the search. Either track(s) or persona(s) must be specified.
:param persona: Persona for the search. Either ``track`` or ``persona`` must be specified.
Ignored if ``track`` is specified.
:type persona: IssuesSearchRequestDataAttributesPersona, optional

:param query: Search query following the event search syntax.
Expand All @@ -117,7 +118,8 @@ def __init__(
:param to: End date (exclusive) of the query in milliseconds since the Unix epoch.
:type to: int

:param track: Track of the events to query. Either track(s) or persona(s) must be specified.
:param track: Track of the events to query. Either ``track`` or ``persona`` must be specified.
If both are specified, ``persona`` is ignored.
:type track: IssuesSearchRequestDataAttributesTrack, optional
"""
if assignee_ids is not unset:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

class IssuesSearchRequestDataAttributesOrderBy(ModelSimple):
"""
The attribute to sort the search results by.
The attribute to sort the search results by, in descending order. Defaults to `TOTAL_COUNT`.

:param value: Must be one of ["TOTAL_COUNT", "FIRST_SEEN", "IMPACTED_SESSIONS", "PRIORITY"].
:param value: Must be one of ["TOTAL_COUNT", "FIRST_SEEN", "IMPACTED_SESSIONS", "PRIORITY", "IMPACTED_ACCOUNTS"].
:type value: str
"""

Expand All @@ -25,11 +25,13 @@ class IssuesSearchRequestDataAttributesOrderBy(ModelSimple):
"FIRST_SEEN",
"IMPACTED_SESSIONS",
"PRIORITY",
"IMPACTED_ACCOUNTS",
}
TOTAL_COUNT: ClassVar["IssuesSearchRequestDataAttributesOrderBy"]
FIRST_SEEN: ClassVar["IssuesSearchRequestDataAttributesOrderBy"]
IMPACTED_SESSIONS: ClassVar["IssuesSearchRequestDataAttributesOrderBy"]
PRIORITY: ClassVar["IssuesSearchRequestDataAttributesOrderBy"]
IMPACTED_ACCOUNTS: ClassVar["IssuesSearchRequestDataAttributesOrderBy"]

@cached_property
def openapi_types(_):
Expand All @@ -44,3 +46,6 @@ def openapi_types(_):
"IMPACTED_SESSIONS"
)
IssuesSearchRequestDataAttributesOrderBy.PRIORITY = IssuesSearchRequestDataAttributesOrderBy("PRIORITY")
IssuesSearchRequestDataAttributesOrderBy.IMPACTED_ACCOUNTS = IssuesSearchRequestDataAttributesOrderBy(
"IMPACTED_ACCOUNTS"
)
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@

class IssuesSearchRequestDataAttributesPersona(ModelSimple):
"""
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.

:param value: Must be one of ["ALL", "BROWSER", "MOBILE", "BACKEND"].
:param value: Must be one of ["ALL", "BROWSER", "MOBILE", "BACKEND", "AGENT"].
:type value: str
"""

Expand All @@ -25,11 +26,13 @@ class IssuesSearchRequestDataAttributesPersona(ModelSimple):
"BROWSER",
"MOBILE",
"BACKEND",
"AGENT",
}
ALL: ClassVar["IssuesSearchRequestDataAttributesPersona"]
BROWSER: ClassVar["IssuesSearchRequestDataAttributesPersona"]
MOBILE: ClassVar["IssuesSearchRequestDataAttributesPersona"]
BACKEND: ClassVar["IssuesSearchRequestDataAttributesPersona"]
AGENT: ClassVar["IssuesSearchRequestDataAttributesPersona"]

@cached_property
def openapi_types(_):
Expand All @@ -42,3 +45,4 @@ def openapi_types(_):
IssuesSearchRequestDataAttributesPersona.BROWSER = IssuesSearchRequestDataAttributesPersona("BROWSER")
IssuesSearchRequestDataAttributesPersona.MOBILE = IssuesSearchRequestDataAttributesPersona("MOBILE")
IssuesSearchRequestDataAttributesPersona.BACKEND = IssuesSearchRequestDataAttributesPersona("BACKEND")
IssuesSearchRequestDataAttributesPersona.AGENT = IssuesSearchRequestDataAttributesPersona("AGENT")
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,23 @@

class IssuesSearchRequestDataAttributesTrack(ModelSimple):
"""
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.

:param value: Must be one of ["trace", "logs", "rum"].
:param value: Must be one of ["trace", "logs", "rum", "llmobs"].
:type value: str
"""

allowed_values = {
"trace",
"logs",
"rum",
"llmobs",
}
TRACE: ClassVar["IssuesSearchRequestDataAttributesTrack"]
LOGS: ClassVar["IssuesSearchRequestDataAttributesTrack"]
RUM: ClassVar["IssuesSearchRequestDataAttributesTrack"]
LLMOBS: ClassVar["IssuesSearchRequestDataAttributesTrack"]

@cached_property
def openapi_types(_):
Expand All @@ -39,3 +42,4 @@ def openapi_types(_):
IssuesSearchRequestDataAttributesTrack.TRACE = IssuesSearchRequestDataAttributesTrack("trace")
IssuesSearchRequestDataAttributesTrack.LOGS = IssuesSearchRequestDataAttributesTrack("logs")
IssuesSearchRequestDataAttributesTrack.RUM = IssuesSearchRequestDataAttributesTrack("rum")
IssuesSearchRequestDataAttributesTrack.LLMOBS = IssuesSearchRequestDataAttributesTrack("llmobs")
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ def __init__(
Object containing the information of a search result.

:param impacted_sessions: 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.
:type impacted_sessions: int, optional

:param impacted_users: 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.
:type impacted_users: int, optional
Expand Down
Loading