Class ThanosQueryUserConfiguration

java.lang.Object
com.exoscale.sdk.model.ThanosQueryUserConfiguration

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class ThanosQueryUserConfiguration extends Object
Configuration options for Thanos Query.
  • Field Details

    • JSON_PROPERTY_QUERY_DEFAULT_EVALUATION_INTERVAL

      public static final String JSON_PROPERTY_QUERY_DEFAULT_EVALUATION_INTERVAL
      See Also:
    • JSON_PROPERTY_QUERY_LOOKBACK_DELTA

      public static final String JSON_PROPERTY_QUERY_LOOKBACK_DELTA
      See Also:
    • JSON_PROPERTY_QUERY_METADATA_DEFAULT_TIME_RANGE

      public static final String JSON_PROPERTY_QUERY_METADATA_DEFAULT_TIME_RANGE
      See Also:
    • JSON_PROPERTY_QUERY_TIMEOUT

      public static final String JSON_PROPERTY_QUERY_TIMEOUT
      See Also:
    • JSON_PROPERTY_STORE_LIMITS_REQUEST_SAMPLES

      public static final String JSON_PROPERTY_STORE_LIMITS_REQUEST_SAMPLES
      See Also:
    • JSON_PROPERTY_STORE_LIMITS_REQUEST_SERIES

      public static final String JSON_PROPERTY_STORE_LIMITS_REQUEST_SERIES
      See Also:
  • Constructor Details

    • ThanosQueryUserConfiguration

      public ThanosQueryUserConfiguration()
  • Method Details

    • queryDefaultEvaluationInterval

      public ThanosQueryUserConfiguration queryDefaultEvaluationInterval(String queryDefaultEvaluationInterval)
    • getQueryDefaultEvaluationInterval

      @Nullable public String getQueryDefaultEvaluationInterval()
      Set the default evaluation interval for subqueries.
      Returns:
      queryDefaultEvaluationInterval
    • setQueryDefaultEvaluationInterval

      public void setQueryDefaultEvaluationInterval(String queryDefaultEvaluationInterval)
    • queryLookbackDelta

      public ThanosQueryUserConfiguration queryLookbackDelta(String queryLookbackDelta)
    • getQueryLookbackDelta

      @Nullable public String getQueryLookbackDelta()
      The maximum lookback duration for retrieving metrics during expression evaluations in PromQL. PromQL always evaluates the query for a certain timestamp, and it looks back for the given amount of time to get the latest sample. If it exceeds the maximum lookback delta, it assumes the series is stale and returns none (a gap). The lookback delta should be set to at least 2 times the slowest scrape interval. If unset, it will use the promql default of 5m.
      Returns:
      queryLookbackDelta
    • setQueryLookbackDelta

      public void setQueryLookbackDelta(String queryLookbackDelta)
    • queryMetadataDefaultTimeRange

      public ThanosQueryUserConfiguration queryMetadataDefaultTimeRange(String queryMetadataDefaultTimeRange)
    • getQueryMetadataDefaultTimeRange

      @Nullable public String getQueryMetadataDefaultTimeRange()
      The default metadata time range duration for retrieving labels through Labels and Series API when the range parameters are not specified. The zero value means the range covers the time since the beginning.
      Returns:
      queryMetadataDefaultTimeRange
    • setQueryMetadataDefaultTimeRange

      public void setQueryMetadataDefaultTimeRange(String queryMetadataDefaultTimeRange)
    • queryTimeout

      public ThanosQueryUserConfiguration queryTimeout(String queryTimeout)
    • getQueryTimeout

      @Nullable public String getQueryTimeout()
      Maximum time to process a query by the query node.
      Returns:
      queryTimeout
    • setQueryTimeout

      public void setQueryTimeout(String queryTimeout)
    • storeLimitsRequestSamples

      public ThanosQueryUserConfiguration storeLimitsRequestSamples(Integer storeLimitsRequestSamples)
    • getStoreLimitsRequestSamples

      @Nullable public Integer getStoreLimitsRequestSamples()
      The maximum samples allowed for a single Series request. The Series call fails if this limit is exceeded. Set to 0 for no limit. NOTE: For efficiency, the limit is internally implemented as 'chunks limit' considering each chunk contains a maximum of 120 samples. The default value is 100 * store.limits.request-series. minimum: 0 maximum: 100000000
      Returns:
      storeLimitsRequestSamples
    • setStoreLimitsRequestSamples

      public void setStoreLimitsRequestSamples(Integer storeLimitsRequestSamples)
    • storeLimitsRequestSeries

      public ThanosQueryUserConfiguration storeLimitsRequestSeries(Integer storeLimitsRequestSeries)
    • getStoreLimitsRequestSeries

      @Nullable public Integer getStoreLimitsRequestSeries()
      The maximum series allowed for a single Series request. The Series call fails if this limit is exceeded. Set to 0 for no limit. The default value is 1000 * cpu_count. minimum: 0 maximum: 100000000
      Returns:
      storeLimitsRequestSeries
    • setStoreLimitsRequestSeries

      public void setStoreLimitsRequestSeries(Integer storeLimitsRequestSeries)
    • equals

      public boolean equals(Object o)
      Return true if this Thanos_Query_User_Configuration 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
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string