Class QuerySpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1.QuerySpec
-
- All Implemented Interfaces:
Editable<QuerySpecBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class QuerySpec extends Object implements Editable<QuerySpecBuilder>, KubernetesResource
QuerySpec defines the query command line flags when starting Prometheus.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QuerySpecBuilderedit()Map<String,Object>getAdditionalProperties()StringgetLookbackDelta()lookbackDelta defines the delta difference allowed for retrieving metrics during expression evaluations.IntegergetMaxConcurrency()maxConcurrency defines the number of concurrent queries that can be run at once.IntegergetMaxSamples()maxSamples defines the maximum number of samples a single query can load into memory.StringgetTimeout()timeout defines the maximum time a query may take before being aborted.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetLookbackDelta(String lookbackDelta)lookbackDelta defines the delta difference allowed for retrieving metrics during expression evaluations.voidsetMaxConcurrency(Integer maxConcurrency)maxConcurrency defines the number of concurrent queries that can be run at once.voidsetMaxSamples(Integer maxSamples)maxSamples defines the maximum number of samples a single query can load into memory.voidsetTimeout(String timeout)timeout defines the maximum time a query may take before being aborted.QuerySpecBuildertoBuilder()
-
-
-
Method Detail
-
getLookbackDelta
public String getLookbackDelta()
lookbackDelta defines the delta difference allowed for retrieving metrics during expression evaluations.
-
setLookbackDelta
public void setLookbackDelta(String lookbackDelta)
lookbackDelta defines the delta difference allowed for retrieving metrics during expression evaluations.
-
getMaxConcurrency
public Integer getMaxConcurrency()
maxConcurrency defines the number of concurrent queries that can be run at once.
-
setMaxConcurrency
public void setMaxConcurrency(Integer maxConcurrency)
maxConcurrency defines the number of concurrent queries that can be run at once.
-
getMaxSamples
public Integer getMaxSamples()
maxSamples defines the maximum number of samples a single query can load into memory. Note that queries will fail if they would load more samples than this into memory, so this also limits the number of samples a query can return.
-
setMaxSamples
public void setMaxSamples(Integer maxSamples)
maxSamples defines the maximum number of samples a single query can load into memory. Note that queries will fail if they would load more samples than this into memory, so this also limits the number of samples a query can return.
-
getTimeout
public String getTimeout()
timeout defines the maximum time a query may take before being aborted.
-
setTimeout
public void setTimeout(String timeout)
timeout defines the maximum time a query may take before being aborted.
-
edit
public QuerySpecBuilder edit()
- Specified by:
editin interfaceEditable<QuerySpecBuilder>
-
toBuilder
public QuerySpecBuilder toBuilder()
-
-