IngestTimeRuleMetricExtractionAction¶
-
class
oci.log_analytics.models.IngestTimeRuleMetricExtractionAction(**kwargs)¶ Bases:
oci.log_analytics.models.ingest_time_rule_action.IngestTimeRuleActionDetails of metric to post to OCI Monitoring if ingest time rule condition(s) are satisfied.
Attributes
TYPE_METRIC_EXTRACTIONstr(object=’’) -> str compartment_id[Required] Gets the compartment_id of this IngestTimeRuleMetricExtractionAction. dimensionsGets the dimensions of this IngestTimeRuleMetricExtractionAction. metric_name[Required] Gets the metric_name of this IngestTimeRuleMetricExtractionAction. namespace[Required] Gets the namespace of this IngestTimeRuleMetricExtractionAction. resource_groupGets the resource_group of this IngestTimeRuleMetricExtractionAction. type[Required] Gets the type of this IngestTimeRuleAction. Methods
__init__(**kwargs)Initializes a new IngestTimeRuleMetricExtractionAction 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_METRIC_EXTRACTION= 'METRIC_EXTRACTION'¶
-
__init__(**kwargs)¶ Initializes a new IngestTimeRuleMetricExtractionAction object with values from keyword arguments. The default value of the
typeattribute of this class isMETRIC_EXTRACTIONand 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 IngestTimeRuleMetricExtractionAction. Allowed values for this property are: “METRIC_EXTRACTION”
- compartment_id (str) – The value to assign to the compartment_id property of this IngestTimeRuleMetricExtractionAction.
- namespace (str) – The value to assign to the namespace property of this IngestTimeRuleMetricExtractionAction.
- metric_name (str) – The value to assign to the metric_name property of this IngestTimeRuleMetricExtractionAction.
- resource_group (str) – The value to assign to the resource_group property of this IngestTimeRuleMetricExtractionAction.
- dimensions (list[str]) – The value to assign to the dimensions property of this IngestTimeRuleMetricExtractionAction.
-
compartment_id¶ [Required] Gets the compartment_id of this IngestTimeRuleMetricExtractionAction. The compartment OCID (/iaas/Content/General/Concepts/identifiers.htm) of the extracted metric.
Returns: The compartment_id of this IngestTimeRuleMetricExtractionAction. Return type: str
-
dimensions¶ Gets the dimensions of this IngestTimeRuleMetricExtractionAction. Additional dimensions to publish for the extracted metric. A valid list contains the source field names whose values are to be published as dimensions. The source name itself is specified using a special macro SOURCE_NAME
Returns: The dimensions of this IngestTimeRuleMetricExtractionAction. 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.
-
metric_name¶ [Required] Gets the metric_name of this IngestTimeRuleMetricExtractionAction. 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 IngestTimeRuleMetricExtractionAction. Return type: str
-
namespace¶ [Required] Gets the namespace of this IngestTimeRuleMetricExtractionAction. 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 IngestTimeRuleMetricExtractionAction. Return type: str
-
resource_group¶ Gets the resource_group of this IngestTimeRuleMetricExtractionAction. 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 IngestTimeRuleMetricExtractionAction. Return type: str
-
type¶ [Required] Gets the type of this IngestTimeRuleAction. Discriminator.
Allowed values for this property are: “METRIC_EXTRACTION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The type of this IngestTimeRuleAction. Return type: str
-