CreateLogDetails

class oci.logging.models.CreateLogDetails(**kwargs)

Bases: object

The details to create a log object.

Attributes

LOG_TYPE_CUSTOM A constant which can be used with the log_type property of a CreateLogDetails.
LOG_TYPE_SERVICE A constant which can be used with the log_type property of a CreateLogDetails.
configuration Gets the configuration of this CreateLogDetails.
defined_tags Gets the defined_tags of this CreateLogDetails.
display_name [Required] Gets the display_name of this CreateLogDetails.
freeform_tags Gets the freeform_tags of this CreateLogDetails.
is_enabled Gets the is_enabled of this CreateLogDetails.
log_type [Required] Gets the log_type of this CreateLogDetails.
retention_duration Gets the retention_duration of this CreateLogDetails.

Methods

__init__(**kwargs) Initializes a new CreateLogDetails object with values from keyword arguments.
LOG_TYPE_CUSTOM = 'CUSTOM'

A constant which can be used with the log_type property of a CreateLogDetails. This constant has a value of “CUSTOM”

LOG_TYPE_SERVICE = 'SERVICE'

A constant which can be used with the log_type property of a CreateLogDetails. This constant has a value of “SERVICE”

__init__(**kwargs)

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

Parameters:
  • display_name (str) – The value to assign to the display_name property of this CreateLogDetails.
  • log_type (str) – The value to assign to the log_type property of this CreateLogDetails. Allowed values for this property are: “CUSTOM”, “SERVICE”
  • is_enabled (bool) – The value to assign to the is_enabled property of this CreateLogDetails.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateLogDetails.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateLogDetails.
  • configuration (oci.logging.models.Configuration) – The value to assign to the configuration property of this CreateLogDetails.
  • retention_duration (int) – The value to assign to the retention_duration property of this CreateLogDetails.
configuration

Gets the configuration of this CreateLogDetails.

Returns:The configuration of this CreateLogDetails.
Return type:oci.logging.models.Configuration
defined_tags

Gets the defined_tags of this CreateLogDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

Example: {“Operations”: {“CostCenter”: “42”}}

Returns:The defined_tags of this CreateLogDetails.
Return type:dict(str, dict(str, object))
display_name

[Required] Gets the display_name of this CreateLogDetails. The user-friendly display name. This must be unique within the enclosing resource, and it’s changeable. Avoid entering confidential information.

Returns:The display_name of this CreateLogDetails.
Return type:str
freeform_tags

Gets the freeform_tags of this CreateLogDetails. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {“Department”: “Finance”}

Returns:The freeform_tags of this CreateLogDetails.
Return type:dict(str, str)
is_enabled

Gets the is_enabled of this CreateLogDetails. Whether or not this resource is currently enabled.

Returns:The is_enabled of this CreateLogDetails.
Return type:bool
log_type

[Required] Gets the log_type of this CreateLogDetails. The logType that the log object is for, whether custom or service.

Allowed values for this property are: “CUSTOM”, “SERVICE”

Returns:The log_type of this CreateLogDetails.
Return type:str
retention_duration

Gets the retention_duration of this CreateLogDetails. Log retention duration in 30-day increments (30, 60, 90 and so on).

Returns:The retention_duration of this CreateLogDetails.
Return type:int