Class ComparisonDuration

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ComparisonDuration extends Object
The comparison period. Use a preset type value or set type to custom_timeframe and provide custom_timeframe with explicit millisecond epoch bounds.
  • Field Details

  • Constructor Details

    • ComparisonDuration

      public ComparisonDuration()
    • ComparisonDuration

      public ComparisonDuration(ComparisonDurationType type)
  • Method Details

    • customTimeframe

      public ComparisonDuration customTimeframe(ComparisonCustomTimeframe customTimeframe)
    • getCustomTimeframe

      @Nullable public ComparisonCustomTimeframe getCustomTimeframe()
      Fixed time range for a custom_timeframe comparison.
      Returns:
      customTimeframe
    • setCustomTimeframe

      public void setCustomTimeframe(ComparisonCustomTimeframe customTimeframe)
    • type

    • getType

      public ComparisonDurationType getType()
      The comparison window type.
      Returns:
      type
    • setType

      public void setType(ComparisonDurationType type)
    • putAdditionalProperty

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