LogEntry

class oci.resource_manager.models.LogEntry(**kwargs)

Bases: object

Log entry for an operation resulting from a job's execution.

LEVEL_DEBUG = 'DEBUG'

A constant which can be used with the level property of a LogEntry. This constant has a value of "DEBUG"

LEVEL_ERROR = 'ERROR'

A constant which can be used with the level property of a LogEntry. This constant has a value of "ERROR"

LEVEL_FATAL = 'FATAL'

A constant which can be used with the level property of a LogEntry. This constant has a value of "FATAL"

LEVEL_INFO = 'INFO'

A constant which can be used with the level property of a LogEntry. This constant has a value of "INFO"

LEVEL_TRACE = 'TRACE'

A constant which can be used with the level property of a LogEntry. This constant has a value of "TRACE"

LEVEL_WARN = 'WARN'

A constant which can be used with the level property of a LogEntry. This constant has a value of "WARN"

TYPE_TERRAFORM_CONSOLE = 'TERRAFORM_CONSOLE'

A constant which can be used with the type property of a LogEntry. This constant has a value of "TERRAFORM_CONSOLE"

__init__(**kwargs)

Initializes a new LogEntry object with values from keyword arguments. 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 LogEntry. Allowed values for this property are: "TERRAFORM_CONSOLE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
  • level (str) -- The value to assign to the level property of this LogEntry. Allowed values for this property are: "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
  • timestamp (datetime) -- The value to assign to the timestamp property of this LogEntry.
  • message (str) -- The value to assign to the message property of this LogEntry.
level

Gets the level of this LogEntry. Specifies the severity level of the log entry.

Allowed values for this property are: "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.

Returns:The level of this LogEntry.
Return type:str
message

Gets the message of this LogEntry. The log entry value.

Returns:The message of this LogEntry.
Return type:str
timestamp

Gets the timestamp of this LogEntry. Date and time of the log entry.

Returns:The timestamp of this LogEntry.
Return type:datetime
type

Gets the type of this LogEntry. Specifies the log type for the log entry.

Allowed values for this property are: "TERRAFORM_CONSOLE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.

Returns:The type of this LogEntry.
Return type:str