Class TicketCreationRuleActionResponse

java.lang.Object
com.datadog.api.client.v2.model.TicketCreationRuleActionResponse

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class TicketCreationRuleActionResponse extends Object
The action to take when the ticket creation rule matches a finding.
  • Field Details

  • Constructor Details

    • TicketCreationRuleActionResponse

      public TicketCreationRuleActionResponse()
    • TicketCreationRuleActionResponse

      public TicketCreationRuleActionResponse(Long maxTicketsPerDay, UUID projectId, TicketCreationTarget target)
  • Method Details

    • assigneeId

      public TicketCreationRuleActionResponse assigneeId(UUID assigneeId)
    • getAssigneeId

      @Nullable public UUID getAssigneeId()
      The UUID of the default assignee for created tickets.
      Returns:
      assigneeId
    • setAssigneeId

      public void setAssigneeId(UUID assigneeId)
    • autoDisabledReason

      public TicketCreationRuleActionResponse autoDisabledReason(String autoDisabledReason)
    • getAutoDisabledReason

      @Nullable public String getAutoDisabledReason()
      The reason the rule was automatically disabled by the system due to a ticketing integration error.
      Returns:
      autoDisabledReason
    • setAutoDisabledReason

      public void setAutoDisabledReason(String autoDisabledReason)
    • fields

      public TicketCreationRuleActionResponse fields(Object fields)
    • getFields

      @Nullable public Object getFields()
      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.

      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).

      Returns:
      fields
    • setFields

      public void setFields(Object fields)
    • maxTicketsPerDay

      public TicketCreationRuleActionResponse maxTicketsPerDay(Long maxTicketsPerDay)
    • getMaxTicketsPerDay

      public Long getMaxTicketsPerDay()
      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. minimum: 1 maximum: 500
      Returns:
      maxTicketsPerDay
    • setMaxTicketsPerDay

      public void setMaxTicketsPerDay(Long maxTicketsPerDay)
    • projectId

      public TicketCreationRuleActionResponse projectId(UUID projectId)
    • getProjectId

      public UUID getProjectId()
      The UUID of the case management project.
      Returns:
      projectId
    • setProjectId

      public void setProjectId(UUID projectId)
    • target

    • getTarget

      public TicketCreationTarget getTarget()
      The ticketing system to create tickets in.
      Returns:
      target
    • setTarget

      public void setTarget(TicketCreationTarget target)
    • putAdditionalProperty

      public TicketCreationRuleActionResponse putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - The arbitrary key to set
      value - The associated value
      Returns:
      TicketCreationRuleActionResponse
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - The arbitrary key to get
      Returns:
      The specific additional property for the given key
    • equals

      public boolean equals(Object o)
      Return true if this TicketCreationRuleActionResponse object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object