MetricExtraction

class oci.log_analytics.models.MetricExtraction(**kwargs)

Bases: object

Specify metric extraction for SAVED_SEARCH scheduled task execution to post to OCI Monitoring.

Methods:

__init__(**kwargs)

Initializes a new MetricExtraction object with values from keyword arguments.

Attributes:

compartment_id

Gets the compartment_id of this MetricExtraction.

metric_collections

Gets the metric_collections of this MetricExtraction.

metric_name

Gets the metric_name of this MetricExtraction.

namespace

Gets the namespace of this MetricExtraction.

resource_group

Gets the resource_group of this MetricExtraction.

__init__(**kwargs)

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

Parameters
  • compartment_id (str) – The value to assign to the compartment_id property of this MetricExtraction.

  • namespace (str) – The value to assign to the namespace property of this MetricExtraction.

  • metric_name (str) – The value to assign to the metric_name property of this MetricExtraction.

  • resource_group (str) – The value to assign to the resource_group property of this MetricExtraction.

  • metric_collections (list[oci.log_analytics.models.MetricCollection]) – The value to assign to the metric_collections property of this MetricExtraction.

property compartment_id

Gets the compartment_id of this MetricExtraction. The compartment OCID (/iaas/Content/General/Concepts/identifiers.htm) of the extracted metric.

Returns

The compartment_id of this MetricExtraction.

Return type

str

property metric_collections

Gets the metric_collections of this MetricExtraction. Details for the metrics to be collected.

Returns

The metric_collections of this MetricExtraction.

Return type

list[oci.log_analytics.models.MetricCollection]

property metric_name

Gets the metric_name of this MetricExtraction. The metric name of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).

Returns

The metric_name of this MetricExtraction.

Return type

str

property namespace

Gets the namespace of this MetricExtraction. The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).

Returns

The namespace of this MetricExtraction.

Return type

str

property resource_group

Gets the resource_group of this MetricExtraction. The resourceGroup of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).

Returns

The resource_group of this MetricExtraction.

Return type

str