ImportOciTelemetryResourcesTaskDetails

class oci.stack_monitoring.models.ImportOciTelemetryResourcesTaskDetails(**kwargs)

Bases: oci.stack_monitoring.models.monitored_resource_task_details.MonitoredResourceTaskDetails

Request details for importing resources from Telemetry like resources from OCI Native Services and prometheus.

Attributes

SOURCE_OCI_TELEMETRY_NATIVE A constant which can be used with the source property of a ImportOciTelemetryResourcesTaskDetails.
SOURCE_OCI_TELEMETRY_PROMETHEUS A constant which can be used with the source property of a ImportOciTelemetryResourcesTaskDetails.
TYPE_IMPORT_OCI_TELEMETRY_RESOURCES str(object=’’) -> str
availability_proxy_metric_collection_interval Gets the availability_proxy_metric_collection_interval of this ImportOciTelemetryResourcesTaskDetails.
availability_proxy_metrics Gets the availability_proxy_metrics of this ImportOciTelemetryResourcesTaskDetails.
namespace [Required] Gets the namespace of this ImportOciTelemetryResourcesTaskDetails.
resource_group Gets the resource_group of this ImportOciTelemetryResourcesTaskDetails.
source [Required] Gets the source of this ImportOciTelemetryResourcesTaskDetails.
type [Required] Gets the type of this MonitoredResourceTaskDetails.

Methods

__init__(**kwargs) Initializes a new ImportOciTelemetryResourcesTaskDetails 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.
SOURCE_OCI_TELEMETRY_NATIVE = 'OCI_TELEMETRY_NATIVE'

A constant which can be used with the source property of a ImportOciTelemetryResourcesTaskDetails. This constant has a value of “OCI_TELEMETRY_NATIVE”

SOURCE_OCI_TELEMETRY_PROMETHEUS = 'OCI_TELEMETRY_PROMETHEUS'

A constant which can be used with the source property of a ImportOciTelemetryResourcesTaskDetails. This constant has a value of “OCI_TELEMETRY_PROMETHEUS”

TYPE_IMPORT_OCI_TELEMETRY_RESOURCES = 'IMPORT_OCI_TELEMETRY_RESOURCES'
__init__(**kwargs)

Initializes a new ImportOciTelemetryResourcesTaskDetails object with values from keyword arguments. The default value of the type attribute of this class is IMPORT_OCI_TELEMETRY_RESOURCES 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 ImportOciTelemetryResourcesTaskDetails. Allowed values for this property are: “IMPORT_OCI_TELEMETRY_RESOURCES”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • source (str) – The value to assign to the source property of this ImportOciTelemetryResourcesTaskDetails. Allowed values for this property are: “OCI_TELEMETRY_NATIVE”, “OCI_TELEMETRY_PROMETHEUS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • namespace (str) – The value to assign to the namespace property of this ImportOciTelemetryResourcesTaskDetails.
  • resource_group (str) – The value to assign to the resource_group property of this ImportOciTelemetryResourcesTaskDetails.
  • availability_proxy_metrics (list[str]) – The value to assign to the availability_proxy_metrics property of this ImportOciTelemetryResourcesTaskDetails.
  • availability_proxy_metric_collection_interval (int) – The value to assign to the availability_proxy_metric_collection_interval property of this ImportOciTelemetryResourcesTaskDetails.
availability_proxy_metric_collection_interval

Gets the availability_proxy_metric_collection_interval of this ImportOciTelemetryResourcesTaskDetails. Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property ‘availabilityProxyMetrics’.

Returns:The availability_proxy_metric_collection_interval of this ImportOciTelemetryResourcesTaskDetails.
Return type:int
availability_proxy_metrics

Gets the availability_proxy_metrics of this ImportOciTelemetryResourcesTaskDetails. List of metrics to be used to calculate the availability of the resource. Resource is considered to be up if at least one of the specified metrics is available for the resource during the specified interval using the property ‘availabilityProxyMetricCollectionIntervalInSeconds’. If no metrics are specified, availability will not be calculated for the resource.

Returns:The availability_proxy_metrics of this ImportOciTelemetryResourcesTaskDetails.
Return type:list[str]
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.

namespace

[Required] Gets the namespace of this ImportOciTelemetryResourcesTaskDetails. Name space to be used for OCI Native service resources discovery.

Returns:The namespace of this ImportOciTelemetryResourcesTaskDetails.
Return type:str
resource_group

Gets the resource_group of this ImportOciTelemetryResourcesTaskDetails. The resource group to use while fetching metrics from telemetry. If not specified, resource group will be skipped in the list metrics request.

Returns:The resource_group of this ImportOciTelemetryResourcesTaskDetails.
Return type:str
source

[Required] Gets the source of this ImportOciTelemetryResourcesTaskDetails. Source from where the metrics pushed to telemetry. Possible values:

  • OCI_TELEMETRY_NATIVE - The metrics are pushed to telemetry from OCI Native Services.
  • OCI_TELEMETRY_PROMETHEUS - The metrics are pushed to telemetry from Prometheus.

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

Returns:The source of this ImportOciTelemetryResourcesTaskDetails.
Return type:str
type

[Required] Gets the type of this MonitoredResourceTaskDetails. Task type.

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

Returns:The type of this MonitoredResourceTaskDetails.
Return type:str