Package com.datadog.api.client.v2.model
Class ProductAnalyticsUnit
java.lang.Object
com.datadog.api.client.v2.model.ProductAnalyticsUnit
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ProductAnalyticsUnit
extends Object
A unit definition for metric values.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this ProductAnalyticsUnit object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The unit family (e.g., time, bytes).getId()Numeric identifier for the unit.getName()The full name of the unit (e.g., nanosecond).Plural form of the unit name (e.g., nanoseconds).Conversion factor relative to the base unit of the family.Abbreviated unit name (e.g., ns).inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.scaleFactor(Double scaleFactor) voidvoidvoidvoidvoidsetScaleFactor(Double scaleFactor) voidsetShortName(String shortName) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_FAMILY
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_PLURAL
- See Also:
-
JSON_PROPERTY_SCALE_FACTOR
- See Also:
-
JSON_PROPERTY_SHORT_NAME
- See Also:
-
-
Constructor Details
-
ProductAnalyticsUnit
public ProductAnalyticsUnit()
-
-
Method Details
-
family
-
getFamily
The unit family (e.g., time, bytes).- Returns:
- family
-
setFamily
-
id
-
getId
Numeric identifier for the unit.- Returns:
- id
-
setId
-
name
-
getName
The full name of the unit (e.g., nanosecond).- Returns:
- name
-
setName
-
plural
-
getPlural
Plural form of the unit name (e.g., nanoseconds).- Returns:
- plural
-
setPlural
-
scaleFactor
-
getScaleFactor
Conversion factor relative to the base unit of the family.- Returns:
- scaleFactor
-
setScaleFactor
-
shortName
-
getShortName
Abbreviated unit name (e.g., ns).- Returns:
- shortName
-
setShortName
-
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:
- ProductAnalyticsUnit
-
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 ProductAnalyticsUnit object is equal to o. -
hashCode
public int hashCode() -
toString
-