Package com.exoscale.sdk.model
Class ThanosQueryUserConfig
java.lang.Object
com.exoscale.sdk.model.ThanosQueryUserConfig
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.4.0")
public class ThanosQueryUserConfig
extends Object
Configuration options for Thanos Query.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this ThanosQueryUserConfig object is equal to o.Set the default evaluation interval for subqueries.The maximum lookback duration for retrieving metrics during expression evaluations in PromQL.The default metadata time range duration for retrieving labels through Labels and Series API when the range parameters are not specified.Maximum time to process a query by the query node.The maximum samples allowed for a single Series request.The maximum series allowed for a single Series request.inthashCode()queryDefaultEvaluationInterval(String queryDefaultEvaluationInterval) queryLookbackDelta(String queryLookbackDelta) queryMetadataDefaultTimeRange(String queryMetadataDefaultTimeRange) queryTimeout(String queryTimeout) voidsetQueryDefaultEvaluationInterval(String queryDefaultEvaluationInterval) voidsetQueryLookbackDelta(String queryLookbackDelta) voidsetQueryMetadataDefaultTimeRange(String queryMetadataDefaultTimeRange) voidsetQueryTimeout(String queryTimeout) voidsetStoreLimitsRequestSamples(Integer storeLimitsRequestSamples) voidsetStoreLimitsRequestSeries(Integer storeLimitsRequestSeries) storeLimitsRequestSamples(Integer storeLimitsRequestSamples) storeLimitsRequestSeries(Integer storeLimitsRequestSeries) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_QUERY_DEFAULT_EVALUATION_INTERVAL
- See Also:
-
JSON_PROPERTY_QUERY_LOOKBACK_DELTA
- See Also:
-
JSON_PROPERTY_QUERY_METADATA_DEFAULT_TIME_RANGE
- See Also:
-
JSON_PROPERTY_QUERY_TIMEOUT
- See Also:
-
JSON_PROPERTY_STORE_LIMITS_REQUEST_SAMPLES
- See Also:
-
JSON_PROPERTY_STORE_LIMITS_REQUEST_SERIES
- See Also:
-
-
Constructor Details
-
ThanosQueryUserConfig
public ThanosQueryUserConfig()
-
-
Method Details
-
queryDefaultEvaluationInterval
-
getQueryDefaultEvaluationInterval
Set the default evaluation interval for subqueries.- Returns:
- queryDefaultEvaluationInterval
-
setQueryDefaultEvaluationInterval
-
queryLookbackDelta
-
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
-
queryMetadataDefaultTimeRange
-
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
-
queryTimeout
-
getQueryTimeout
Maximum time to process a query by the query node.- Returns:
- queryTimeout
-
setQueryTimeout
-
storeLimitsRequestSamples
-
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
-
storeLimitsRequestSeries
-
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
-
equals
Return true if this ThanosQueryUserConfig object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-