Class NativeHistogramConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1.NativeHistogramConfig
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<NativeHistogramConfigBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class NativeHistogramConfig extends Object implements io.fabric8.kubernetes.api.builder.Editable<NativeHistogramConfigBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
NativeHistogramConfig extends the native histogram configuration settings.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NativeHistogramConfig()No args constructor for use in serializationNativeHistogramConfig(Boolean convertClassicHistogramsToNHCB, Long nativeHistogramBucketLimit, io.fabric8.kubernetes.api.model.Quantity nativeHistogramMinBucketFactor, Boolean scrapeClassicHistograms)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NativeHistogramConfigBuilderedit()Map<String,Object>getAdditionalProperties()BooleangetConvertClassicHistogramsToNHCB()Whether to convert all scraped classic histograms into a native histogram with custom buckets.LonggetNativeHistogramBucketLimit()If there are more than this many buckets in a native histogram, buckets will be merged to stay within the limit.io.fabric8.kubernetes.api.model.QuantitygetNativeHistogramMinBucketFactor()NativeHistogramConfig extends the native histogram configuration settings.BooleangetScrapeClassicHistograms()Whether to scrape a classic histogram that is also exposed as a native histogram.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetConvertClassicHistogramsToNHCB(Boolean convertClassicHistogramsToNHCB)Whether to convert all scraped classic histograms into a native histogram with custom buckets.voidsetNativeHistogramBucketLimit(Long nativeHistogramBucketLimit)If there are more than this many buckets in a native histogram, buckets will be merged to stay within the limit.voidsetNativeHistogramMinBucketFactor(io.fabric8.kubernetes.api.model.Quantity nativeHistogramMinBucketFactor)NativeHistogramConfig extends the native histogram configuration settings.voidsetScrapeClassicHistograms(Boolean scrapeClassicHistograms)Whether to scrape a classic histogram that is also exposed as a native histogram.NativeHistogramConfigBuildertoBuilder()
-
-
-
Method Detail
-
getConvertClassicHistogramsToNHCB
public Boolean getConvertClassicHistogramsToNHCB()
Whether to convert all scraped classic histograms into a native histogram with custom buckets. It requires Prometheus >= v3.0.0.
-
setConvertClassicHistogramsToNHCB
public void setConvertClassicHistogramsToNHCB(Boolean convertClassicHistogramsToNHCB)
Whether to convert all scraped classic histograms into a native histogram with custom buckets. It requires Prometheus >= v3.0.0.
-
getNativeHistogramBucketLimit
public Long getNativeHistogramBucketLimit()
If there are more than this many buckets in a native histogram, buckets will be merged to stay within the limit. It requires Prometheus >= v2.45.0.
-
setNativeHistogramBucketLimit
public void setNativeHistogramBucketLimit(Long nativeHistogramBucketLimit)
If there are more than this many buckets in a native histogram, buckets will be merged to stay within the limit. It requires Prometheus >= v2.45.0.
-
getNativeHistogramMinBucketFactor
public io.fabric8.kubernetes.api.model.Quantity getNativeHistogramMinBucketFactor()
NativeHistogramConfig extends the native histogram configuration settings.
-
setNativeHistogramMinBucketFactor
public void setNativeHistogramMinBucketFactor(io.fabric8.kubernetes.api.model.Quantity nativeHistogramMinBucketFactor)
NativeHistogramConfig extends the native histogram configuration settings.
-
getScrapeClassicHistograms
public Boolean getScrapeClassicHistograms()
Whether to scrape a classic histogram that is also exposed as a native histogram. It requires Prometheus >= v2.45.0.Notice: `scrapeClassicHistograms` corresponds to the `always_scrape_classic_histograms` field in the Prometheus configuration.
-
setScrapeClassicHistograms
public void setScrapeClassicHistograms(Boolean scrapeClassicHistograms)
Whether to scrape a classic histogram that is also exposed as a native histogram. It requires Prometheus >= v2.45.0.Notice: `scrapeClassicHistograms` corresponds to the `always_scrape_classic_histograms` field in the Prometheus configuration.
-
edit
public NativeHistogramConfigBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<NativeHistogramConfigBuilder>
-
toBuilder
public NativeHistogramConfigBuilder toBuilder()
-
-