Class MonitorAsset

java.lang.Object
com.datadog.api.client.v1.model.MonitorAsset

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class MonitorAsset extends Object
Represents key links tied to a monitor to help users take action on alerts. This feature is in Preview and only available to users with the feature enabled.
  • Field Details

  • Constructor Details

  • Method Details

    • category

      public MonitorAsset category(MonitorAssetCategory category)
    • getCategory

      public MonitorAssetCategory getCategory()
      Indicates the type of asset this entity represents on a monitor.
      Returns:
      category
    • setCategory

      public void setCategory(MonitorAssetCategory category)
    • name

      public MonitorAsset name(String name)
    • getName

      public String getName()
      Name for the monitor asset
      Returns:
      name
    • setName

      public void setName(String name)
    • resourceKey

      public MonitorAsset resourceKey(String resourceKey)
    • getResourceKey

      @Nullable public String getResourceKey()
      Represents the identifier of the internal Datadog resource that this asset represents. IDs in this field should be passed in as strings.
      Returns:
      resourceKey
    • setResourceKey

      public void setResourceKey(String resourceKey)
    • resourceType

      public MonitorAsset resourceType(MonitorAssetResourceType resourceType)
    • getResourceType

      @Nullable public MonitorAssetResourceType getResourceType()
      Type of internal Datadog resource associated with a monitor asset.
      Returns:
      resourceType
    • setResourceType

      public void setResourceType(MonitorAssetResourceType resourceType)
    • url

      public MonitorAsset url(String url)
    • getUrl

      public String getUrl()
      URL link for the asset. For links with an internal resource type set, this should be the relative path to where the Datadog domain is appended internally. For external links, this should be the full URL path.
      Returns:
      url
    • setUrl

      public void setUrl(String url)
    • putAdditionalProperty

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