Class MetricsQueryResponse

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class MetricsQueryResponse extends Object
Response Object that includes your query and the list of metrics retrieved.
  • Field Details

  • Constructor Details

    • MetricsQueryResponse

      public MetricsQueryResponse()
  • Method Details

    • getError

      @Nullable public String getError()
      Message indicating the errors if status is not ok.
      Returns:
      error
    • getFromDate

      @Nullable public Long getFromDate()
      Start of requested time window, milliseconds since Unix epoch.
      Returns:
      fromDate
    • getGroupBy

      @Nullable public List<String> getGroupBy()
      List of tag keys on which to group.
      Returns:
      groupBy
    • getMessage

      @Nullable public String getMessage()
      Message indicating success if status is ok.
      Returns:
      message
    • getQuery

      @Nullable public String getQuery()
      Query string
      Returns:
      query
    • getResType

      @Nullable public String getResType()
      Type of response.
      Returns:
      resType
    • getSeries

      @Nullable public List<MetricsQueryMetadata> getSeries()
      List of timeseries queried.
      Returns:
      series
    • getStatus

      @Nullable public String getStatus()
      Status of the query.
      Returns:
      status
    • getToDate

      @Nullable public Long getToDate()
      End of requested time window, milliseconds since Unix epoch.
      Returns:
      toDate
    • putAdditionalProperty

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