UpdatePrometheusEmitterDataSourceDetails

class oci.management_agent.models.UpdatePrometheusEmitterDataSourceDetails(**kwargs)

Bases: oci.management_agent.models.update_data_source_details.UpdateDataSourceDetails

A Prometheus data source.

Attributes

TYPE_KUBERNETES_CLUSTER str(object=’’) -> str
TYPE_PROMETHEUS_EMITTER str(object=’’) -> str
allow_metrics Gets the allow_metrics of this UpdatePrometheusEmitterDataSourceDetails.
connection_timeout Gets the connection_timeout of this UpdatePrometheusEmitterDataSourceDetails.
metric_dimensions Gets the metric_dimensions of this UpdatePrometheusEmitterDataSourceDetails.
proxy_url Gets the proxy_url of this UpdatePrometheusEmitterDataSourceDetails.
read_data_limit_in_kilobytes Gets the read_data_limit_in_kilobytes of this UpdatePrometheusEmitterDataSourceDetails.
read_timeout Gets the read_timeout of this UpdatePrometheusEmitterDataSourceDetails.
resource_group Gets the resource_group of this UpdatePrometheusEmitterDataSourceDetails.
schedule_mins Gets the schedule_mins of this UpdatePrometheusEmitterDataSourceDetails.
type [Required] Gets the type of this UpdateDataSourceDetails.
url [Required] Gets the url of this UpdatePrometheusEmitterDataSourceDetails.

Methods

__init__(**kwargs) Initializes a new UpdatePrometheusEmitterDataSourceDetails object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
TYPE_KUBERNETES_CLUSTER = 'KUBERNETES_CLUSTER'
TYPE_PROMETHEUS_EMITTER = 'PROMETHEUS_EMITTER'
__init__(**kwargs)

Initializes a new UpdatePrometheusEmitterDataSourceDetails object with values from keyword arguments. The default value of the type attribute of this class is PROMETHEUS_EMITTER and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • type (str) – The value to assign to the type property of this UpdatePrometheusEmitterDataSourceDetails. Allowed values for this property are: “KUBERNETES_CLUSTER”, “PROMETHEUS_EMITTER”
  • url (str) – The value to assign to the url property of this UpdatePrometheusEmitterDataSourceDetails.
  • allow_metrics (str) – The value to assign to the allow_metrics property of this UpdatePrometheusEmitterDataSourceDetails.
  • proxy_url (str) – The value to assign to the proxy_url property of this UpdatePrometheusEmitterDataSourceDetails.
  • connection_timeout (int) – The value to assign to the connection_timeout property of this UpdatePrometheusEmitterDataSourceDetails.
  • read_timeout (int) – The value to assign to the read_timeout property of this UpdatePrometheusEmitterDataSourceDetails.
  • read_data_limit_in_kilobytes (int) – The value to assign to the read_data_limit_in_kilobytes property of this UpdatePrometheusEmitterDataSourceDetails.
  • schedule_mins (int) – The value to assign to the schedule_mins property of this UpdatePrometheusEmitterDataSourceDetails.
  • resource_group (str) – The value to assign to the resource_group property of this UpdatePrometheusEmitterDataSourceDetails.
  • metric_dimensions (list[oci.management_agent.models.MetricDimension]) – The value to assign to the metric_dimensions property of this UpdatePrometheusEmitterDataSourceDetails.
allow_metrics

Gets the allow_metrics of this UpdatePrometheusEmitterDataSourceDetails. 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 allow_metrics of this UpdatePrometheusEmitterDataSourceDetails.
Return type:str
connection_timeout

Gets the connection_timeout of this UpdatePrometheusEmitterDataSourceDetails. Number in milliseconds. The timeout for connecting to the Prometheus Exporter’s endpoint.

Returns:The connection_timeout of this UpdatePrometheusEmitterDataSourceDetails.
Return type:int
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

metric_dimensions

Gets the metric_dimensions of this UpdatePrometheusEmitterDataSourceDetails. The names of other user-supplied properties expressed as fixed values to be used as dimensions for every uploaded datapoint.

Returns:The metric_dimensions of this UpdatePrometheusEmitterDataSourceDetails.
Return type:list[oci.management_agent.models.MetricDimension]
proxy_url

Gets the proxy_url of this UpdatePrometheusEmitterDataSourceDetails. The url of the network proxy that provides access to the Prometheus Exporter’s endpoint (url required property).

Returns:The proxy_url of this UpdatePrometheusEmitterDataSourceDetails.
Return type:str
read_data_limit_in_kilobytes

Gets the read_data_limit_in_kilobytes of this UpdatePrometheusEmitterDataSourceDetails. Number in kilobytes. The limit on the data being sent, not to exceed the agent’s fixed limit of 400 (KB).

Returns:The read_data_limit_in_kilobytes of this UpdatePrometheusEmitterDataSourceDetails.
Return type:int
read_timeout

Gets the read_timeout of this UpdatePrometheusEmitterDataSourceDetails. Number in milliseconds. The timeout for reading the response from the Prometheus Exporter’s endpoint.

Returns:The read_timeout of this UpdatePrometheusEmitterDataSourceDetails.
Return type:int
resource_group

Gets the resource_group of this UpdatePrometheusEmitterDataSourceDetails. OCI monitoring resource group to assign the metric to.

Returns:The resource_group of this UpdatePrometheusEmitterDataSourceDetails.
Return type:str
schedule_mins

Gets the schedule_mins of this UpdatePrometheusEmitterDataSourceDetails. Number in minutes. The scraping occurs at the specified interval.

Returns:The schedule_mins of this UpdatePrometheusEmitterDataSourceDetails.
Return type:int
type

[Required] Gets the type of this UpdateDataSourceDetails. The type of the DataSource.

Allowed values for this property are: “KUBERNETES_CLUSTER”, “PROMETHEUS_EMITTER”

Returns:The type of this UpdateDataSourceDetails.
Return type:str
url

[Required] Gets the url of this UpdatePrometheusEmitterDataSourceDetails. The url through which the Prometheus Exporter publishes its metrics. (http only)

Returns:The url of this UpdatePrometheusEmitterDataSourceDetails.
Return type:str