UnifiedAgentKubernetesScrapeTarget

class oci.logging.models.UnifiedAgentKubernetesScrapeTarget(**kwargs)

Bases: object

Monitoring scrape object.

Attributes

RESOURCE_TYPE_ENDPOINTS A constant which can be used with the resource_type property of a UnifiedAgentKubernetesScrapeTarget.
RESOURCE_TYPE_NODES A constant which can be used with the resource_type property of a UnifiedAgentKubernetesScrapeTarget.
RESOURCE_TYPE_PODS A constant which can be used with the resource_type property of a UnifiedAgentKubernetesScrapeTarget.
RESOURCE_TYPE_SERVICES A constant which can be used with the resource_type property of a UnifiedAgentKubernetesScrapeTarget.
k8s_namespace [Required] Gets the k8s_namespace of this UnifiedAgentKubernetesScrapeTarget.
resource_group Gets the resource_group of this UnifiedAgentKubernetesScrapeTarget.
resource_type [Required] Gets the resource_type of this UnifiedAgentKubernetesScrapeTarget.
service_name Gets the service_name of this UnifiedAgentKubernetesScrapeTarget.

Methods

__init__(**kwargs) Initializes a new UnifiedAgentKubernetesScrapeTarget object with values from keyword arguments.
RESOURCE_TYPE_ENDPOINTS = 'ENDPOINTS'

A constant which can be used with the resource_type property of a UnifiedAgentKubernetesScrapeTarget. This constant has a value of “ENDPOINTS”

RESOURCE_TYPE_NODES = 'NODES'

A constant which can be used with the resource_type property of a UnifiedAgentKubernetesScrapeTarget. This constant has a value of “NODES”

RESOURCE_TYPE_PODS = 'PODS'

A constant which can be used with the resource_type property of a UnifiedAgentKubernetesScrapeTarget. This constant has a value of “PODS”

RESOURCE_TYPE_SERVICES = 'SERVICES'

A constant which can be used with the resource_type property of a UnifiedAgentKubernetesScrapeTarget. This constant has a value of “SERVICES”

__init__(**kwargs)

Initializes a new UnifiedAgentKubernetesScrapeTarget object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • resource_type (str) – The value to assign to the resource_type property of this UnifiedAgentKubernetesScrapeTarget. Allowed values for this property are: “PODS”, “ENDPOINTS”, “NODES”, “SERVICES”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • k8s_namespace (str) – The value to assign to the k8s_namespace property of this UnifiedAgentKubernetesScrapeTarget.
  • service_name (str) – The value to assign to the service_name property of this UnifiedAgentKubernetesScrapeTarget.
  • resource_group (str) – The value to assign to the resource_group property of this UnifiedAgentKubernetesScrapeTarget.
k8s_namespace

[Required] Gets the k8s_namespace of this UnifiedAgentKubernetesScrapeTarget. K8s namespace of the resource.

Returns:The k8s_namespace of this UnifiedAgentKubernetesScrapeTarget.
Return type:str
resource_group

Gets the resource_group of this UnifiedAgentKubernetesScrapeTarget. Resource group in OCI monitoring.

Returns:The resource_group of this UnifiedAgentKubernetesScrapeTarget.
Return type:str
resource_type

[Required] Gets the resource_type of this UnifiedAgentKubernetesScrapeTarget. Type of resource to scrape metrics.

Allowed values for this property are: “PODS”, “ENDPOINTS”, “NODES”, “SERVICES”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The resource_type of this UnifiedAgentKubernetesScrapeTarget.
Return type:str
service_name

Gets the service_name of this UnifiedAgentKubernetesScrapeTarget. Name of the service prepended to the endpoints.

Returns:The service_name of this UnifiedAgentKubernetesScrapeTarget.
Return type:str