Class TicketCreationRuleAction

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

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

  • Constructor Details

    • TicketCreationRuleAction

      public TicketCreationRuleAction()
    • TicketCreationRuleAction

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

    • assigneeId

      public TicketCreationRuleAction 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)
    • fields

      public TicketCreationRuleAction 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 TicketCreationRuleAction 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 TicketCreationRuleAction 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 TicketCreationRuleAction 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:
      TicketCreationRuleAction
    • 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 TicketCreationRuleAction 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