Class QueryIr

java.lang.Object
ai.shipeasy.admin.model.QueryIr

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class QueryIr extends Object
Typed query IR — the structured alternative to the `query` DSL string. Exactly one of `query` / `query_ir` is supplied per metric body.
  • Field Details

  • Constructor Details

    • QueryIr

      public QueryIr()
  • Method Details

    • agg

      public QueryIr agg(@Nonnull QueryIrAgg agg)
    • getAgg

      @Nonnull public QueryIrAgg getAgg()
      Get agg
      Returns:
      agg
    • setAgg

      public void setAgg(@Nonnull QueryIrAgg agg)
    • metric

      public QueryIr metric(@Nonnull String metric)
    • getMetric

      @Nonnull public String getMetric()
      Source event name (must equal `event_name`).
      Returns:
      metric
    • setMetric

      public void setMetric(@Nonnull String metric)
    • valueLabel

      public QueryIr valueLabel(@Nullable String valueLabel)
    • getValueLabel

      @Nullable public String getValueLabel()
      Numeric property summed/averaged for `sum`/`avg`/quantile aggregations.
      Returns:
      valueLabel
    • setValueLabel

      public void setValueLabel(@Nullable String valueLabel)
    • filters

      public QueryIr filters(@Nullable List<QueryIrAggOneOf9NumeratorFiltersInner> filters)
    • addFiltersItem

      public QueryIr addFiltersItem(QueryIrAggOneOf9NumeratorFiltersInner filtersItem)
    • getFilters

      @Nullable public List<QueryIrAggOneOf9NumeratorFiltersInner> getFilters()
      Label filters on the event.
      Returns:
      filters
    • setFilters

      public void setFilters(@Nullable List<QueryIrAggOneOf9NumeratorFiltersInner> filters)
    • groupBy

      public QueryIr groupBy(@Nullable QueryIrGroupBy groupBy)
    • getGroupBy

      @Nullable public QueryIrGroupBy getGroupBy()
      Get groupBy
      Returns:
      groupBy
    • setGroupBy

      public void setGroupBy(@Nullable QueryIrGroupBy groupBy)
    • putAdditionalProperty

      public QueryIr 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 - name of the property
      value - value of the property
      Returns:
      the QueryIr instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to QueryIr
    • fromJson

      public static QueryIr fromJson(String jsonString) throws IOException
      Create an instance of QueryIr given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of QueryIr
      Throws:
      IOException - if the JSON string is invalid with respect to QueryIr
    • toJson

      public String toJson()
      Convert an instance of QueryIr to an JSON string
      Returns:
      JSON string