CreateLogAnalyticsEntityDetails¶
- class oci.log_analytics.models.CreateLogAnalyticsEntityDetails(**kwargs)¶
Bases:
objectDetails for new log analytics entity to be added.
Methods:
__init__(**kwargs)Initializes a new CreateLogAnalyticsEntityDetails object with values from keyword arguments.
Attributes:
Gets the cloud_resource_id of this CreateLogAnalyticsEntityDetails.
[Required] Gets the compartment_id of this CreateLogAnalyticsEntityDetails.
Gets the defined_tags of this CreateLogAnalyticsEntityDetails.
[Required] Gets the entity_type_name of this CreateLogAnalyticsEntityDetails.
Gets the freeform_tags of this CreateLogAnalyticsEntityDetails.
Gets the hostname of this CreateLogAnalyticsEntityDetails.
Gets the management_agent_id of this CreateLogAnalyticsEntityDetails.
Gets the metadata of this CreateLogAnalyticsEntityDetails.
[Required] Gets the name of this CreateLogAnalyticsEntityDetails.
Gets the properties of this CreateLogAnalyticsEntityDetails.
Gets the source_id of this CreateLogAnalyticsEntityDetails.
Gets the time_last_discovered of this CreateLogAnalyticsEntityDetails.
Gets the timezone_region of this CreateLogAnalyticsEntityDetails.
- __init__(**kwargs)¶
Initializes a new CreateLogAnalyticsEntityDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
name (str) – The value to assign to the name property of this CreateLogAnalyticsEntityDetails.
compartment_id (str) – The value to assign to the compartment_id property of this CreateLogAnalyticsEntityDetails.
entity_type_name (str) – The value to assign to the entity_type_name property of this CreateLogAnalyticsEntityDetails.
management_agent_id (str) – The value to assign to the management_agent_id property of this CreateLogAnalyticsEntityDetails.
cloud_resource_id (str) – The value to assign to the cloud_resource_id property of this CreateLogAnalyticsEntityDetails.
timezone_region (str) – The value to assign to the timezone_region property of this CreateLogAnalyticsEntityDetails.
hostname (str) – The value to assign to the hostname property of this CreateLogAnalyticsEntityDetails.
source_id (str) – The value to assign to the source_id property of this CreateLogAnalyticsEntityDetails.
properties (dict(str, str)) – The value to assign to the properties property of this CreateLogAnalyticsEntityDetails.
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateLogAnalyticsEntityDetails.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateLogAnalyticsEntityDetails.
time_last_discovered (datetime) – The value to assign to the time_last_discovered property of this CreateLogAnalyticsEntityDetails.
metadata (oci.log_analytics.models.LogAnalyticsMetadataDetails) – The value to assign to the metadata property of this CreateLogAnalyticsEntityDetails.
- property cloud_resource_id¶
Gets the cloud_resource_id of this CreateLogAnalyticsEntityDetails. The OCID of the Cloud resource which this entity is a representation of. This may be blank when the entity represents a non-cloud resource that the customer may have on their premises.
- Returns
The cloud_resource_id of this CreateLogAnalyticsEntityDetails.
- Return type
str
- property compartment_id¶
[Required] Gets the compartment_id of this CreateLogAnalyticsEntityDetails. Compartment Identifier OCID].
- Returns
The compartment_id of this CreateLogAnalyticsEntityDetails.
- Return type
str
- property defined_tags¶
Gets the defined_tags of this CreateLogAnalyticsEntityDetails. 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 CreateLogAnalyticsEntityDetails.
- Return type
dict(str, dict(str, object))
- property entity_type_name¶
[Required] Gets the entity_type_name of this CreateLogAnalyticsEntityDetails. Log analytics entity type name.
- Returns
The entity_type_name of this CreateLogAnalyticsEntityDetails.
- Return type
str
- property freeform_tags¶
Gets the freeform_tags of this CreateLogAnalyticsEntityDetails. 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 CreateLogAnalyticsEntityDetails.
- Return type
dict(str, str)
- property hostname¶
Gets the hostname of this CreateLogAnalyticsEntityDetails. The hostname where the entity represented here is actually present. This would be the output one would get if they run echo $HOSTNAME on Linux or an equivalent OS command. This may be different from management agents host since logs may be collected remotely.
- Returns
The hostname of this CreateLogAnalyticsEntityDetails.
- Return type
str
- property management_agent_id¶
Gets the management_agent_id of this CreateLogAnalyticsEntityDetails. The OCID of the Management Agent.
- Returns
The management_agent_id of this CreateLogAnalyticsEntityDetails.
- Return type
str
- property metadata¶
Gets the metadata of this CreateLogAnalyticsEntityDetails.
- Returns
The metadata of this CreateLogAnalyticsEntityDetails.
- Return type
- property name¶
[Required] Gets the name of this CreateLogAnalyticsEntityDetails. Log analytics entity name.
- Returns
The name of this CreateLogAnalyticsEntityDetails.
- Return type
str
- property properties¶
Gets the properties of this CreateLogAnalyticsEntityDetails. The name/value pairs for parameter values to be used in file patterns specified in log sources.
- Returns
The properties of this CreateLogAnalyticsEntityDetails.
- Return type
dict(str, str)
- property source_id¶
Gets the source_id of this CreateLogAnalyticsEntityDetails. This indicates the type of source. It is primarily for Enterprise Manager Repository ID.
- Returns
The source_id of this CreateLogAnalyticsEntityDetails.
- Return type
str
- property time_last_discovered¶
Gets the time_last_discovered of this CreateLogAnalyticsEntityDetails. The date and time the resource was last discovered, in the format defined by RFC3339.
- Returns
The time_last_discovered of this CreateLogAnalyticsEntityDetails.
- Return type
datetime
- property timezone_region¶
Gets the timezone_region of this CreateLogAnalyticsEntityDetails. The timezone region of the log analytics entity.
- Returns
The timezone_region of this CreateLogAnalyticsEntityDetails.
- Return type
str