@Generated(value="OracleSDKGenerator", comments="API Version: 20200202") public final class UpdatePrometheusEmitterDataSourceDetails extends UpdateDataSourceDetails
A Prometheus data source.
Note: Objects should always be created or deserialized using the UpdatePrometheusEmitterDataSourceDetails.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the UpdatePrometheusEmitterDataSourceDetails.Builder
, which maintain a
set of all explicitly set fields called UpdatePrometheusEmitterDataSourceDetails.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
UpdatePrometheusEmitterDataSourceDetails.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
UpdatePrometheusEmitterDataSourceDetails(String url,
String allowMetrics,
String proxyUrl,
Integer connectionTimeout,
Integer readTimeout,
Integer readDataLimitInKilobytes,
Integer scheduleMins,
String resourceGroup,
List<MetricDimension> metricDimensions)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static UpdatePrometheusEmitterDataSourceDetails.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getAllowMetrics()
Comma separated metric name list.
|
Integer |
getConnectionTimeout()
Number in milliseconds.
|
List<MetricDimension> |
getMetricDimensions()
The names of other user-supplied properties expressed as fixed values to be used as
dimensions for every uploaded datapoint.
|
String |
getProxyUrl()
The url of the network proxy that provides access to the Prometheus Exporter’s endpoint (url
required property).
|
Integer |
getReadDataLimitInKilobytes()
Number in kilobytes.
|
Integer |
getReadTimeout()
Number in milliseconds.
|
String |
getResourceGroup()
OCI monitoring resource group to assign the metric to.
|
Integer |
getScheduleMins()
Number in minutes.
|
String |
getUrl()
The url through which the Prometheus Exporter publishes its metrics.
|
int |
hashCode() |
UpdatePrometheusEmitterDataSourceDetails.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated public UpdatePrometheusEmitterDataSourceDetails(String url, String allowMetrics, String proxyUrl, Integer connectionTimeout, Integer readTimeout, Integer readDataLimitInKilobytes, Integer scheduleMins, String resourceGroup, List<MetricDimension> metricDimensions)
public static UpdatePrometheusEmitterDataSourceDetails.Builder builder()
Create a new builder.
public UpdatePrometheusEmitterDataSourceDetails.Builder toBuilder()
public String getUrl()
The url through which the Prometheus Exporter publishes its metrics. (http only)
public String getAllowMetrics()
Comma separated metric name list. The complete set of desired scraped metrics. Use this property to limit the set of metrics uploaded if required.
public String getProxyUrl()
The url of the network proxy that provides access to the Prometheus Exporter’s endpoint (url required property).
public Integer getConnectionTimeout()
Number in milliseconds. The timeout for connecting to the Prometheus Exporter’s endpoint.
public Integer getReadTimeout()
Number in milliseconds. The timeout for reading the response from the Prometheus Exporter’s endpoint.
public Integer getReadDataLimitInKilobytes()
Number in kilobytes. The limit on the data being sent, not to exceed the agent’s fixed limit of 400 (KB).
public Integer getScheduleMins()
Number in minutes. The scraping occurs at the specified interval.
public String getResourceGroup()
OCI monitoring resource group to assign the metric to.
public List<MetricDimension> getMetricDimensions()
The names of other user-supplied properties expressed as fixed values to be used as dimensions for every uploaded datapoint.
public String toString()
toString
in class UpdateDataSourceDetails
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
toString
in class UpdateDataSourceDetails
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class UpdateDataSourceDetails
public int hashCode()
hashCode
in class UpdateDataSourceDetails
Copyright © 2016–2024. All rights reserved.