Class QueryFormula

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class QueryFormula extends Object
A formula for calculation based on one or more queries.
  • Field Details

  • Constructor Details

    • QueryFormula

      public QueryFormula()
    • QueryFormula

      public QueryFormula(String formula)
  • Method Details

    • formula

      public QueryFormula formula(String formula)
    • getFormula

      public String getFormula()
      Formula string, referencing one or more queries with their name property.
      Returns:
      formula
    • setFormula

      public void setFormula(String formula)
    • limit

      public QueryFormula limit(FormulaLimit limit)
    • getLimit

      @Nullable public FormulaLimit getLimit()
      Message for specifying limits to the number of values returned by a query. This limit is only for scalar queries and has no effect on timeseries queries.
      Returns:
      limit
    • setLimit

      public void setLimit(FormulaLimit limit)
    • putAdditionalProperty

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