Class ProductAnalyticsCompute

java.lang.Object
com.datadog.api.client.v2.model.ProductAnalyticsCompute

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ProductAnalyticsCompute extends Object
A compute rule for aggregating data.
  • Field Details

  • Constructor Details

    • ProductAnalyticsCompute

      public ProductAnalyticsCompute()
    • ProductAnalyticsCompute

      public ProductAnalyticsCompute(String aggregation)
  • Method Details

    • aggregation

      public ProductAnalyticsCompute aggregation(String aggregation)
    • getAggregation

      public String getAggregation()
      The aggregation function (count, cardinality, avg, sum, min, max, etc.).
      Returns:
      aggregation
    • setAggregation

      public void setAggregation(String aggregation)
    • interval

      public ProductAnalyticsCompute interval(Long interval)
    • getInterval

      @Nullable public Long getInterval()
      Time bucket size in milliseconds. Required for timeseries queries; ignored by the scalar endpoint, which returns a single value.
      Returns:
      interval
    • setInterval

      public void setInterval(Long interval)
    • metric

      public ProductAnalyticsCompute metric(String metric)
    • getMetric

      @Nullable public String getMetric()
      The metric to aggregate on. Required for non-count aggregations.
      Returns:
      metric
    • setMetric

      public void setMetric(String metric)
    • putAdditionalProperty

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