IngestTimeRule¶
- class oci.log_analytics.models.IngestTimeRule(**kwargs)¶
Bases:
objectAn ingest time rule object.
Attributes:
A constant which can be used with the lifecycle_state property of a IngestTimeRule.
A constant which can be used with the lifecycle_state property of a IngestTimeRule.
Gets the actions of this IngestTimeRule.
[Required] Gets the compartment_id of this IngestTimeRule.
Gets the conditions of this IngestTimeRule.
Gets the defined_tags of this IngestTimeRule.
Gets the description of this IngestTimeRule.
[Required] Gets the display_name of this IngestTimeRule.
Gets the freeform_tags of this IngestTimeRule.
[Required] Gets the id of this IngestTimeRule.
Gets the is_enabled of this IngestTimeRule.
Gets the lifecycle_state of this IngestTimeRule.
Gets the time_created of this IngestTimeRule.
Gets the time_updated of this IngestTimeRule.
Methods:
__init__(**kwargs)Initializes a new IngestTimeRule object with values from keyword arguments.
- LIFECYCLE_STATE_ACTIVE = 'ACTIVE'¶
A constant which can be used with the lifecycle_state property of a IngestTimeRule. This constant has a value of “ACTIVE”
- LIFECYCLE_STATE_DELETED = 'DELETED'¶
A constant which can be used with the lifecycle_state property of a IngestTimeRule. This constant has a value of “DELETED”
- __init__(**kwargs)¶
Initializes a new IngestTimeRule object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
id (str) – The value to assign to the id property of this IngestTimeRule.
compartment_id (str) – The value to assign to the compartment_id property of this IngestTimeRule.
description (str) – The value to assign to the description property of this IngestTimeRule.
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this IngestTimeRule.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this IngestTimeRule.
time_created (datetime) – The value to assign to the time_created property of this IngestTimeRule.
time_updated (datetime) – The value to assign to the time_updated property of this IngestTimeRule.
lifecycle_state (str) – The value to assign to the lifecycle_state property of this IngestTimeRule. Allowed values for this property are: “ACTIVE”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
display_name (str) – The value to assign to the display_name property of this IngestTimeRule.
is_enabled (bool) – The value to assign to the is_enabled property of this IngestTimeRule.
conditions (oci.log_analytics.models.IngestTimeRuleCondition) – The value to assign to the conditions property of this IngestTimeRule.
actions (list[oci.log_analytics.models.IngestTimeRuleAction]) – The value to assign to the actions property of this IngestTimeRule.
- property actions¶
Gets the actions of this IngestTimeRule. The action(s) to be performed if the ingest time rule condition(s) are satisfied.
- Returns
The actions of this IngestTimeRule.
- Return type
- property compartment_id¶
[Required] Gets the compartment_id of this IngestTimeRule. Compartment Identifier OCID].
- Returns
The compartment_id of this IngestTimeRule.
- Return type
str
- property conditions¶
Gets the conditions of this IngestTimeRule.
- Returns
The conditions of this IngestTimeRule.
- Return type
- property defined_tags¶
Gets the defined_tags of this IngestTimeRule. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Returns
The defined_tags of this IngestTimeRule.
- Return type
dict(str, dict(str, object))
- property description¶
Gets the description of this IngestTimeRule. Description for this resource.
- Returns
The description of this IngestTimeRule.
- Return type
str
- property display_name¶
[Required] Gets the display_name of this IngestTimeRule. The ingest time rule display name.
- Returns
The display_name of this IngestTimeRule.
- Return type
str
- property freeform_tags¶
Gets the freeform_tags of this IngestTimeRule. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Returns
The freeform_tags of this IngestTimeRule.
- Return type
dict(str, str)
- property id¶
[Required] Gets the id of this IngestTimeRule. The log analytics entity OCID. This ID is a reference used by log analytics features and it represents a resource that is provisioned and managed by the customer on their premises or on the cloud.
- Returns
The id of this IngestTimeRule.
- Return type
str
- property is_enabled¶
Gets the is_enabled of this IngestTimeRule. A flag indicating whether or not the ingest time rule is enabled.
- Returns
The is_enabled of this IngestTimeRule.
- Return type
bool
- property lifecycle_state¶
Gets the lifecycle_state of this IngestTimeRule. The current state of the ingest time rule.
Allowed values for this property are: “ACTIVE”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The lifecycle_state of this IngestTimeRule.
- Return type
str
- property time_created¶
Gets the time_created of this IngestTimeRule. The date and time the resource was created, in the format defined by RFC3339.
- Returns
The time_created of this IngestTimeRule.
- Return type
datetime
- property time_updated¶
Gets the time_updated of this IngestTimeRule. The date and time the resource was last updated, in the format defined by RFC3339.
- Returns
The time_updated of this IngestTimeRule.
- Return type
datetime