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
16 changes: 14 additions & 2 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120888,7 +120888,12 @@ components:
format: uuid
type: string
fields:
description: Custom fields of the Jira issue to create. For the list of available fields, see [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-createmeta-projectidorkey-issuetypes-issuetypeid-get).
description: |-
Target-specific fields of the ticket to create.

For `target: jira`, the custom fields of the Jira issue. For the list of available fields, see [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-createmeta-projectidorkey-issuetypes-issuetypeid-get).

For `target: linear`, the optional keys `linear_project_id` (string, the identifier of the Linear project the issue is created in) and `linear_label_ids` (array of strings, the identifiers of the Linear labels applied to the issue).
example:
labels:
- security
Expand Down Expand Up @@ -120925,7 +120930,12 @@ components:
example: "Daily ticket creation limit exceeded"
type: string
fields:
description: Custom fields of the Jira issue to create. For the list of available fields, see [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-createmeta-projectidorkey-issuetypes-issuetypeid-get).
description: |-
Target-specific fields of the ticket to create.

For `target: jira`, the custom fields of the Jira issue. For the list of available fields, see [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-createmeta-projectidorkey-issuetypes-issuetypeid-get).

For `target: linear`, the optional keys `linear_project_id` (string, the identifier of the Linear project the issue is created in) and `linear_label_ids` (array of strings, the identifiers of the Linear labels applied to the issue).
example:
labels:
- security
Expand Down Expand Up @@ -121123,11 +121133,13 @@ components:
enum:
- jira
- case_management
- linear
example: jira
type: string
x-enum-varnames:
- JIRA
- CASE_MANAGEMENT
- LINEAR
TimeAggregation:
description: |-
Time aggregation period (in seconds) is used to aggregate the results of the notification rule evaluation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ def __init__(
:param assignee_id: The UUID of the default assignee for created tickets.
:type assignee_id: UUID, optional

:param fields: Custom fields of the Jira issue to create. For the list of available fields, see `Jira documentation <https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-createmeta-projectidorkey-issuetypes-issuetypeid-get>`_.
:param fields: Target-specific fields of the ticket to create.

For ``target: jira`` , the custom fields of the Jira issue. For the list of available fields, see `Jira documentation <https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-createmeta-projectidorkey-issuetypes-issuetypeid-get>`_.

For ``target: linear`` , the optional keys ``linear_project_id`` (string, the identifier of the Linear project the issue is created in) and ``linear_label_ids`` (array of strings, the identifiers of the Linear labels applied to the issue).
:type fields: dict, optional

:param max_tickets_per_day: The maximum number of tickets the rule may create per day. If exceeded, one final ticket will be created, explaining the limit was hit and link back to the responsible rule.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ def __init__(
:param auto_disabled_reason: The reason the rule was automatically disabled by the system due to a ticketing integration error.
:type auto_disabled_reason: str, optional

:param fields: Custom fields of the Jira issue to create. For the list of available fields, see `Jira documentation <https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-createmeta-projectidorkey-issuetypes-issuetypeid-get>`_.
:param fields: Target-specific fields of the ticket to create.

For ``target: jira`` , the custom fields of the Jira issue. For the list of available fields, see `Jira documentation <https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-createmeta-projectidorkey-issuetypes-issuetypeid-get>`_.

For ``target: linear`` , the optional keys ``linear_project_id`` (string, the identifier of the Linear project the issue is created in) and ``linear_label_ids`` (array of strings, the identifiers of the Linear labels applied to the issue).
:type fields: dict, optional

:param max_tickets_per_day: The maximum number of tickets the rule may create per day. If exceeded, one final ticket will be created, explaining the limit was hit and link back to the responsible rule.
Expand Down
5 changes: 4 additions & 1 deletion src/datadog_api_client/v2/model/ticket_creation_target.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,18 @@ class TicketCreationTarget(ModelSimple):
"""
The ticketing system to create tickets in.

:param value: Must be one of ["jira", "case_management"].
:param value: Must be one of ["jira", "case_management", "linear"].
:type value: str
"""

allowed_values = {
"jira",
"case_management",
"linear",
}
JIRA: ClassVar["TicketCreationTarget"]
CASE_MANAGEMENT: ClassVar["TicketCreationTarget"]
LINEAR: ClassVar["TicketCreationTarget"]

@cached_property
def openapi_types(_):
Expand All @@ -36,3 +38,4 @@ def openapi_types(_):

TicketCreationTarget.JIRA = TicketCreationTarget("jira")
TicketCreationTarget.CASE_MANAGEMENT = TicketCreationTarget("case_management")
TicketCreationTarget.LINEAR = TicketCreationTarget("linear")
Loading