Class EventsGroupBySort

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class EventsGroupBySort extends Object
The dimension by which to sort a query's results.
  • Field Details

  • Constructor Details

    • EventsGroupBySort

      public EventsGroupBySort()
    • EventsGroupBySort

      public EventsGroupBySort(EventsAggregation aggregation)
  • Method Details

    • aggregation

      public EventsGroupBySort aggregation(EventsAggregation aggregation)
    • getAggregation

      public EventsAggregation getAggregation()
      The type of aggregation that can be performed on events-based queries.
      Returns:
      aggregation
    • setAggregation

      public void setAggregation(EventsAggregation aggregation)
    • metric

      public EventsGroupBySort metric(String metric)
    • getMetric

      @Nullable public String getMetric()
      The metric's calculated value which should be used to define the sort order of a query's results.
      Returns:
      metric
    • setMetric

      public void setMetric(String metric)
    • order

      public EventsGroupBySort order(QuerySortOrder order)
    • getOrder

      @Nullable public QuerySortOrder getOrder()
      Direction of sort.
      Returns:
      order
    • setOrder

      public void setOrder(QuerySortOrder order)
    • type

      public EventsGroupBySort type(EventsSortType type)
    • getType

      @Nullable public EventsSortType getType()
      The type of sort to use on the calculated value.
      Returns:
      type
    • setType

      public void setType(EventsSortType type)
    • putAdditionalProperty

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