public static class PrometheusEmitterDataSource.Builder extends Object
Constructor and Description |
---|
Builder() |
public PrometheusEmitterDataSource.Builder key(String key)
public PrometheusEmitterDataSource.Builder name(String name)
public PrometheusEmitterDataSource.Builder compartmentId(String compartmentId)
public PrometheusEmitterDataSource.Builder state(LifecycleStates state)
public PrometheusEmitterDataSource.Builder timeCreated(Date timeCreated)
public PrometheusEmitterDataSource.Builder timeUpdated(Date timeUpdated)
public PrometheusEmitterDataSource.Builder url(String url)
The url through which the Prometheus Exporter publishes its metrics. (http only)
url
- the value to setpublic PrometheusEmitterDataSource.Builder namespace(String namespace)
The OCI monitoring namespace to which scraped metrics should be uploaded.
namespace
- the value to setpublic PrometheusEmitterDataSource.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.
allowMetrics
- the value to setpublic PrometheusEmitterDataSource.Builder proxyUrl(String proxyUrl)
The url of the network proxy that provides access to the Prometheus Exporter’s endpoint (url required property).
proxyUrl
- the value to setpublic PrometheusEmitterDataSource.Builder connectionTimeout(Integer connectionTimeout)
Number in milliseconds. The timeout for connecting to the Prometheus Exporter’s endpoint.
connectionTimeout
- the value to setpublic PrometheusEmitterDataSource.Builder readTimeout(Integer readTimeout)
Number in milliseconds. The timeout for reading the response from the Prometheus Exporter’s endpoint.
readTimeout
- the value to setpublic PrometheusEmitterDataSource.Builder readDataLimit(Integer readDataLimit)
Number in kilobytes. The limit on the data being sent, not to exceed the agent’s fixed limit of 400 (KB).
readDataLimit
- the value to setpublic PrometheusEmitterDataSource.Builder scheduleMins(Integer scheduleMins)
Number in minutes. The scraping occurs at the specified interval.
scheduleMins
- the value to setpublic PrometheusEmitterDataSource.Builder resourceGroup(String resourceGroup)
OCI monitoring resource group to assign the metric to.
resourceGroup
- the value to setpublic PrometheusEmitterDataSource.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.
metricDimensions
- the value to setpublic PrometheusEmitterDataSource build()
public PrometheusEmitterDataSource.Builder copy(PrometheusEmitterDataSource model)
Copyright © 2016–2024. All rights reserved.