Class MonitorType

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class MonitorType extends Object
Attributes from the monitor that triggered the event.
  • Field Details

  • Constructor Details

    • MonitorType

      public MonitorType()
  • Method Details

    • createdAt

      public MonitorType createdAt(Long createdAt)
    • getCreatedAt

      @Nullable public Long getCreatedAt()
      The POSIX timestamp of the monitor's creation in nanoseconds.
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(Long createdAt)
    • groupStatus

      public MonitorType groupStatus(Integer groupStatus)
    • getGroupStatus

      @Nullable public Integer getGroupStatus()
      Monitor group status used when there is no result_groups. maximum: 2147483647
      Returns:
      groupStatus
    • setGroupStatus

      public void setGroupStatus(Integer groupStatus)
    • groups

      public MonitorType groups(List<String> groups)
    • addGroupsItem

      public MonitorType addGroupsItem(String groupsItem)
    • getGroups

      @Nullable public List<String> getGroups()
      Groups to which the monitor belongs.
      Returns:
      groups
    • setGroups

      public void setGroups(List<String> groups)
    • id

      public MonitorType id(Long id)
    • getId

      @Nullable public Long getId()
      The monitor ID.
      Returns:
      id
    • setId

      public void setId(Long id)
    • message

      public MonitorType message(String message)
    • getMessage

      @Nullable public String getMessage()
      The monitor message.
      Returns:
      message
    • setMessage

      public void setMessage(String message)
    • modified

      public MonitorType modified(Long modified)
    • getModified

      @Nullable public Long getModified()
      The monitor's last-modified timestamp.
      Returns:
      modified
    • setModified

      public void setModified(Long modified)
    • name

      public MonitorType name(String name)
    • getName

      @Nullable public String getName()
      The monitor name.
      Returns:
      name
    • setName

      public void setName(String name)
    • query

      public MonitorType query(String query)
    • getQuery

      @Nullable public String getQuery()
      The query that triggers the alert.
      Returns:
      query
    • setQuery

      public void setQuery(String query)
    • tags

      public MonitorType tags(List<String> tags)
    • addTagsItem

      public MonitorType addTagsItem(String tagsItem)
    • getTags

      @Nullable public List<String> getTags()
      A list of tags attached to the monitor.
      Returns:
      tags
    • setTags

      public void setTags(List<String> tags)
    • templatedName

      public MonitorType templatedName(String templatedName)
    • getTemplatedName

      @Nullable public String getTemplatedName()
      The templated name of the monitor before resolving any template variables.
      Returns:
      templatedName
    • setTemplatedName

      public void setTemplatedName(String templatedName)
    • type

      public MonitorType type(String type)
    • getType

      @Nullable public String getType()
      The monitor type.
      Returns:
      type
    • setType

      public void setType(String type)
    • putAdditionalProperty

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