Package com.datadog.api.client.v2.model
Class Unit
java.lang.Object
com.datadog.api.client.v2.model.Unit
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class Unit
extends Object
Object containing the metric unit family, scale factor, name, and short name.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this Unit object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Unit family, allows for conversion between units of the same family, for scaling.getName()Unit namePlural form of the unit name.Factor for scaling between units of the same family.Abbreviation of the unit.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.scaleFactor(Double scaleFactor) voidvoidvoidvoidsetScaleFactor(Double scaleFactor) voidsetShortName(String shortName) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_FAMILY
- 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
-
Unit
public Unit()
-
-
Method Details
-
family
-
getFamily
Unit family, allows for conversion between units of the same family, for scaling.- Returns:
- family
-
setFamily
-
name
-
getName
Unit name- Returns:
- name
-
setName
-
plural
-
getPlural
Plural form of the unit name.- Returns:
- plural
-
setPlural
-
scaleFactor
-
getScaleFactor
Factor for scaling between units of the same family.- Returns:
- scaleFactor
-
setScaleFactor
-
shortName
-
getShortName
Abbreviation of the unit.- 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:
- Unit
-
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 Unit object is equal to o. -
hashCode
public int hashCode() -
toString
-