Class TimeseriesFormulaRequestAttributes

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class TimeseriesFormulaRequestAttributes extends Object
The object describing a timeseries formula request.
  • Field Details

  • Constructor Details

    • TimeseriesFormulaRequestAttributes

      public TimeseriesFormulaRequestAttributes()
    • TimeseriesFormulaRequestAttributes

      public TimeseriesFormulaRequestAttributes(Long from, List<TimeseriesQuery> queries, Long to)
  • Method Details

    • formulas

    • addFormulasItem

      public TimeseriesFormulaRequestAttributes addFormulasItem(QueryFormula formulasItem)
    • getFormulas

      @Nullable public List<QueryFormula> getFormulas()
      List of formulas to be calculated and returned as responses.
      Returns:
      formulas
    • setFormulas

      public void setFormulas(List<QueryFormula> formulas)
    • from

    • getFrom

      public Long getFrom()
      Start date (inclusive) of the query in milliseconds since the Unix epoch.
      Returns:
      from
    • setFrom

      public void setFrom(Long from)
    • interval

      public TimeseriesFormulaRequestAttributes interval(Long interval)
    • getInterval

      @Nullable public Long getInterval()
      A time interval in milliseconds. May be overridden by a larger interval if the query would result in too many points for the specified timeframe. Defaults to a reasonable interval for the given timeframe.
      Returns:
      interval
    • setInterval

      public void setInterval(Long interval)
    • queries

    • addQueriesItem

      public TimeseriesFormulaRequestAttributes addQueriesItem(TimeseriesQuery queriesItem)
    • getQueries

      public List<TimeseriesQuery> getQueries()
      List of queries to be run and used as inputs to the formulas.
      Returns:
      queries
    • setQueries

      public void setQueries(List<TimeseriesQuery> queries)
    • to

    • getTo

      public Long getTo()
      End date (exclusive) of the query in milliseconds since the Unix epoch.
      Returns:
      to
    • setTo

      public void setTo(Long to)
    • putAdditionalProperty

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