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 TypeMethodDescriptiondefaultEvaluationInterval(String defaultEvaluationInterval) booleanReturn 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.The maximum samples allowed for a single Series request.The maximum series allowed for a single Series request.Maximum time to process a query by the query node.inthashCode()lookbackDelta(String lookbackDelta) metadataDefaultTimeRange(String metadataDefaultTimeRange) requestSamplesLimits(Integer requestSamplesLimits) requestSeriesLimits(Integer requestSeriesLimits) voidsetDefaultEvaluationInterval(String defaultEvaluationInterval) voidsetLookbackDelta(String lookbackDelta) voidsetMetadataDefaultTimeRange(String metadataDefaultTimeRange) voidsetRequestSamplesLimits(Integer requestSamplesLimits) voidsetRequestSeriesLimits(Integer requestSeriesLimits) voidsetTimeout(String timeout) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_DEFAULT_EVALUATION_INTERVAL
- See Also:
-
JSON_PROPERTY_LOOKBACK_DELTA
- See Also:
-
JSON_PROPERTY_METADATA_DEFAULT_TIME_RANGE
- See Also:
-
JSON_PROPERTY_TIMEOUT
- See Also:
-
JSON_PROPERTY_REQUEST_SAMPLES_LIMITS
- See Also:
-
JSON_PROPERTY_REQUEST_SERIES_LIMITS
- See Also:
-
-
Constructor Details
-
ThanosQueryUserConfig
public ThanosQueryUserConfig()
-
-
Method Details
-
defaultEvaluationInterval
-
getDefaultEvaluationInterval
Set the default evaluation interval for subqueries.- Returns:
- defaultEvaluationInterval
-
setDefaultEvaluationInterval
-
lookbackDelta
-
getLookbackDelta
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:
- lookbackDelta
-
setLookbackDelta
-
metadataDefaultTimeRange
-
getMetadataDefaultTimeRange
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:
- metadataDefaultTimeRange
-
setMetadataDefaultTimeRange
-
timeout
-
getTimeout
Maximum time to process a query by the query node.- Returns:
- timeout
-
setTimeout
-
requestSamplesLimits
-
getRequestSamplesLimits
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:
- requestSamplesLimits
-
setRequestSamplesLimits
-
requestSeriesLimits
-
getRequestSeriesLimits
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:
- requestSeriesLimits
-
setRequestSeriesLimits
-
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
-