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 Details

  • Constructor Details

    • Unit

      public Unit()
  • Method Details

    • family

      public Unit family(String family)
    • getFamily

      @Nullable public String getFamily()
      Unit family, allows for conversion between units of the same family, for scaling.
      Returns:
      family
    • setFamily

      public void setFamily(String family)
    • name

      public Unit name(String name)
    • getName

      @Nullable public String getName()
      Unit name
      Returns:
      name
    • setName

      public void setName(String name)
    • plural

      public Unit plural(String plural)
    • getPlural

      @Nullable public String getPlural()
      Plural form of the unit name.
      Returns:
      plural
    • setPlural

      public void setPlural(String plural)
    • scaleFactor

      public Unit scaleFactor(Double scaleFactor)
    • getScaleFactor

      @Nullable public Double getScaleFactor()
      Factor for scaling between units of the same family.
      Returns:
      scaleFactor
    • setScaleFactor

      public void setScaleFactor(Double scaleFactor)
    • shortName

      public Unit shortName(String shortName)
    • getShortName

      @Nullable public String getShortName()
      Abbreviation of the unit.
      Returns:
      shortName
    • setShortName

      public void setShortName(String shortName)
    • putAdditionalProperty

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