Class CreatePrometheusEmitterDataSourceDetails
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.managementagent.model.CreateDataSourceDetails
-
- com.oracle.bmc.managementagent.model.CreatePrometheusEmitterDataSourceDetails
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20200202") public final class CreatePrometheusEmitterDataSourceDetails extends CreateDataSourceDetailsA Prometheus emitter data source.
Note: Objects should always be created or deserialized using theCreatePrometheusEmitterDataSourceDetails.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 theCreatePrometheusEmitterDataSourceDetails.Builder, which maintain a set of all explicitly set fields calledCreatePrometheusEmitterDataSourceDetails.Builder.__explicitlySet__. ThehashCode()andequals(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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreatePrometheusEmitterDataSourceDetails.Builder
-
Constructor Summary
Constructors Constructor Description CreatePrometheusEmitterDataSourceDetails(String name, String compartmentId, String url, String namespace, String allowMetrics, String proxyUrl, Integer connectionTimeout, Integer readTimeout, Integer readDataLimitInKilobytes, Integer scheduleMins, String resourceGroup, List<MetricDimension> metricDimensions)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreatePrometheusEmitterDataSourceDetails.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetAllowMetrics()Comma separated metric name list.IntegergetConnectionTimeout()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.StringgetNamespace()The OCI monitoring namespace to which scraped metrics should be uploaded.StringgetProxyUrl()The url of the network proxy that provides access to the Prometheus Exporter’s endpoint (url required property).IntegergetReadDataLimitInKilobytes()Number in kilobytes.IntegergetReadTimeout()Number in milliseconds.StringgetResourceGroup()OCI monitoring resource group to assign the metric to.IntegergetScheduleMins()Number in minutes.StringgetUrl()The url through which the Prometheus Exporter publishes its metrics.inthashCode()CreatePrometheusEmitterDataSourceDetails.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.-
Methods inherited from class com.oracle.bmc.managementagent.model.CreateDataSourceDetails
getCompartmentId, getName
-
-
-
-
Constructor Detail
-
CreatePrometheusEmitterDataSourceDetails
@Deprecated public CreatePrometheusEmitterDataSourceDetails(String name, String compartmentId, String url, String namespace, String allowMetrics, String proxyUrl, Integer connectionTimeout, Integer readTimeout, Integer readDataLimitInKilobytes, Integer scheduleMins, String resourceGroup, List<MetricDimension> metricDimensions)
Deprecated.
-
-
Method Detail
-
builder
public static CreatePrometheusEmitterDataSourceDetails.Builder builder()
Create a new builder.
-
toBuilder
public CreatePrometheusEmitterDataSourceDetails.Builder toBuilder()
-
getUrl
public String getUrl()
The url through which the Prometheus Exporter publishes its metrics.(http only)
- Returns:
- the value
-
getNamespace
public String getNamespace()
The OCI monitoring namespace to which scraped metrics should be uploaded.- Returns:
- the value
-
getAllowMetrics
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.
- Returns:
- the value
-
getProxyUrl
public String getProxyUrl()
The url of the network proxy that provides access to the Prometheus Exporter’s endpoint (url required property).- Returns:
- the value
-
getConnectionTimeout
public Integer getConnectionTimeout()
Number in milliseconds.The timeout for connecting to the Prometheus Exporter’s endpoint.
- Returns:
- the value
-
getReadTimeout
public Integer getReadTimeout()
Number in milliseconds.The timeout for reading the response from the Prometheus Exporter’s endpoint.
- Returns:
- the value
-
getReadDataLimitInKilobytes
public Integer getReadDataLimitInKilobytes()
Number in kilobytes.The limit on the data being sent, not to exceed the agent’s fixed limit of 400 (KB).
- Returns:
- the value
-
getScheduleMins
public Integer getScheduleMins()
Number in minutes.The scraping occurs at the specified interval.
- Returns:
- the value
-
getResourceGroup
public String getResourceGroup()
OCI monitoring resource group to assign the metric to.- Returns:
- the value
-
getMetricDimensions
public List<MetricDimension> getMetricDimensions()
The names of other user-supplied properties expressed as fixed values to be used as dimensions for every uploaded datapoint.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin classCreateDataSourceDetails
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toStringin classCreateDataSourceDetails- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classCreateDataSourceDetails
-
hashCode
public int hashCode()
- Overrides:
hashCodein classCreateDataSourceDetails
-
-