Package com.datadog.api.client.v1.model
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncategory(MonitorAssetCategory category) booleanReturn true if this MonitorAsset object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Indicates the type of asset this entity represents on a monitor.getName()Name for the monitor assetRepresents the identifier of the internal Datadog resource that this asset represents.Type of internal Datadog resource associated with a monitor asset.getUrl()URL link for the asset.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.resourceKey(String resourceKey) resourceType(MonitorAssetResourceType resourceType) voidsetCategory(MonitorAssetCategory category) voidvoidsetResourceKey(String resourceKey) voidsetResourceType(MonitorAssetResourceType resourceType) voidtoString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_CATEGORY
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_RESOURCE_KEY
- See Also:
-
JSON_PROPERTY_RESOURCE_TYPE
- See Also:
-
JSON_PROPERTY_URL
- See Also:
-
-
Constructor Details
-
MonitorAsset
public MonitorAsset() -
MonitorAsset
-
-
Method Details
-
category
-
getCategory
Indicates the type of asset this entity represents on a monitor.- Returns:
- category
-
setCategory
-
name
-
getName
Name for the monitor asset- Returns:
- name
-
setName
-
resourceKey
-
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
-
resourceType
-
getResourceType
Type of internal Datadog resource associated with a monitor asset.- Returns:
- resourceType
-
setResourceType
-
url
-
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
-
putAdditionalProperty
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 setvalue- The associated value- Returns:
- MonitorAsset
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
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
Return true if this MonitorAsset object is equal to o. -
hashCode
public int hashCode() -
toString
-