Class ProbeSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1.ProbeSpec
-
- All Implemented Interfaces:
Editable<ProbeSpecBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ProbeSpec extends Object implements Editable<ProbeSpecBuilder>, KubernetesResource
ProbeSpec contains specification parameters for a Probe.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProbeSpec()No args constructor for use in serializationProbeSpec(SafeAuthorization authorization, BasicAuth basicAuth, SecretKeySelector bearerTokenSecret, Boolean convertClassicHistogramsToNHCB, Boolean enableHttp2, String fallbackScrapeProtocol, Boolean followRedirects, String interval, String jobName, Long keepDroppedTargets, Long labelLimit, Long labelNameLengthLimit, Long labelValueLengthLimit, List<RelabelConfig> metricRelabelings, String module, Long nativeHistogramBucketLimit, Quantity nativeHistogramMinBucketFactor, OAuth2 oauth2, List<ProbeParam> params, ProberSpec prober, Long sampleLimit, String scrapeClass, Boolean scrapeClassicHistograms, Boolean scrapeNativeHistograms, List<String> scrapeProtocols, String scrapeTimeout, Long targetLimit, ProbeTargets targets, SafeTLSConfig tlsConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProbeSpecBuilderedit()Map<String,Object>getAdditionalProperties()SafeAuthorizationgetAuthorization()ProbeSpec contains specification parameters for a Probe.BasicAuthgetBasicAuth()ProbeSpec contains specification parameters for a Probe.SecretKeySelectorgetBearerTokenSecret()ProbeSpec contains specification parameters for a Probe.BooleangetConvertClassicHistogramsToNHCB()convertClassicHistogramsToNHCB defines whether to convert all scraped classic histograms into a native histogram with custom buckets.BooleangetEnableHttp2()enableHttp2 can be used to disable HTTP2.StringgetFallbackScrapeProtocol()fallbackScrapeProtocol defines the protocol to use if a scrape returns blank, unparseable, or otherwise invalid Content-Type.BooleangetFollowRedirects()followRedirects defines whether the client should follow HTTP 3xx redirects.StringgetInterval()interval at which targets are probed using the configured prober.StringgetJobName()jobName assigned to scraped metrics by default.LonggetKeepDroppedTargets()keepDroppedTargets defines the per-scrape limit on the number of targets dropped by relabeling that will be kept in memory. 0 means no limit.LonggetLabelLimit()labelLimit defines the per-scrape limit on number of labels that will be accepted for a sample.LonggetLabelNameLengthLimit()labelNameLengthLimit defines the per-scrape limit on length of labels name that will be accepted for a sample.LonggetLabelValueLengthLimit()labelValueLengthLimit defines the per-scrape limit on length of labels value that will be accepted for a sample.List<RelabelConfig>getMetricRelabelings()metricRelabelings defines the RelabelConfig to apply to samples before ingestion.StringgetModule()module to use for probing specifying how to probe the target.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()ProbeSpec contains specification parameters for a Probe.OAuth2getOauth2()ProbeSpec contains specification parameters for a Probe.List<ProbeParam>getParams()params defines the list of HTTP query parameters for the scrape.ProberSpecgetProber()ProbeSpec contains specification parameters for a Probe.LonggetSampleLimit()sampleLimit defines per-scrape limit on number of scraped samples that will be accepted.StringgetScrapeClass()scrapeClass defines the scrape class to apply.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.List<String>getScrapeProtocols()scrapeProtocols defines the protocols to negotiate during a scrape.StringgetScrapeTimeout()scrapeTimeout defines the timeout for scraping metrics from the Prometheus exporter.LonggetTargetLimit()targetLimit defines a limit on the number of scraped targets that will be accepted.ProbeTargetsgetTargets()ProbeSpec contains specification parameters for a Probe.SafeTLSConfiggetTlsConfig()ProbeSpec contains specification parameters for a Probe.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAuthorization(SafeAuthorization authorization)ProbeSpec contains specification parameters for a Probe.voidsetBasicAuth(BasicAuth basicAuth)ProbeSpec contains specification parameters for a Probe.voidsetBearerTokenSecret(SecretKeySelector bearerTokenSecret)ProbeSpec contains specification parameters for a Probe.voidsetConvertClassicHistogramsToNHCB(Boolean convertClassicHistogramsToNHCB)convertClassicHistogramsToNHCB defines whether to convert all scraped classic histograms into a native histogram with custom buckets.voidsetEnableHttp2(Boolean enableHttp2)enableHttp2 can be used to disable HTTP2.voidsetFallbackScrapeProtocol(String fallbackScrapeProtocol)fallbackScrapeProtocol defines the protocol to use if a scrape returns blank, unparseable, or otherwise invalid Content-Type.voidsetFollowRedirects(Boolean followRedirects)followRedirects defines whether the client should follow HTTP 3xx redirects.voidsetInterval(String interval)interval at which targets are probed using the configured prober.voidsetJobName(String jobName)jobName assigned to scraped metrics by default.voidsetKeepDroppedTargets(Long keepDroppedTargets)keepDroppedTargets defines the per-scrape limit on the number of targets dropped by relabeling that will be kept in memory. 0 means no limit.voidsetLabelLimit(Long labelLimit)labelLimit defines the per-scrape limit on number of labels that will be accepted for a sample.voidsetLabelNameLengthLimit(Long labelNameLengthLimit)labelNameLengthLimit defines the per-scrape limit on length of labels name that will be accepted for a sample.voidsetLabelValueLengthLimit(Long labelValueLengthLimit)labelValueLengthLimit defines the per-scrape limit on length of labels value that will be accepted for a sample.voidsetMetricRelabelings(List<RelabelConfig> metricRelabelings)metricRelabelings defines the RelabelConfig to apply to samples before ingestion.voidsetModule(String module)module to use for probing specifying how to probe the target.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)ProbeSpec contains specification parameters for a Probe.voidsetOauth2(OAuth2 oauth2)ProbeSpec contains specification parameters for a Probe.voidsetParams(List<ProbeParam> params)params defines the list of HTTP query parameters for the scrape.voidsetProber(ProberSpec prober)ProbeSpec contains specification parameters for a Probe.voidsetSampleLimit(Long sampleLimit)sampleLimit defines per-scrape limit on number of scraped samples that will be accepted.voidsetScrapeClass(String scrapeClass)scrapeClass defines the scrape class to apply.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.voidsetScrapeProtocols(List<String> scrapeProtocols)scrapeProtocols defines the protocols to negotiate during a scrape.voidsetScrapeTimeout(String scrapeTimeout)scrapeTimeout defines the timeout for scraping metrics from the Prometheus exporter.voidsetTargetLimit(Long targetLimit)targetLimit defines a limit on the number of scraped targets that will be accepted.voidsetTargets(ProbeTargets targets)ProbeSpec contains specification parameters for a Probe.voidsetTlsConfig(SafeTLSConfig tlsConfig)ProbeSpec contains specification parameters for a Probe.ProbeSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
ProbeSpec
public ProbeSpec()
No args constructor for use in serialization
-
ProbeSpec
public ProbeSpec(SafeAuthorization authorization, BasicAuth basicAuth, SecretKeySelector bearerTokenSecret, Boolean convertClassicHistogramsToNHCB, Boolean enableHttp2, String fallbackScrapeProtocol, Boolean followRedirects, String interval, String jobName, Long keepDroppedTargets, Long labelLimit, Long labelNameLengthLimit, Long labelValueLengthLimit, List<RelabelConfig> metricRelabelings, String module, Long nativeHistogramBucketLimit, Quantity nativeHistogramMinBucketFactor, OAuth2 oauth2, List<ProbeParam> params, ProberSpec prober, Long sampleLimit, String scrapeClass, Boolean scrapeClassicHistograms, Boolean scrapeNativeHistograms, List<String> scrapeProtocols, String scrapeTimeout, Long targetLimit, ProbeTargets targets, SafeTLSConfig tlsConfig)
-
-
Method Detail
-
getAuthorization
public SafeAuthorization getAuthorization()
ProbeSpec contains specification parameters for a Probe.
-
setAuthorization
public void setAuthorization(SafeAuthorization authorization)
ProbeSpec contains specification parameters for a Probe.
-
getBasicAuth
public BasicAuth getBasicAuth()
ProbeSpec contains specification parameters for a Probe.
-
setBasicAuth
public void setBasicAuth(BasicAuth basicAuth)
ProbeSpec contains specification parameters for a Probe.
-
getBearerTokenSecret
public SecretKeySelector getBearerTokenSecret()
ProbeSpec contains specification parameters for a Probe.
-
setBearerTokenSecret
public void setBearerTokenSecret(SecretKeySelector bearerTokenSecret)
ProbeSpec contains specification parameters for a Probe.
-
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.
-
getEnableHttp2
public Boolean getEnableHttp2()
enableHttp2 can be used to disable HTTP2.
-
setEnableHttp2
public void setEnableHttp2(Boolean enableHttp2)
enableHttp2 can be used to disable HTTP2.
-
getFallbackScrapeProtocol
public String getFallbackScrapeProtocol()
fallbackScrapeProtocol defines the protocol to use if a scrape returns blank, unparseable, or otherwise invalid Content-Type.It requires Prometheus >= v3.0.0.
-
setFallbackScrapeProtocol
public void setFallbackScrapeProtocol(String fallbackScrapeProtocol)
fallbackScrapeProtocol defines the protocol to use if a scrape returns blank, unparseable, or otherwise invalid Content-Type.It requires Prometheus >= v3.0.0.
-
getFollowRedirects
public Boolean getFollowRedirects()
followRedirects defines whether the client should follow HTTP 3xx redirects.
-
setFollowRedirects
public void setFollowRedirects(Boolean followRedirects)
followRedirects defines whether the client should follow HTTP 3xx redirects.
-
getInterval
public String getInterval()
interval at which targets are probed using the configured prober. If not specified Prometheus' global scrape interval is used.
-
setInterval
public void setInterval(String interval)
interval at which targets are probed using the configured prober. If not specified Prometheus' global scrape interval is used.
-
getJobName
public String getJobName()
jobName assigned to scraped metrics by default.
-
setJobName
public void setJobName(String jobName)
jobName assigned to scraped metrics by default.
-
getKeepDroppedTargets
public Long getKeepDroppedTargets()
keepDroppedTargets defines the per-scrape limit on the number of targets dropped by relabeling that will be kept in memory. 0 means no limit.It requires Prometheus >= v2.47.0.
-
setKeepDroppedTargets
public void setKeepDroppedTargets(Long keepDroppedTargets)
keepDroppedTargets defines the per-scrape limit on the number of targets dropped by relabeling that will be kept in memory. 0 means no limit.It requires Prometheus >= v2.47.0.
-
getLabelLimit
public Long getLabelLimit()
labelLimit defines the per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
-
setLabelLimit
public void setLabelLimit(Long labelLimit)
labelLimit defines the per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
-
getLabelNameLengthLimit
public Long getLabelNameLengthLimit()
labelNameLengthLimit defines the per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
-
setLabelNameLengthLimit
public void setLabelNameLengthLimit(Long labelNameLengthLimit)
labelNameLengthLimit defines the per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
-
getLabelValueLengthLimit
public Long getLabelValueLengthLimit()
labelValueLengthLimit defines the per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
-
setLabelValueLengthLimit
public void setLabelValueLengthLimit(Long labelValueLengthLimit)
labelValueLengthLimit defines the per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
-
getMetricRelabelings
public List<RelabelConfig> getMetricRelabelings()
metricRelabelings defines the RelabelConfig to apply to samples before ingestion.
-
setMetricRelabelings
public void setMetricRelabelings(List<RelabelConfig> metricRelabelings)
metricRelabelings defines the RelabelConfig to apply to samples before ingestion.
-
getModule
public String getModule()
module to use for probing specifying how to probe the target. Example module configuring in the blackbox exporter: https://github.com/prometheus/blackbox_exporter/blob/master/example.yml
-
setModule
public void setModule(String module)
module to use for probing specifying how to probe the target. Example module configuring in the blackbox exporter: https://github.com/prometheus/blackbox_exporter/blob/master/example.yml
-
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()
ProbeSpec contains specification parameters for a Probe.
-
setNativeHistogramMinBucketFactor
public void setNativeHistogramMinBucketFactor(Quantity nativeHistogramMinBucketFactor)
ProbeSpec contains specification parameters for a Probe.
-
getOauth2
public OAuth2 getOauth2()
ProbeSpec contains specification parameters for a Probe.
-
setOauth2
public void setOauth2(OAuth2 oauth2)
ProbeSpec contains specification parameters for a Probe.
-
getParams
public List<ProbeParam> getParams()
params defines the list of HTTP query parameters for the scrape. Please note that the `.spec.module` field takes precedence over the `module` parameter from this list when both are defined. The module name must be added using Module under ProbeSpec.
-
setParams
public void setParams(List<ProbeParam> params)
params defines the list of HTTP query parameters for the scrape. Please note that the `.spec.module` field takes precedence over the `module` parameter from this list when both are defined. The module name must be added using Module under ProbeSpec.
-
getProber
public ProberSpec getProber()
ProbeSpec contains specification parameters for a Probe.
-
setProber
public void setProber(ProberSpec prober)
ProbeSpec contains specification parameters for a Probe.
-
getSampleLimit
public Long getSampleLimit()
sampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
-
setSampleLimit
public void setSampleLimit(Long sampleLimit)
sampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
-
getScrapeClass
public String getScrapeClass()
scrapeClass defines the scrape class to apply.
-
setScrapeClass
public void setScrapeClass(String scrapeClass)
scrapeClass defines the scrape class to apply.
-
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.
-
getScrapeProtocols
public List<String> getScrapeProtocols()
scrapeProtocols defines the protocols to negotiate during a scrape. It tells clients the protocols supported by Prometheus in order of preference (from most to least preferred).If unset, Prometheus uses its default value.
It requires Prometheus >= v2.49.0.
-
setScrapeProtocols
public void setScrapeProtocols(List<String> scrapeProtocols)
scrapeProtocols defines the protocols to negotiate during a scrape. It tells clients the protocols supported by Prometheus in order of preference (from most to least preferred).If unset, Prometheus uses its default value.
It requires Prometheus >= v2.49.0.
-
getScrapeTimeout
public String getScrapeTimeout()
scrapeTimeout defines the timeout for scraping metrics from the Prometheus exporter. If not specified, the Prometheus global scrape timeout is used. The value cannot be greater than the scrape interval otherwise the operator will reject the resource.
-
setScrapeTimeout
public void setScrapeTimeout(String scrapeTimeout)
scrapeTimeout defines the timeout for scraping metrics from the Prometheus exporter. If not specified, the Prometheus global scrape timeout is used. The value cannot be greater than the scrape interval otherwise the operator will reject the resource.
-
getTargetLimit
public Long getTargetLimit()
targetLimit defines a limit on the number of scraped targets that will be accepted.
-
setTargetLimit
public void setTargetLimit(Long targetLimit)
targetLimit defines a limit on the number of scraped targets that will be accepted.
-
getTargets
public ProbeTargets getTargets()
ProbeSpec contains specification parameters for a Probe.
-
setTargets
public void setTargets(ProbeTargets targets)
ProbeSpec contains specification parameters for a Probe.
-
getTlsConfig
public SafeTLSConfig getTlsConfig()
ProbeSpec contains specification parameters for a Probe.
-
setTlsConfig
public void setTlsConfig(SafeTLSConfig tlsConfig)
ProbeSpec contains specification parameters for a Probe.
-
edit
public ProbeSpecBuilder edit()
- Specified by:
editin interfaceEditable<ProbeSpecBuilder>
-
toBuilder
public ProbeSpecBuilder toBuilder()
-
-