Class QueueConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1.QueueConfig
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<QueueConfigBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class QueueConfig extends Object implements io.fabric8.kubernetes.api.builder.Editable<QueueConfigBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
QueueConfig allows the tuning of remote write's queue_config parameters. This object is referenced in the RemoteWriteSpec object.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QueueConfig()No args constructor for use in serializationQueueConfig(String batchSendDeadline, Integer capacity, String maxBackoff, Integer maxRetries, Integer maxSamplesPerSend, Integer maxShards, String minBackoff, Integer minShards, Boolean retryOnRateLimit, String sampleAgeLimit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueueConfigBuilderedit()Map<String,Object>getAdditionalProperties()StringgetBatchSendDeadline()BatchSendDeadline is the maximum time a sample will wait in buffer.IntegergetCapacity()Capacity is the number of samples to buffer per shard before we start dropping them.StringgetMaxBackoff()MaxBackoff is the maximum retry delay.IntegergetMaxRetries()MaxRetries is the maximum number of times to retry a batch on recoverable errors.IntegergetMaxSamplesPerSend()MaxSamplesPerSend is the maximum number of samples per send.IntegergetMaxShards()MaxShards is the maximum number of shards, i.e. amount of concurrency.StringgetMinBackoff()MinBackoff is the initial retry delay.IntegergetMinShards()MinShards is the minimum number of shards, i.e. amount of concurrency.BooleangetRetryOnRateLimit()Retry upon receiving a 429 status code from the remote-write storage.StringgetSampleAgeLimit()SampleAgeLimit drops samples older than the limit.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetBatchSendDeadline(String batchSendDeadline)BatchSendDeadline is the maximum time a sample will wait in buffer.voidsetCapacity(Integer capacity)Capacity is the number of samples to buffer per shard before we start dropping them.voidsetMaxBackoff(String maxBackoff)MaxBackoff is the maximum retry delay.voidsetMaxRetries(Integer maxRetries)MaxRetries is the maximum number of times to retry a batch on recoverable errors.voidsetMaxSamplesPerSend(Integer maxSamplesPerSend)MaxSamplesPerSend is the maximum number of samples per send.voidsetMaxShards(Integer maxShards)MaxShards is the maximum number of shards, i.e. amount of concurrency.voidsetMinBackoff(String minBackoff)MinBackoff is the initial retry delay.voidsetMinShards(Integer minShards)MinShards is the minimum number of shards, i.e. amount of concurrency.voidsetRetryOnRateLimit(Boolean retryOnRateLimit)Retry upon receiving a 429 status code from the remote-write storage.voidsetSampleAgeLimit(String sampleAgeLimit)SampleAgeLimit drops samples older than the limit.QueueConfigBuildertoBuilder()
-
-
-
Method Detail
-
getBatchSendDeadline
public String getBatchSendDeadline()
BatchSendDeadline is the maximum time a sample will wait in buffer.
-
setBatchSendDeadline
public void setBatchSendDeadline(String batchSendDeadline)
BatchSendDeadline is the maximum time a sample will wait in buffer.
-
getCapacity
public Integer getCapacity()
Capacity is the number of samples to buffer per shard before we start dropping them.
-
setCapacity
public void setCapacity(Integer capacity)
Capacity is the number of samples to buffer per shard before we start dropping them.
-
getMaxBackoff
public String getMaxBackoff()
MaxBackoff is the maximum retry delay.
-
setMaxBackoff
public void setMaxBackoff(String maxBackoff)
MaxBackoff is the maximum retry delay.
-
getMaxRetries
public Integer getMaxRetries()
MaxRetries is the maximum number of times to retry a batch on recoverable errors.
-
setMaxRetries
public void setMaxRetries(Integer maxRetries)
MaxRetries is the maximum number of times to retry a batch on recoverable errors.
-
getMaxSamplesPerSend
public Integer getMaxSamplesPerSend()
MaxSamplesPerSend is the maximum number of samples per send.
-
setMaxSamplesPerSend
public void setMaxSamplesPerSend(Integer maxSamplesPerSend)
MaxSamplesPerSend is the maximum number of samples per send.
-
getMaxShards
public Integer getMaxShards()
MaxShards is the maximum number of shards, i.e. amount of concurrency.
-
setMaxShards
public void setMaxShards(Integer maxShards)
MaxShards is the maximum number of shards, i.e. amount of concurrency.
-
getMinBackoff
public String getMinBackoff()
MinBackoff is the initial retry delay. Gets doubled for every retry.
-
setMinBackoff
public void setMinBackoff(String minBackoff)
MinBackoff is the initial retry delay. Gets doubled for every retry.
-
getMinShards
public Integer getMinShards()
MinShards is the minimum number of shards, i.e. amount of concurrency.
-
setMinShards
public void setMinShards(Integer minShards)
MinShards is the minimum number of shards, i.e. amount of concurrency.
-
getRetryOnRateLimit
public Boolean getRetryOnRateLimit()
Retry upon receiving a 429 status code from the remote-write storage.This is an *experimental feature*, it may change in any upcoming release in a breaking way.
-
setRetryOnRateLimit
public void setRetryOnRateLimit(Boolean retryOnRateLimit)
Retry upon receiving a 429 status code from the remote-write storage.This is an *experimental feature*, it may change in any upcoming release in a breaking way.
-
getSampleAgeLimit
public String getSampleAgeLimit()
SampleAgeLimit drops samples older than the limit. It requires Prometheus >= v2.50.0 or Thanos >= v0.32.0.
-
setSampleAgeLimit
public void setSampleAgeLimit(String sampleAgeLimit)
SampleAgeLimit drops samples older than the limit. It requires Prometheus >= v2.50.0 or Thanos >= v0.32.0.
-
edit
public QueueConfigBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<QueueConfigBuilder>
-
toBuilder
public QueueConfigBuilder toBuilder()
-
-