Class NativeHistogramConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1.NativeHistogramConfig
-
- All Implemented Interfaces:
Editable<NativeHistogramConfigBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class NativeHistogramConfig extends Object implements Editable<NativeHistogramConfigBuilder>, 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, Quantity nativeHistogramMinBucketFactor, Boolean scrapeClassicHistograms, Boolean scrapeNativeHistograms)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NativeHistogramConfigBuilderedit()Map<String,Object>getAdditionalProperties()BooleangetConvertClassicHistogramsToNHCB()convertClassicHistogramsToNHCB defines whether to convert all scraped classic histograms into a native histogram with custom buckets.LonggetNativeHistogramBucketLimit()nativeHistogramBucketLimit defines ff there are more than this many buckets in a native histogram, buckets will be merged to stay within the limit.QuantitygetNativeHistogramMinBucketFactor()NativeHistogramConfig extends the native histogram configuration settings.BooleangetScrapeClassicHistograms()scrapeClassicHistograms defines whether to scrape a classic histogram that is also exposed as a native histogram.BooleangetScrapeNativeHistograms()scrapeNativeHistograms defines whether to enable scraping of native histograms.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetConvertClassicHistogramsToNHCB(Boolean convertClassicHistogramsToNHCB)convertClassicHistogramsToNHCB defines whether to convert all scraped classic histograms into a native histogram with custom buckets.voidsetNativeHistogramBucketLimit(Long nativeHistogramBucketLimit)nativeHistogramBucketLimit defines ff there are more than this many buckets in a native histogram, buckets will be merged to stay within the limit.voidsetNativeHistogramMinBucketFactor(Quantity nativeHistogramMinBucketFactor)NativeHistogramConfig extends the native histogram configuration settings.voidsetScrapeClassicHistograms(Boolean scrapeClassicHistograms)scrapeClassicHistograms defines whether to scrape a classic histogram that is also exposed as a native histogram.voidsetScrapeNativeHistograms(Boolean scrapeNativeHistograms)scrapeNativeHistograms defines whether to enable scraping of native histograms.NativeHistogramConfigBuildertoBuilder()
-
-
-
Method Detail
-
getConvertClassicHistogramsToNHCB
public Boolean getConvertClassicHistogramsToNHCB()
convertClassicHistogramsToNHCB defines 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)
convertClassicHistogramsToNHCB defines whether to convert all scraped classic histograms into a native histogram with custom buckets. It requires Prometheus >= v3.0.0.
-
getNativeHistogramBucketLimit
public Long getNativeHistogramBucketLimit()
nativeHistogramBucketLimit defines ff 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)
nativeHistogramBucketLimit defines ff 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 Quantity getNativeHistogramMinBucketFactor()
NativeHistogramConfig extends the native histogram configuration settings.
-
setNativeHistogramMinBucketFactor
public void setNativeHistogramMinBucketFactor(Quantity nativeHistogramMinBucketFactor)
NativeHistogramConfig extends the native histogram configuration settings.
-
getScrapeClassicHistograms
public Boolean getScrapeClassicHistograms()
scrapeClassicHistograms defines 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)
scrapeClassicHistograms defines 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.
-
getScrapeNativeHistograms
public Boolean getScrapeNativeHistograms()
scrapeNativeHistograms defines whether to enable scraping of native histograms. It requires Prometheus >= v3.8.0.
-
setScrapeNativeHistograms
public void setScrapeNativeHistograms(Boolean scrapeNativeHistograms)
scrapeNativeHistograms defines whether to enable scraping of native histograms. It requires Prometheus >= v3.8.0.
-
edit
public NativeHistogramConfigBuilder edit()
- Specified by:
editin interfaceEditable<NativeHistogramConfigBuilder>
-
toBuilder
public NativeHistogramConfigBuilder toBuilder()
-
-