Class MetricMetadata

java.lang.Object
com.datadog.api.client.v1.model.MetricMetadata

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class MetricMetadata extends Object
Object with all metric related metadata.
  • Field Details

  • Constructor Details

    • MetricMetadata

      public MetricMetadata()
  • Method Details

    • description

      public MetricMetadata description(String description)
    • getDescription

      @Nullable public String getDescription()
      Metric description.
      Returns:
      description
    • setDescription

      public void setDescription(String description)
    • getIntegration

      @Nullable public String getIntegration()
      Name of the integration that sent the metric if applicable.
      Returns:
      integration
    • perUnit

      public MetricMetadata perUnit(String perUnit)
    • getPerUnit

      @Nullable public String getPerUnit()
      Per unit of the metric such as second in bytes per second.
      Returns:
      perUnit
    • setPerUnit

      public void setPerUnit(String perUnit)
    • shortName

      public MetricMetadata shortName(String shortName)
    • getShortName

      @Nullable public String getShortName()
      A more human-readable and abbreviated version of the metric name.
      Returns:
      shortName
    • setShortName

      public void setShortName(String shortName)
    • statsdInterval

      public MetricMetadata statsdInterval(Long statsdInterval)
    • getStatsdInterval

      @Nullable public Long getStatsdInterval()
      StatsD flush interval of the metric in seconds if applicable.
      Returns:
      statsdInterval
    • setStatsdInterval

      public void setStatsdInterval(Long statsdInterval)
    • type

      public MetricMetadata type(String type)
    • getType

      @Nullable public String getType()
      Metric type such as gauge or rate.
      Returns:
      type
    • setType

      public void setType(String type)
    • unit

      public MetricMetadata unit(String unit)
    • getUnit

      @Nullable public String getUnit()
      Primary unit of the metric such as byte or operation.
      Returns:
      unit
    • setUnit

      public void setUnit(String unit)
    • putAdditionalProperty

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