Class UpdatePrometheusEmitterDataSourceDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.managementagent.model.UpdatePrometheusEmitterDataSourceDetails.Builder
-
- Enclosing class:
- UpdatePrometheusEmitterDataSourceDetails
public static class UpdatePrometheusEmitterDataSourceDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
url
public UpdatePrometheusEmitterDataSourceDetails.Builder url(String url)
The url through which the Prometheus Exporter publishes its metrics.(http only)
- Parameters:
url
- the value to set- Returns:
- this builder
-
allowMetrics
public UpdatePrometheusEmitterDataSourceDetails.Builder allowMetrics(String allowMetrics)
Comma separated metric name list.The complete set of desired scraped metrics. Use this property to limit the set of metrics uploaded if required.
- Parameters:
allowMetrics
- the value to set- Returns:
- this builder
-
proxyUrl
public UpdatePrometheusEmitterDataSourceDetails.Builder proxyUrl(String proxyUrl)
The url of the network proxy that provides access to the Prometheus Exporter’s endpoint (url required property).- Parameters:
proxyUrl
- the value to set- Returns:
- this builder
-
connectionTimeout
public UpdatePrometheusEmitterDataSourceDetails.Builder connectionTimeout(Integer connectionTimeout)
Number in milliseconds.The timeout for connecting to the Prometheus Exporter’s endpoint.
- Parameters:
connectionTimeout
- the value to set- Returns:
- this builder
-
readTimeout
public UpdatePrometheusEmitterDataSourceDetails.Builder readTimeout(Integer readTimeout)
Number in milliseconds.The timeout for reading the response from the Prometheus Exporter’s endpoint.
- Parameters:
readTimeout
- the value to set- Returns:
- this builder
-
readDataLimitInKilobytes
public UpdatePrometheusEmitterDataSourceDetails.Builder readDataLimitInKilobytes(Integer readDataLimitInKilobytes)
Number in kilobytes.The limit on the data being sent, not to exceed the agent’s fixed limit of 400 (KB).
- Parameters:
readDataLimitInKilobytes
- the value to set- Returns:
- this builder
-
scheduleMins
public UpdatePrometheusEmitterDataSourceDetails.Builder scheduleMins(Integer scheduleMins)
Number in minutes.The scraping occurs at the specified interval.
- Parameters:
scheduleMins
- the value to set- Returns:
- this builder
-
resourceGroup
public UpdatePrometheusEmitterDataSourceDetails.Builder resourceGroup(String resourceGroup)
OCI monitoring resource group to assign the metric to.- Parameters:
resourceGroup
- the value to set- Returns:
- this builder
-
metricDimensions
public UpdatePrometheusEmitterDataSourceDetails.Builder metricDimensions(List<MetricDimension> metricDimensions)
The names of other user-supplied properties expressed as fixed values to be used as dimensions for every uploaded datapoint.- Parameters:
metricDimensions
- the value to set- Returns:
- this builder
-
build
public UpdatePrometheusEmitterDataSourceDetails build()
-
copy
public UpdatePrometheusEmitterDataSourceDetails.Builder copy(UpdatePrometheusEmitterDataSourceDetails model)
-
-