Package com.datadog.api.client.v1.model
Class MetricsQueryUnit
java.lang.Object
com.datadog.api.client.v1.model.MetricsQueryUnit
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class MetricsQueryUnit
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 MetricsQueryUnit 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.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
-
MetricsQueryUnit
public MetricsQueryUnit()
-
-
Method Details
-
getFamily
Unit family, allows for conversion between units of the same family, for scaling.- Returns:
- family
-
getName
Unit name- Returns:
- name
-
getPlural
Plural form of the unit name.- Returns:
- plural
-
getScaleFactor
Factor for scaling between units of the same family.- Returns:
- scaleFactor
-
getShortName
Abbreviation of the unit.- Returns:
- shortName
-
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:
- MetricsQueryUnit
-
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 MetricsQueryUnit object is equal to o. -
hashCode
public int hashCode() -
toString
-